Files
DefinitelyTyped/webcola/webcola-tests.ts
2015-01-15 16:25:11 -05:00

31 lines
551 B
TypeScript

/// <reference path="webcola.d.ts"/>
module WebColaTests {
var adaptor = 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.dragstart({});
adaptor.dragend({});
adaptor.stop();
adaptor.resume();
}