From 8205d92f1bee84b7014cec93ff5f79c076b1f371 Mon Sep 17 00:00:00 2001 From: Qinfeng Chen Date: Fri, 14 Nov 2014 18:48:43 -0500 Subject: [PATCH] adding forceAtlas layout typings --- sigmajs/sigmajs-tests.ts | 9 +++++++++ sigmajs/sigmajs.d.ts | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/sigmajs/sigmajs-tests.ts b/sigmajs/sigmajs-tests.ts index 7f00edee7..7163471a6 100644 --- a/sigmajs/sigmajs-tests.ts +++ b/sigmajs/sigmajs-tests.ts @@ -53,4 +53,13 @@ module SigmaJsTests { sigma.parsers.gexf('myGraph.gexf', s, () => { s.refresh(); }); + + s.configForceAtlas2({ + worker: true + }); + + s.isForceAtlas2Running(); + s.killForceAtlas2(); + s.startForceAtlas2(); + s.stopForceAtlas2(); } diff --git a/sigmajs/sigmajs.d.ts b/sigmajs/sigmajs.d.ts index 00b696609..dae23464f 100644 --- a/sigmajs/sigmajs.d.ts +++ b/sigmajs/sigmajs.d.ts @@ -96,6 +96,14 @@ declare module SigmaJs{ kill(): void; refresh(): void; renderers: Renderer[]; + + // forceAtlas2 layout + configForceAtlas2(configs: { [key: string]: any }): void; + isForceAtlas2Running(): boolean; + killForceAtlas2(): void; + startForceAtlas2(): void; + startForceAtlas2(configs: { [key: string]: any }): void; + stopForceAtlas2(): void; } interface SigmaConfigs {