bpmn-auto-layout 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/dist/index.cjs +798 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.esm.js +796 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +21 -8
- package/index.js +0 -1
- package/lib/AutoLayout.js +0 -514
- package/lib/DiFactory.js +0 -152
- package/lib/DiUtil.js +0 -263
- package/lib/Tree.js +0 -335
package/README.md
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
> :warning: __This project is not officially maintained.__ You are still welcome to contribute, e.g. by fixing issues or creating enhancements.
|
|
2
|
-
|
|
3
|
-
|
|
4
1
|
# bpmn-auto-layout
|
|
5
2
|
|
|
6
3
|
[](https://github.com/bpmn-io/bpmn-auto-layout/actions/workflows/CI.yml)
|
|
@@ -15,16 +12,20 @@ This library works in [Node.js](https://nodejs.org/) and in the browser.
|
|
|
15
12
|
To layout diagrams these must have __exactly one single start event__.
|
|
16
13
|
|
|
17
14
|
```javascript
|
|
18
|
-
import
|
|
15
|
+
import { layoutProcess } from 'bpmn-auto-layout';
|
|
19
16
|
|
|
20
17
|
const diagramXML = '<bpmn:defintions ...></bpmn:defintions>';
|
|
21
18
|
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const layoutedDiagramXML = await autoLayout.layoutProcess(diagramXML);
|
|
19
|
+
const layoutedDiagramXML = await layoutProcess(diagramXML);
|
|
25
20
|
|
|
26
21
|
console.log(layoutedDiagramXML);
|
|
27
22
|
```
|
|
23
|
+
## Unsupported Concepts and elements
|
|
24
|
+
|
|
25
|
+
The Tool can currently not properly layout diagrams containing any of the following:
|
|
26
|
+
- Pools
|
|
27
|
+
- Data/Message Flows and Objects, Data Stores
|
|
28
|
+
- event sub-processes
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
## Resources
|