@aranzatech/diagrams-bpmn 0.2.13 → 0.2.15
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/dist/{catalog-Di2nzGs9.d.ts → catalog-CK3_4cOb.d.ts} +1 -1
- package/dist/{catalog-BiLXVn-2.d.cts → catalog-xOMF2ifW.d.cts} +1 -1
- package/dist/{chunk-UAWLUDKC.js → chunk-HOWK3ZOO.js} +105 -13
- package/dist/chunk-HOWK3ZOO.js.map +1 -0
- package/dist/{chunk-O3NWJ5H7.js → chunk-QSMP34CT.js} +38 -5
- package/dist/chunk-QSMP34CT.js.map +1 -0
- package/dist/{chunk-IMW6RG6F.js → chunk-X54NHLBA.js} +43 -190
- package/dist/chunk-X54NHLBA.js.map +1 -0
- package/dist/chunk-XMVV7FRZ.js +163 -0
- package/dist/chunk-XMVV7FRZ.js.map +1 -0
- package/dist/edges/index.cjs +35 -2
- package/dist/edges/index.cjs.map +1 -1
- package/dist/edges/index.js +1 -1
- package/dist/elements/index.d.cts +4 -4
- package/dist/elements/index.d.ts +4 -4
- package/dist/elk-FSFIEL6O.js +6 -0
- package/dist/elk-FSFIEL6O.js.map +1 -0
- package/dist/{guards-DPHXfpY8.d.cts → guards-C70uIY_O.d.cts} +1 -1
- package/dist/{guards-qgSeZEU4.d.ts → guards-foB6XIfZ.d.ts} +1 -1
- package/dist/index.cjs +180 -200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/layout/index.cjs +1428 -755
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.d.cts +23 -12
- package/dist/layout/index.d.ts +23 -12
- package/dist/layout/index.js +547 -72
- package/dist/layout/index.js.map +1 -1
- package/dist/modeling/index.cjs +103 -10
- package/dist/modeling/index.cjs.map +1 -1
- package/dist/modeling/index.d.cts +23 -6
- package/dist/modeling/index.d.ts +23 -6
- package/dist/modeling/index.js +1 -1
- package/dist/nodes/index.cjs +42 -188
- package/dist/nodes/index.cjs.map +1 -1
- package/dist/nodes/index.d.cts +1 -1
- package/dist/nodes/index.d.ts +1 -1
- package/dist/nodes/index.js +1 -1
- package/dist/{types-rEfHsPr5.d.ts → types-DG5yPKld.d.ts} +1 -1
- package/dist/{types-s2_VvPGf.d.cts → types-jIDz306Y.d.cts} +1 -1
- package/dist/{types-Dfrt0wVs.d.cts → types-y-ZbX-ff.d.cts} +3 -0
- package/dist/{types-Dfrt0wVs.d.ts → types-y-ZbX-ff.d.ts} +3 -0
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/xml/index.d.cts +3 -3
- package/dist/xml/index.d.ts +3 -3
- package/package.json +2 -2
- package/dist/chunk-IMW6RG6F.js.map +0 -1
- package/dist/chunk-O3NWJ5H7.js.map +0 -1
- package/dist/chunk-UAWLUDKC.js.map +0 -1
package/dist/layout/index.d.cts
CHANGED
|
@@ -1,31 +1,42 @@
|
|
|
1
1
|
import { LayoutResult, LayoutOptions } from '@aranzatech/diagrams-core/types';
|
|
2
2
|
export { applyLayoutResultToDiagram } from '@aranzatech/diagrams-core/layout';
|
|
3
|
-
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-
|
|
3
|
+
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-jIDz306Y.cjs';
|
|
4
4
|
import { BpmnDiagramState } from '../modeling/index.cjs';
|
|
5
5
|
import '@xyflow/react';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-y-ZbX-ff.cjs';
|
|
7
7
|
import '@aranzatech/diagrams-core';
|
|
8
8
|
import '@aranzatech/diagrams-core/serialization';
|
|
9
|
-
import '../catalog-
|
|
9
|
+
import '../catalog-xOMF2ifW.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* ELK-based auto-layout for BPMN diagrams.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Spacing philosophy: fixed, generous values that scale consistently
|
|
15
|
+
* regardless of diagram size. "Air" between elements is not waste —
|
|
16
|
+
* it is what makes the flow readable to the human eye.
|
|
17
|
+
*
|
|
18
|
+
* Direction policy:
|
|
15
19
|
* - Root: RIGHT — free nodes and pools flow LR on the canvas.
|
|
16
|
-
* - Pool
|
|
17
|
-
*
|
|
18
|
-
* -
|
|
19
|
-
*
|
|
20
|
-
* -
|
|
21
|
-
*
|
|
22
|
-
* -
|
|
20
|
+
* - Pool with Lanes: DOWN internally so lanes stack top-to-bottom;
|
|
21
|
+
* the pool itself is placed LR on the canvas.
|
|
22
|
+
* - Lane / SubProcess / Pool-without-lanes: RIGHT — content flows LR.
|
|
23
|
+
* - Each container runs its own INCLUDE_CHILDREN pass (per-container
|
|
24
|
+
* hierarchyHandling) so cross-lane edges are routed correctly without
|
|
25
|
+
* the global RIGHT direction forcing Lane containers sideways.
|
|
26
|
+
* - Root uses INHERIT so each pool is laid out independently.
|
|
27
|
+
* - Post-processing equalises Lane widths within each Pool so all Lanes
|
|
28
|
+
* span the full Pool width.
|
|
23
29
|
*/
|
|
24
30
|
declare function bpmnElkLayout(nodes: BpmnRFNode[], edges: BpmnRFEdge[]): Promise<{
|
|
25
31
|
nodes: BpmnRFNode[];
|
|
26
32
|
edges: BpmnRFEdge[];
|
|
27
33
|
}>;
|
|
28
34
|
|
|
35
|
+
declare function bpmnCustomLayout(nodes: BpmnRFNode[], edges: BpmnRFEdge[]): Promise<{
|
|
36
|
+
nodes: BpmnRFNode[];
|
|
37
|
+
edges: BpmnRFEdge[];
|
|
38
|
+
}>;
|
|
39
|
+
|
|
29
40
|
/**
|
|
30
41
|
* Dagre layout pre-configured for BPMN diagrams.
|
|
31
42
|
* Uses BPMN-specific node sizes (events 52×52, gateways 64×64, tasks 192×64, etc.)
|
|
@@ -38,4 +49,4 @@ declare function bpmnDagreLayout(nodes: BpmnRFNode[], edges: BpmnRFEdge[], optio
|
|
|
38
49
|
*/
|
|
39
50
|
declare function applyBpmnLayoutResult(state: BpmnDiagramState, result: LayoutResult): BpmnDiagramState;
|
|
40
51
|
|
|
41
|
-
export { applyBpmnLayoutResult, bpmnDagreLayout, bpmnElkLayout };
|
|
52
|
+
export { applyBpmnLayoutResult, bpmnCustomLayout, bpmnDagreLayout, bpmnElkLayout };
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -1,31 +1,42 @@
|
|
|
1
1
|
import { LayoutResult, LayoutOptions } from '@aranzatech/diagrams-core/types';
|
|
2
2
|
export { applyLayoutResultToDiagram } from '@aranzatech/diagrams-core/layout';
|
|
3
|
-
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-
|
|
3
|
+
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-DG5yPKld.js';
|
|
4
4
|
import { BpmnDiagramState } from '../modeling/index.js';
|
|
5
5
|
import '@xyflow/react';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-y-ZbX-ff.js';
|
|
7
7
|
import '@aranzatech/diagrams-core';
|
|
8
8
|
import '@aranzatech/diagrams-core/serialization';
|
|
9
|
-
import '../catalog-
|
|
9
|
+
import '../catalog-CK3_4cOb.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* ELK-based auto-layout for BPMN diagrams.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Spacing philosophy: fixed, generous values that scale consistently
|
|
15
|
+
* regardless of diagram size. "Air" between elements is not waste —
|
|
16
|
+
* it is what makes the flow readable to the human eye.
|
|
17
|
+
*
|
|
18
|
+
* Direction policy:
|
|
15
19
|
* - Root: RIGHT — free nodes and pools flow LR on the canvas.
|
|
16
|
-
* - Pool
|
|
17
|
-
*
|
|
18
|
-
* -
|
|
19
|
-
*
|
|
20
|
-
* -
|
|
21
|
-
*
|
|
22
|
-
* -
|
|
20
|
+
* - Pool with Lanes: DOWN internally so lanes stack top-to-bottom;
|
|
21
|
+
* the pool itself is placed LR on the canvas.
|
|
22
|
+
* - Lane / SubProcess / Pool-without-lanes: RIGHT — content flows LR.
|
|
23
|
+
* - Each container runs its own INCLUDE_CHILDREN pass (per-container
|
|
24
|
+
* hierarchyHandling) so cross-lane edges are routed correctly without
|
|
25
|
+
* the global RIGHT direction forcing Lane containers sideways.
|
|
26
|
+
* - Root uses INHERIT so each pool is laid out independently.
|
|
27
|
+
* - Post-processing equalises Lane widths within each Pool so all Lanes
|
|
28
|
+
* span the full Pool width.
|
|
23
29
|
*/
|
|
24
30
|
declare function bpmnElkLayout(nodes: BpmnRFNode[], edges: BpmnRFEdge[]): Promise<{
|
|
25
31
|
nodes: BpmnRFNode[];
|
|
26
32
|
edges: BpmnRFEdge[];
|
|
27
33
|
}>;
|
|
28
34
|
|
|
35
|
+
declare function bpmnCustomLayout(nodes: BpmnRFNode[], edges: BpmnRFEdge[]): Promise<{
|
|
36
|
+
nodes: BpmnRFNode[];
|
|
37
|
+
edges: BpmnRFEdge[];
|
|
38
|
+
}>;
|
|
39
|
+
|
|
29
40
|
/**
|
|
30
41
|
* Dagre layout pre-configured for BPMN diagrams.
|
|
31
42
|
* Uses BPMN-specific node sizes (events 52×52, gateways 64×64, tasks 192×64, etc.)
|
|
@@ -38,4 +49,4 @@ declare function bpmnDagreLayout(nodes: BpmnRFNode[], edges: BpmnRFEdge[], optio
|
|
|
38
49
|
*/
|
|
39
50
|
declare function applyBpmnLayoutResult(state: BpmnDiagramState, result: LayoutResult): BpmnDiagramState;
|
|
40
51
|
|
|
41
|
-
export { applyBpmnLayoutResult, bpmnDagreLayout, bpmnElkLayout };
|
|
52
|
+
export { applyBpmnLayoutResult, bpmnCustomLayout, bpmnDagreLayout, bpmnElkLayout };
|