mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
558 B
TypeScript
32 lines
558 B
TypeScript
/// <reference path="webcola.d.ts"/>
|
|
module WebColaTests {
|
|
var adaptor = new cola.adaptor({
|
|
trigger: function() {
|
|
},
|
|
kick: function() {
|
|
},
|
|
on: function() {
|
|
},
|
|
drag: function() {
|
|
}
|
|
});
|
|
|
|
adaptor
|
|
.size([100, 100])
|
|
.avoidOverlaps(true)
|
|
.nodes({})
|
|
.links({})
|
|
.handleDisconnected(true)
|
|
.convergenceThreshold(0.001)
|
|
.constraints({})
|
|
.linkDistance(100)
|
|
.flowLayout('y', 0);
|
|
|
|
adaptor.start(1, 2, 3);
|
|
adaptor.stop();
|
|
adaptor.resume();
|
|
|
|
cola.colaDragstart({});
|
|
cola.colaDragend({});
|
|
}
|