mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 06:40:35 +08:00
Merge pull request #498 from shearnie/master
Added defaults property to jsPlumb
This commit is contained in:
5
jsplumb/jquery.jsPlumb.d.ts
vendored
5
jsplumb/jquery.jsPlumb.d.ts
vendored
@@ -12,7 +12,8 @@ interface jsPlumb {
|
||||
bind(event: string, callback: (e) => void ): void;
|
||||
unbind(event?: string): void;
|
||||
ready(callback: () => void): void;
|
||||
importDefaults(defaults: Defaults): void;//
|
||||
importDefaults(defaults: Defaults): void;
|
||||
Defaults: Defaults;
|
||||
restoreDefaults(): void;
|
||||
addClass(el: any, clazz: string): void;
|
||||
addEndpoint(ep: string): any;
|
||||
@@ -27,10 +28,12 @@ interface jsPlumb {
|
||||
detachAllConnections(el: string): void;
|
||||
removeAllEndpoints(el: any): void;
|
||||
select(params: SelectParams): Connections;
|
||||
getConnections(options?: any, flat?: any): any[];
|
||||
}
|
||||
|
||||
interface Defaults {
|
||||
Endpoint?: any[];
|
||||
PaintStyle?: PaintStyle;
|
||||
HoverPaintStyle?: PaintStyle;
|
||||
ConnectionsDetachable?: bool;
|
||||
ReattachConnections?: bool;
|
||||
|
||||
Reference in New Issue
Block a user