From 828f081238d78f06c9aa38030b064407c7bee072 Mon Sep 17 00:00:00 2001 From: denis Date: Thu, 31 Jan 2019 15:07:01 +0100 Subject: [PATCH 1/2] Update to 1.2 Add iterations argument to `simulation.tick`. --- types/d3-force/d3-force-tests.ts | 1 + types/d3-force/index.d.ts | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/types/d3-force/d3-force-tests.ts b/types/d3-force/d3-force-tests.ts index 6b73a1dbf4..9bf424c1b6 100644 --- a/types/d3-force/d3-force-tests.ts +++ b/types/d3-force/d3-force-tests.ts @@ -685,6 +685,7 @@ nodeLinkSimulation = nodeLinkSimulation.stop(); // tick() ----------------------------------------------------------------------------- nodeLinkSimulation.tick(); +nodeLinkSimulation.tick(10); // find() ----------------------------------------------------------------------------- diff --git a/types/d3-force/index.d.ts b/types/d3-force/index.d.ts index 35f4d06657..98f372e2cc 100644 --- a/types/d3-force/index.d.ts +++ b/types/d3-force/index.d.ts @@ -1,9 +1,12 @@ // Type definitions for D3JS d3-force module 1.1 // Project: https://github.com/d3/d3-force/ -// Definitions by: Tom Wanzek , Alex Ford , Boris Yankov +// Definitions by: Tom Wanzek +// Alex Ford +// Boris Yankov +// denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Last module patch version validated against: 1.1.0 +// Last module patch version validated against: 1.2.0 // ----------------------------------------------------------------------- // Force Simulation @@ -108,13 +111,16 @@ export interface Simulation Date: Thu, 31 Jan 2019 21:52:59 +0100 Subject: [PATCH 2/2] Update version in definition header --- types/d3-force/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/d3-force/index.d.ts b/types/d3-force/index.d.ts index 98f372e2cc..563ca925c3 100644 --- a/types/d3-force/index.d.ts +++ b/types/d3-force/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for D3JS d3-force module 1.1 +// Type definitions for D3JS d3-force module 1.2 // Project: https://github.com/d3/d3-force/ // Definitions by: Tom Wanzek // Alex Ford