1.0.3 • Published 5 years ago

bpmn-moddle-auto-layout-callback v1.0.3

Weekly downloads
23
License
MIT
Repository
github
Last release
5 years ago

bpmn-moddle-auto-layout

Get a layouted diagram of a bpmn-process without graphical representation.

bpmn-moddle-auto-layout is built on top of bpmn-moddle.

Usage

Preconditions: The diagram has to have exactly one single startevent. Up to now, elements with children are not supported.

var AutoLayout = require('./index');

var xmlWithoutDi = '<?xml version="1.0" encoding="UTF-8"?>' +
                      '<bpmn:definitions>' +
                          /*
                          see example.js for closer look at the
                          passed in xml
                          */
                      '</bpmn:definitions>';

var autoLayout = new AutoLayout();



autoLayout.layoutProcess(xmlWithoutDi,function(err,xml){
  console.log(xml)
});

Resources

License

Use under the terms of the MIT license.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago