Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 917 Bytes

File metadata and controls

18 lines (13 loc) · 917 Bytes

BPMN Diagram fit after load

Javascript example to demonstrate how can fit the BPMN diagram after load.

♻️ Usage

⚠️ In order to avoid having to many content in the README, we simplify it. You can find all the content of the example in index.html.

  1. You need to initialize the BPMN container with a fixed width & a fixed height, and load the BPMN diagram, like done here.

  2. Fit the BPMN container.

bpmnVisualization.fit({ type: bpmnvisu.FitType.Horizontal, margin: 10 });

ℹ️ type and margin are optional. Moreover, margin is only considered when FitType is not None.