Optional
options: DiagramOptionsOptional
injector: InjectorAn (optional) injector to bootstrap the diagram with.
Resolves a diagram service.
Resolves a diagram service.
The name of the service to get.
Resolves a diagram service.
The name of the service to get.
If false, resolve missing services to null.
Resolves a diagram service.
The name of the service to get.
If false, resolve missing services to null.
The name of the service to get.
If false, resolve missing services to null.
Executes a function with its dependencies injected.
Executes a function with its dependencies injected.
function to be invoked
Optional
context: unknowncontext of the invocation
Optional
locals: LocalsMaplocals provided
Executes a function with its dependencies injected.
function to be invoked
Optional
context: unknowncontext of the invocation
Optional
locals: LocalsMaplocals provided
function to be invoked
context of the invocation
locals provided
Generated using TypeDoc
The main diagram-js entry point that bootstraps the diagram with the given configuration.
To register extensions with the diagram, pass them as Array to the constructor.
Example: Creating a plug-in that logs whenever a shape is added to the canvas.
Use the plug-in in a Diagram instance: