Creates a new instance of the bpmn-js modeler.
The options to include
Binds the keyboard to the curretn document. Keyboard shortcuts will trigger actions in the editor after this has been called.
Returns whether there is any element selected that can be copied. Can be used to determine if the copy button should be enabled or not.
Returns whether there is any element in the clipboard that can be pasted. Can be used to determine if the paste button should be enabled or not.
Returns whether the command stack contains any actions that can be repeated. Can be used to determine if the redo button should be enabled or not.
Returns whether the command stack contains any actions that can be undone. Can be used to determine if the undo button should be enabled or not.
Destroys the modeler instance.
Returns the requested component.
The name of the component to return
Returns the injector.
Returns the size of the current selection.
Returns the current stack index.
Imports element templates into the editor.
The element templates to import.
Imports the XML into the editor.
The XML to import
List of import warnings
If the import failed
Unregisters a previously registered listener for bpmn-js.
The name of the event
The previously registered listener to unregister
Registers an event listener for bpmn-js.
The listener to register
Instructs the command stack to repeat the last undone action.
Registers a global event listener that will receive all bpmn-js events.
Removes the currently selected elements.
Resets the zoom level to its default value.
Saves the editor content as SVG and XML simultaneously.
Saves the editor content as SVG and returns it.
The editor content as SVG
Saves the editor content as XML and returns it.
The editor content as XML
Expands the selection to all available elements.
Activates the edit label function.
Toggles the search box.
Toggles the global connect tool.
Toggles the hand tool.
Toggles the lasso tool.
Toggles the space tool.
Unbinds the keyboard from the current document. Keyboard shortcuts won't work anymore after this has been called.
Instructs the command stack to undo the last action.
Unregisters a previously registered global event listener.
The listener to unregister
Generated using TypeDoc
Creates a new instance of the bpmn-js modeler.