Interface jsPlumbInstance

Index

Properties

Methods

Properties

public CANVAS: string

public Defaults: Defaults

public SVG: string

public VML: string

Methods

public addClass(el: any, clazz: string)

Parameters

  • el: any
  • clazz: string

public addEndpoint(ep: string): any

Parameters

  • ep: string

Returns

any

public bind(event: string, callback: (e: any) => void)

Parameters

  • event: string
  • callback: (e: any) => void

public connect(connection: ConnectParams, referenceParams?: ConnectParams): Connection

Parameters

Returns

Connection

public deleteEndpoint(uuid: string, doNotRepaintAfterwards?: boolean): jsPlumbInstance

Parameters

  • uuid: string
  • doNotRepaintAfterwards?: boolean optional

Returns

jsPlumbInstance

public deleteEndpoint(endpoint: Endpoint, doNotRepaintAfterwards?: boolean): jsPlumbInstance

Parameters

  • endpoint: Endpoint
  • doNotRepaintAfterwards?: boolean optional

Returns

jsPlumbInstance

public detachAllConnections(el: string)

Parameters

  • el: string

public detachEveryConnection()

public draggable(el: string, options?: DragOptions): jsPlumbInstance

Parameters

Returns

jsPlumbInstance

public draggable(ids: Array<string>, options?: DragOptions): jsPlumbInstance

Parameters

Returns

jsPlumbInstance

public getConnections(options?: any, flat?: any): Array<any>

Parameters

  • options?: any optional
  • flat?: any optional

Returns

Array<any>

public hasClass(el: any, clazz: string)

Parameters

  • el: any
  • clazz: string

public importDefaults(defaults: Defaults)

Parameters

public makeSource(el: string, options: SourceOptions)

Parameters

public makeTarget(el: string, options: TargetOptions)

Parameters

public ready(callback: () => void)

Parameters

  • callback: () => void

public removeAllEndpoints(el: string, recurse?: boolean): jsPlumbInstance

Parameters

  • el: string
  • recurse?: boolean optional

Returns

jsPlumbInstance

public removeAllEndpoints(el: Element, recurse?: boolean): jsPlumbInstance

Parameters

  • el: Element
  • recurse?: boolean optional

Returns

jsPlumbInstance

public removeClass(el: any, clazz: string)

Parameters

  • el: any
  • clazz: string

public repaint(el: string): jsPlumbInstance

Parameters

  • el: string

Returns

jsPlumbInstance

public repaint(el: Element): jsPlumbInstance

Parameters

  • el: Element

Returns

jsPlumbInstance

public repaintEverything()

public restoreDefaults()

public select(params: SelectParams): Connections

Parameters

Returns

Connections

public setRenderMode(renderMode: string): string

Parameters

  • renderMode: string

Returns

string

public unbind(event?: string)

Parameters

  • event?: string optional