Today's bpmn-js release shrinks the bundle size of our pre-built distro by roughly eight percent. Other than that it adresses a modeling interaction bug on Internet Explorer and Edge.
We have incorporated the following changes into this release:
CHORE: Tree-shake and module concat pre-built distributions (bpmn-io/bpmn-js#728)FIX: Properly remove markers on reconnect on IE/Edge (bpmn-io/diagram-js#236)CHORE: Internalize Viewer/Modeler fields (642d7b88)
Get the release via npm or bower.
Update: As of
bpmn-js@0.25.1we've partially reverted642d7b88and re-exposed the BPMN model loaded in the viewer/modeler instance. The importedbpmn:Definitionsinstance is now accessible via#getDefinitions():var bpmnJS = new BpmnJS(); bpmnJS.getDefinitions(); // null; no definitions loaded yet bpmnJS.importXML(diagramXML, function() { var definitions = bpmnJS.getDefinitions(); // { ... }; imported from diagram });
Are you passionate about JavaScript, modeling, and the web?
Join Camunda and build modeling tools people .