Package Exports
- diagram-js-minimap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (diagram-js-minimap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
As of version
1.0.0
this library exposes ES modules. Use an ES module aware transpiler such as Webpack, Rollup or Browserify + babelify to bundle it for the browser.
diagram-js Minimap
A minimap for diagram-js.
Features
- See the whole diagram in the minimap
- Highlight current viewport
- Click/drag/scroll the minimap to navigate the diagram
Usage
Extend your diagram-js application with the minimap module. We'll use bpmn-js as an example:
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:
<link rel="stylesheet" href="diagram-js-minimap/assets/diagram-js-minimap.css" />
Please see this example for a more detailed instruction.
License
MIT