mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
adding forceAtlas layout typings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Vendored
+8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user