Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.15 KB

File metadata and controls

28 lines (21 loc) · 1.15 KB

BPMN Diagram navigation

Javascript example to demonstrate how to navigate the BPMN diagram with the mouse.

♻️ Usage

When instantiating the BpmnVisualization object, pass an additional option to active mouse navigation support.

const bpmnVisualizationNavigation = 
new bpmnvisu.BpmnVisualization(
    {
        container: 'bpmn-container',
        navigation: { enabled: true } // allow to navigate the diagram with the mouse
    }
);
bpmnVisualizationNavigation.load(bpmnDiagram());

Scrollbars

The overflow CSS property of the bpmn-container defines if scrollbars are used to display the BPMN diagram. For values of auto or scroll, the scrollbars will be shown.

In this example, the scrollbars appear on toggle of the overflow CSS property from hidden (use the regular panning) to auto. In this case, the diagram can be moved by both using the scrollbars or the panning.