From e353d9bc6539e2abf97f222b56d7e8216ffee8e1 Mon Sep 17 00:00:00 2001 From: Tom Wanzek Date: Fri, 2 Jun 2017 13:35:24 -0400 Subject: [PATCH] [d3-sankey] Missing Iterations (#16916) * [Fix] Adds missing `iterations` setter and getter for `SankeyLayout` --- types/d3-sankey/d3-sankey-tests.ts | 13 +++++++++++++ types/d3-sankey/index.d.ts | 11 +++++++++++ 2 files changed, 24 insertions(+) diff --git a/types/d3-sankey/d3-sankey-tests.ts b/types/d3-sankey/d3-sankey-tests.ts index 4ed508f267..5ed0c9eabd 100644 --- a/types/d3-sankey/d3-sankey-tests.ts +++ b/types/d3-sankey/d3-sankey-tests.ts @@ -162,6 +162,19 @@ slgDAG = slgDAG.size([1200, 800]); size = slgDAG.size(); +// --------------------------------------------------------------------------- +// Iterations +// --------------------------------------------------------------------------- + +// Set ----------------------------------------------------------------------- + +// test return type for chainability +slgDAG = slgDAG.iterations(40); + +// Get ----------------------------------------------------------------------- + +num = slgDAG.iterations(); + // --------------------------------------------------------------------------- // Nodes // --------------------------------------------------------------------------- diff --git a/types/d3-sankey/index.d.ts b/types/d3-sankey/index.d.ts index e4fcd139ef..57b1a3ccc9 100644 --- a/types/d3-sankey/index.d.ts +++ b/types/d3-sankey/index.d.ts @@ -279,6 +279,17 @@ export interface SankeyLayout