@types/d3-array
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -231,3 +231,3 @@ // Type definitions for D3JS d3-array module 1.2 | ||
* @param array Array of input elements | ||
* @param reducer A reducer function taking as input to adjecent elements of the input array and returning a reduced value. | ||
* @param reducer A reducer function taking as input to adjacent elements of the input array and returning a reduced value. | ||
*/ | ||
@@ -237,3 +237,5 @@ export function pairs<T, U>(array: ArrayLike<T>, reducer: (a: T, b: T) => U): U[]; | ||
/** | ||
* Given the specified array, return an array corresponding to the list of indices in 'keys'. | ||
* Returns a permutation of the specified array using the specified array of indexes. | ||
* The returned array contains the corresponding element in array for each index in indexes, in order. | ||
* For example, `permute(["a", "b", "c"], [1, 2, 0]) // ["b", "c", "a"]` | ||
*/ | ||
@@ -243,5 +245,7 @@ export function permute<T>(array: { [key: number]: T }, keys: ArrayLike<number>): T[]; | ||
/** | ||
* Given the specified object, return an array corresponding to the list of property names in 'keys'. | ||
* Extract the values from an object into an array with a stable order. For example: | ||
* `var object = {yield: 27, year: 1931, site: "University Farm"};` | ||
* `d3.permute(object, ["site", "yield"]); // ["University Farm", 27]` | ||
*/ | ||
export function permute<T>(object: { [key: string]: T }, keys: ArrayLike<string>): T[]; | ||
export function permute<T, K extends keyof T>(object: T, keys: ArrayLike<K>): Array<T[K]>; | ||
@@ -354,2 +358,7 @@ /** | ||
/** | ||
* @deprecated Use ThresholdNumberArrayGenerator or ThresholdDateArrayGenerator. | ||
*/ | ||
export type ThresholdArrayGenerator = ThresholdNumberArrayGenerator<number>; | ||
/** | ||
* @deprecated Use `HistogramGeneratorNumber<Datum, Value>` for `number` values and `HistogramGeneratorDate<Datum, Value> for `Date` values. | ||
@@ -410,3 +419,3 @@ */ | ||
* @param thresholds A function which accepts as arguments the array of materialized values, and | ||
* optionally the domain minimum and maximum. The function calcutates and returns the array of values to be used as | ||
* optionally the domain minimum and maximum. The function calculates and returns the array of values to be used as | ||
* thresholds in determining the bins. | ||
@@ -442,3 +451,3 @@ */ | ||
* @param count A function which accepts as arguments the array of materialized values, and | ||
* optionally the domain minimum and maximum. The function calcutates and returns the suggested | ||
* optionally the domain minimum and maximum. The function calculates and returns the suggested | ||
* number of bins. | ||
@@ -465,3 +474,3 @@ */ | ||
* @param thresholds A function which accepts as arguments the array of materialized values, and | ||
* optionally the domain minimum and maximum. The function calcutates and returns the array of values to be used as | ||
* optionally the domain minimum and maximum. The function calculates and returns the array of values to be used as | ||
* thresholds in determining the bins. | ||
@@ -468,0 +477,0 @@ */ |
{ | ||
"name": "@types/d3-array", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "TypeScript definitions for D3JS d3-array module", | ||
@@ -29,2 +29,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "", | ||
"repository": { | ||
@@ -36,4 +37,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "e45e908a3dae0d07d704946fb66eca5c91a77a665ca6b6470dd7f2d850e39370", | ||
"typesPublisherContentHash": "aac0e44d5abb52584530cc0fe567a70dcd0587d084bed2cee92ef8a81cd9bf9b", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 08 Oct 2018 15:39:54 GMT | ||
* Last updated: Mon, 15 Oct 2018 22:47:50 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26248
417