mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-13 12:20:12 +08:00
add webcola type definition file
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
// Type definitions for webcola 3.0.1
|
||||
// Project: https://github.com/tgdwyer/WebCola
|
||||
// Definitions by: Qinfeng Chen <https://github.com/qinfchen>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
declare module WebCola{
|
||||
interface 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;
|
||||
linkDistance(linkLength: number): Adaptor;
|
||||
nodes(nodes: any): Adaptor;
|
||||
resume(): void;
|
||||
size(dimension: number[]): Adaptor;
|
||||
start(
|
||||
initialUnconstrainedIterations: number,
|
||||
initialUserConstraintIterations: number,
|
||||
initialAllConstraintsIterations: number
|
||||
): void;
|
||||
stop(): void;
|
||||
}
|
||||
|
||||
interface Cola {
|
||||
adaptor(options: { [index:number]: any }): Adaptor;
|
||||
start(): void;
|
||||
stop(): void;
|
||||
}
|
||||
}
|
||||
|
||||
declare var cola: WebCola.Cola;
|
||||
Reference in New Issue
Block a user