Open
Description
Is your feature request related to a problem? Please describe.
This will let integration react to zoom on the diagram.
Describe the solution you'd like
We have various use case examples that would benefits from events:
- Allow zoom in and zoom out through a slider widget [FEAT] Allow zoom in and zoom out through a slider widget #736: move the slider position when zoom is done with mouse wheel, button, ...
- Provide visual/auditory clues when zoom max values are reached [FEAT] Provide visual/auditory clues when zoom max values are reached #731
- Allow to automatically hide and display a Minimap BPMN diagram navigation enhancement [FEAT] Allow to automatically hide and display a Minimap #591
Additional context
Event content to be defined
- previous and new zoom level value
- source: API, mouse, gesture, reset via fit and fit type
- min max values reached, cf [FEAT] Set zoom in / zoom out max values #732
- ...
If min/max zoom level is supported see how this feature articulates with zoom constraints #731
Ensure events are sent when zoom is done with touch/gesture (should be ok as the panningHandler is calling the graph.zoom that we are overloading https://github.com/jgraph/mxgraph/blob/v4.2.2/javascript/src/js/handler/mxPanningHandler.js#L434)
See mxgraph mouse event for the mxGraph
integration.