Merge pull request #32668 from denisname/d3-shape-1.3.3

d3-shape: Update to 1.3.3
This commit is contained in:
Pranav Senthilnathan
2019-02-01 10:59:56 -08:00
committed by GitHub
2 changed files with 10 additions and 2 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);
+9 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for D3JS d3-shape module 1.2
// Type definitions for D3JS d3-shape module 1.3
// Project: https://github.com/d3/d3-shape/
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>
// Alex Ford <https://github.com/gustavderdrache>
@@ -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.
*