process-analytics / bpmn-visualization-js

A TypeScript library for visualizing process execution data on BPMN diagrams
https://process-analytics.github.io/bpmn-visualization-js/
Apache License 2.0
224 stars 31 forks source link

[FEAT] Allow to automatically hide and display a Minimap #591

Closed NathalieC closed 3 years ago

NathalieC commented 4 years ago

Prerequisites: process-analytics/bv-experimental-add-ons#163, process-analytics/bpmn-visualization-js#1488

~The default display of a diagram/pool is fit to viewport.~ As soon as the user zooms in, the complete view is lost and we can start displaying a minimap to help navigating a complex diagram/pool while keeping a zoom level that makes the details readable. Close to the zoom controls, save some space to display the minimap when the diagram/pool is zoomed in. I'm personally not a big fan of needing to press a button to get the minimap, nor about the fact that it is displayed on top of other elements. This is why I'd like it to appear when I zoom in, and have a location saved for it close to the viewport. image

tbouffard commented 4 years ago

As for https://github.com/process-analytics/bpmn-visualization-js/issues/731#issuecomment-721038112 and https://github.com/process-analytics/bpmn-visualization-js/issues/736#issuecomment-719559549, the integration needs to be notified on zoom level change. Once this is available, the integration will be able to display or hide the minimap.

tbouffard commented 3 years ago

Closing this issue as it is an usage example of process-analytics/bpmn-visualization-js#1488