Track mouse position and hover state on a diagram
npm install @bpmn-io/track-mouse
Tracks the mouse on the diagram and periodically logs mouse position and hover state to the developer console.
``javascript
import TrackMouseModule from '@bpmn-io/track-mouse';
import BpmnViewer from 'bpmn-js';
const viewer = new BpmnViewer({
additionalModules: [
TrackMouseModule
]
});
``
MIT