A minimap for diagram-js
npm install diagram-js-minimap
A minimap for diagram-js.
* See the whole diagram in the minimap
* Highlight current viewport
* Click/drag/scroll the minimap to navigate the diagram
Extend your diagram-js application with the minimap module. We'll use bpmn-js as an example:
``javascript
import BpmnModeler from 'bpmn-js/lib/Modeler';
import minimapModule from 'diagram-js-minimap';
var bpmnModeler = new BpmnModeler({
additionalModules: [
minimapModule
]
});
`
For proper styling integrate the embedded style sheet:
`html``
Please see this example for a more detailed instruction.
MIT