Update to 1.3.3

Add d3.stackOrderAppearance.
This commit is contained in:
denis
2019-01-31 15:27:32 +01:00
parent e7a5287d64
commit 80ac20f080
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -1464,6 +1464,7 @@ seriesDatum = seriesPoint.data;
let order: number[];
const seriesAnyAny: d3Shape.Series<any, any> = seriesArray[0];
order = d3Shape.stackOrderAppearance(seriesAnyAny);
order = d3Shape.stackOrderAscending(seriesAnyAny);
order = d3Shape.stackOrderDescending(seriesAnyAny);
order = d3Shape.stackOrderInsideOut(seriesAnyAny);
+8 -1
View File
@@ -7,7 +7,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// Last module patch version validated against: 1.2.0
// Last module patch version validated against: 1.3.3
import { Path } from 'd3-path';
@@ -2670,6 +2670,13 @@ export function stack<Datum, Key>(): Stack<any, Datum, Key>;
*/
export function stack<This, Datum, Key>(): Stack<This, Datum, Key>;
/**
* Returns a series order such that the earliest series (according to the maximum value) is at the bottom.
*
* @param series A series generated by a stack generator.
*/
export function stackOrderAppearance(series: Series<any, any>): number[];
/**
* Returns a series order such that the smallest series (according to the sum of values) is at the bottom.
*