adding forceAtlas layout typings

This commit is contained in:
Qinfeng Chen
2014-11-14 18:48:43 -05:00
parent 1ce2b93c5c
commit 8205d92f1b
2 changed files with 17 additions and 0 deletions
+9
View File
@@ -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();
}
+8
View File
@@ -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 {