Zooms out & pans the workspace such that all nodes are visible in the screen.
DiagramMakerApi
instance for method chaining.Moves the workspace around to center the node matching the passed ID. Also selects the corresponding node.
ID of the node to focus
DiagramMakerApi
instance for method chaining.Moves the workspace around to center the selected node. If more than 1 nodes are selected, it falls back to fitting the selected nodes in. If no nodes are selected, this resets the zoom & centers the workspace.
DiagramMakerApi
instance for method chaining.Arranges nodes according to the specified layout type.
Layout type and its parameters.
DiagramMakerApi
instance for method chaining.NOTE FOR "WORKFLOW" LAYOUT: "Workflow" layout uses Dagre library underneath: https://github.com/dagrejs/dagre
We don't bundle it with DiagramMaker, as not all consumers need this functionality. To use "Workflow" layout, you'll need to add Dagre library to your package.json.
Redo the last undone action.
DiagramMakerApi
instance for method chaining.Resets the zoom to base level.
DiagramMakerApi
instance for method chaining.Sets the editor to the given mode, in order to modify its UI behavior.
The mode to set the editor to.
DiagramMakerApi
instance for method chaining.Undo the last undoable action.
DiagramMakerApi
instance for method chaining.Zooms in one level into the diagram maker workspace at the center.
DiagramMakerApi
instance for method chaining.Zooms out one level into the diagram maker workspace at the center.
DiagramMakerApi
instance for method chaining.Generated using TypeDoc
dispatch a action, for plugin use