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