Private
datadatastore for user set values.
Export an image from some Surface, using either the ShapeLibrary registered on the surface, or one registered on the jsPlumb Angular service.
Export an SVG from some Surface, using either the ShapeLibrary registered on the surface, or one registered on the jsPlumb Angular service.
Gets the surface with the given id, passing it to the supplied callback function. If a surface with the given ID does not exist, the request is queued, and then if a surface with the given ID is subsequently registered, each callback for that surface registered via this method is executed in turn.
ID of the surface to retrieve
Function to call when the surface has been retrieved.
Optional
_params: SurfaceOptionsOptional parameters to pass back into the callback upon successful retrieval of the surface.
Create (or get if existing) a Toolkit instance.
ID of the instance to either create or retrieve.
Optional
params: JsPlumbToolkitOptionsOptional constructor options for the Toolkit instance.
Register a shape library. A convenience method that creates a shape library and stores it
the Shapes sets to register
Optional
key: stringKey to register the shape library with. If you omit this, the default id will be used. If you call this
method multiple times without providing a key
, the service will just overwrite what you previously stored.
Retrieve a shape library. A convenience method that prefixes the given key and then calls retrieve
.
Optional
key: stringKey used to register the shape library. If omitted, the default shape library key will be used.
Show the image export UI for some Surface, using either the ShapeLibrary registered on the surface, or one registered on the jsPlumb Angular service.
Show the export SVG UI for some Surface, using either the ShapeLibrary registered on the surface, or one registered on the jsPlumb Angular service.
The jsPlumbService provides the core of the Angular integration, offering methods to create and retrieve instances of the Toolkit.