@bpmnkit/core 1.15.0 → 1.17.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/builder-reference.md +2 -1
- package/dist/bpmn/auto-layout.d.ts +0 -8
- package/dist/bpmn/auto-layout.js +605 -98
- package/dist/bpmn/bpmn-builder.d.ts +120 -14
- package/dist/bpmn/bpmn-builder.js +411 -152
- package/dist/bpmn/bpmn-model.d.ts +15 -0
- package/dist/bpmn/bpmn-parser.js +32 -6
- package/dist/bpmn/bpmn-serializer.js +9 -2
- package/dist/bpmn/compact-stream.d.ts +7 -0
- package/dist/bpmn/compact-stream.js +7 -0
- package/dist/bpmn/compact.d.ts +124 -9
- package/dist/bpmn/compact.js +295 -27
- package/dist/bpmn/full-operations.d.ts +19 -0
- package/dist/bpmn/full-operations.js +191 -7
- package/dist/bpmn/make-room.js +114 -0
- package/dist/bpmn/place-new-shapes.js +4 -2
- package/dist/bpmn/preserving-writer.d.ts +1 -1
- package/dist/bpmn/preserving-writer.js +1 -1
- package/dist/bpmn/process-delta.d.ts +32 -1
- package/dist/bpmn/process-delta.js +62 -1
- package/dist/bpmn/process-text-writer.d.ts +18 -7
- package/dist/bpmn/process-text-writer.js +105 -22
- package/dist/bpmn/process-text.d.ts +27 -1
- package/dist/bpmn/process-text.js +350 -2
- package/dist/bpmn/swimlanes.d.ts +178 -0
- package/dist/bpmn/swimlanes.js +774 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -2
- package/dist/layout/collaboration/crossings.d.ts +13 -0
- package/dist/layout/collaboration/crossings.js +37 -0
- package/dist/layout/collaboration/docked-labels.d.ts +21 -0
- package/dist/layout/collaboration/docked-labels.js +65 -0
- package/dist/layout/collaboration/message-tracks.d.ts +20 -0
- package/dist/layout/collaboration/message-tracks.js +78 -0
- package/dist/layout/collaboration/stack-crossings.d.ts +38 -0
- package/dist/layout/collaboration/stack-crossings.js +155 -0
- package/dist/layout/grid/edge-labels.js +21 -10
- package/dist/layout/layered/coords.d.ts +13 -0
- package/dist/layout/layered/coords.js +211 -0
- package/dist/layout/layered/index.d.ts +21 -0
- package/dist/layout/layered/index.js +288 -0
- package/dist/layout/layered/layers.d.ts +60 -0
- package/dist/layout/layered/layers.js +374 -0
- package/dist/layout/layered/route.d.ts +66 -0
- package/dist/layout/layered/route.js +369 -0
- package/dist/layout/layout-engine.d.ts +6 -2
- package/dist/layout/layout-engine.js +4 -2
- package/dist/layout/semantic/bands.js +8 -2
- package/dist/layout/semantic/graph.d.ts +33 -1
- package/dist/layout/semantic/graph.js +200 -4
- package/dist/layout/semantic/index.d.ts +8 -2
- package/dist/layout/semantic/index.js +114 -14
- package/dist/layout/semantic/lanes.d.ts +40 -0
- package/dist/layout/semantic/lanes.js +198 -0
- package/dist/layout/semantic/place.d.ts +46 -2
- package/dist/layout/semantic/place.js +248 -30
- package/dist/layout/semantic/route.js +35 -2
- package/dist/layout/types.d.ts +0 -8
- package/dist/xml/xml-patch.d.ts +1 -1
- package/package.json +2 -2
package/builder-reference.md
CHANGED
|
@@ -111,7 +111,7 @@ Not available inside callbacks (top-level only): at, insertAfter, withAutoLayout
|
|
|
111
111
|
|
|
112
112
|
## DiagramBuilder (pools, message flows)
|
|
113
113
|
|
|
114
|
-
`Bpmn.createDiagram(id?)`: several processes in one file. `.
|
|
114
|
+
`Bpmn.createDiagram(id?)`: several processes in one file. Call `.withAutoLayout()` before `.build()` to draw shapes. Omit `processId` on `participant` for a black-box pool. Lanes go on each process (`inLane()`).
|
|
115
115
|
|
|
116
116
|
- executionPlatformVersion(version: string)
|
|
117
117
|
- process(id: string, callback: (b: ProcessBuilder) => void)
|
|
@@ -119,6 +119,7 @@ Not available inside callbacks (top-level only): at, insertAfter, withAutoLayout
|
|
|
119
119
|
- participant(id: string, options: ParticipantOptions)
|
|
120
120
|
- message(id: string, options: DiagramMessageOptions)
|
|
121
121
|
- messageFlow(id: string, options: MessageFlowOptions)
|
|
122
|
+
- withAutoLayout()
|
|
122
123
|
- build(options?: BuildGateOptions)
|
|
123
124
|
|
|
124
125
|
- ParticipantOptions: name?: string (Pool label); processId?: string (Id of the process this pool…)
|
|
@@ -3,13 +3,5 @@ import type { Bounds, LayoutHints, LayoutNode } from "../layout/types.js";
|
|
|
3
3
|
import type { BpmnDefinitions, BpmnDiEdge, BpmnDiShape, BpmnProcess } from "./bpmn-model.js";
|
|
4
4
|
/** Also used by `expand`, which lays out one process without the pool handling above. */
|
|
5
5
|
export declare function addAnnotationShapes(process: BpmnProcess, layoutNodes: LayoutNode[], annLocalBounds: Map<string, Bounds>, allShapes: BpmnDiShape[], allEdges: BpmnDiEdge[], dx: number, dy: number): void;
|
|
6
|
-
/**
|
|
7
|
-
* Replace every diagram-interchange position in `defs` with a computed layout.
|
|
8
|
-
*
|
|
9
|
-
* @param engine - Which process layout algorithm to run. Defaults to `semantic`;
|
|
10
|
-
* `grid` runs the older cell-grid walk and is used to compare the two.
|
|
11
|
-
* @param hints - Tool-grid shapes and annotation sides the builder collected;
|
|
12
|
-
* they steer placement only and are not written to `defs`.
|
|
13
|
-
*/
|
|
14
6
|
export declare function applyAutoLayout(defs: BpmnDefinitions, engine?: LayoutEngine, hints?: LayoutHints): BpmnDefinitions;
|
|
15
7
|
//# sourceMappingURL=auto-layout.d.ts.map
|