Use one BpmnViewer instance to draw on multiple canvases

Hi. I’m making a react app with multiple canvases where I would draw multiple diagrams. Can I use one instance of BpmnViewer (without providing it a specific { container: canvas } property to the constructor) to render into different, dynamically generated containers (with different IDs), or do I need to instantiate multiple BpmnViewer instances for every single container that would be rendered?

You need to instantiate multiple instances of the viewer / editor.

Alternatively you may use different planes (cf. drilldown blog) to model on different planes, within the same editor. Depends on your use-case.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.