Skip to main content

zoomOut

Description

Fires after the Zoom Out button is clicked or the zoomOut() method is called

Usage

"zoomOut": (step) => void;

Parameters

The callback of the zoomOut event is called with the following parameter:

  • step - (required) a value that displays the change step of the scale property.
info

For handling the inner events of Diagram Editor you can use the on() method.

Example

// initializing Diagram Editor
const editor = new dhx.DiagramEditor("editor_container");
// loading data
editor.parse(data);

// attaching a handler to the event
editor.events.on("zoomOut", (step) => {
console.log("The diagram in the editor is zoomed out");
});

Change log: The step parameter was added in v6.0