Hierarchy

  • Modeler
    • CustomBpmnJsModeler

Constructors

Methods

  • Binds the keyboard to the curretn document. Keyboard shortcuts will trigger actions in the editor after this has been called.

    Returns void

  • 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 boolean

  • 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 boolean

  • 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 boolean

  • 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.

    Returns boolean

  • Destroys the modeler instance.

    Returns any

  • Returns the requested component.

    Parameters

    • component: string

      The name of the component to return

    Returns any

  • Returns the injector.

    Returns Injector

  • Returns the size of the current selection.

    Returns number

  • Returns the current stack index.

    Returns number

  • Imports element templates into the editor.

    Parameters

    • elementTemplates: Record<string, unknown>[]

      The element templates to import.

    Returns void

  • Imports the XML into the editor.

    Parameters

    • xml: string

      The XML to import

    Returns ImportResponse

    List of import warnings

    Throws

    If the import failed

  • Unregisters a previously registered listener for bpmn-js.

    Parameters

    • event: string

      The name of the event

    • handler: ((event, data) => void)

      The previously registered listener to unregister

        • (event, data): void
        • Parameters

          • event: any
          • data: any

          Returns void

    Returns any

  • Registers an event listener for bpmn-js.

    Parameters

    • event: string

      The name of the event

    • handler: ((event, data) => void)

      The listener to register

        • (event, data): void
        • Parameters

          • event: any
          • data: any

          Returns void

    Returns any

  • Instructs the command stack to repeat the last undone action.

    Returns void

  • Registers a global event listener that will receive all bpmn-js events.

    Parameters

    • listener: EventCallback

      The listener to register

    Returns void

  • Removes the currently selected elements.

    Returns void

  • Resets the zoom level to its default value.

    Returns void

  • Saves the editor content as SVG and XML simultaneously.

    Returns Promise<{
        svg: string;
        xml: string;
    }>

  • Saves the editor content as SVG and returns it.

    Returns Promise<{
        svg: string;
    }>

    The editor content as SVG

  • Saves the editor content as XML and returns it.

    Parameters

    • __namedParameters: {
          format: undefined | boolean;
          preamble: undefined | boolean;
      }
      • format: undefined | boolean
      • preamble: undefined | boolean

    Returns Promise<{
        xml: string;
    }>

    The editor content as XML

  • Expands the selection to all available elements.

    Returns void

  • Activates the edit label function.

    Returns void

  • Toggles the search box.

    Returns void

  • Toggles the global connect tool.

    Returns void

  • Toggles the hand tool.

    Returns void

  • Toggles the lasso tool.

    Returns void

  • Toggles the space tool.

    Returns void

  • Unbinds the keyboard from the current document. Keyboard shortcuts won't work anymore after this has been called.

    Returns void

  • Instructs the command stack to undo the last action.

    Returns void

  • Unregisters a previously registered global event listener.

    Parameters

    • listener: EventCallback

      The listener to unregister

    Returns void

Generated using TypeDoc