mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
Merge pull request #3506 from qinfchen/options_layout
add options and flowlayout typings for webcola
This commit is contained in:
Vendored
+18
@@ -29,6 +29,24 @@ declare module WebCola{
|
||||
start(): void;
|
||||
stop(): void;
|
||||
}
|
||||
|
||||
interface FlowLayout{
|
||||
axis: string;
|
||||
minSeparation?: number;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
avoidOverlaps?: boolean;
|
||||
convergenceThreshold?: number;
|
||||
constraints?: {[key: string]: any}[];
|
||||
flowLayout?: FlowLayout;
|
||||
handleDisconnected?: boolean;
|
||||
linkDistance?: number;
|
||||
initialUnconstrainedIterations?: number;
|
||||
initialUserConstraintIterations?: number;
|
||||
initialAllConstraintsIterations?: number;
|
||||
symmetricDiffLinkLengths?: number;
|
||||
}
|
||||
}
|
||||
|
||||
declare var cola: WebCola.Cola;
|
||||
|
||||
Reference in New Issue
Block a user