zoomIn
Description
Fires after the Zoom In button is clicked or the zoomIn() method is called
Usage
"zoomIn": (step: number) => void;
Parameters
The callback of the zoomIn event is called with the following parameter:
step
- (required) a value that displays the step of thescale
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("zoomIn", (step) => {
console.log("The diagram in the editor is zoomed in. The step is" + step);
});
Change log: The step parameter was added in v6.0