update webcola typings for v3.1.0

This commit is contained in:
Qinfeng Chen
2015-02-20 14:12:02 -05:00
parent e93130560d
commit dbd695433c
2 changed files with 9 additions and 6 deletions
+5 -3
View File
@@ -4,11 +4,10 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module WebCola{
interface Adaptor {
new(options: { [index:number]: any }): Adaptor;
avoidOverlaps(avodOverLaps: boolean): Adaptor;
constraints(constraints: any): Adaptor;
convergenceThreshold(convergenceThreshold: number): Adaptor;
dragend(node: { [index: number]: any }): void;
dragstart(node: { [index: number]: any }): void;
flowLayout(axis: string, minSeparation: number): Adaptor;
handleDisconnected(handleDisconnected: boolean): Adaptor;
links(links: any): Adaptor;
@@ -22,10 +21,13 @@ declare module WebCola{
initialAllConstraintsIterations: number
): void;
stop(): void;
tick(): any;
}
interface Cola {
adaptor(options: { [index:number]: any }): Adaptor;
adaptor: Adaptor;
colaDragstart(node: { [index: number]: any }): void;
colaDragend(node: { [index: number]: any }): void;
start(): void;
stop(): void;
}