mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-12 10:04:16 +00:00
3f0583ad5f
This adds a method to switch displayed diagram without reimporting xml via ``` var viewer = new Viewer({ container: container }); viewer.importXML(xml, diagramId, done); var diagrams = viewer.getDefinitions().diagrams; viewer.open(diagrams[1], done); ```