@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.
Files changed (52) hide show
  1. package/dist/{catalog-Di2nzGs9.d.ts → catalog-CK3_4cOb.d.ts} +1 -1
  2. package/dist/{catalog-BiLXVn-2.d.cts → catalog-xOMF2ifW.d.cts} +1 -1
  3. package/dist/{chunk-UAWLUDKC.js → chunk-HOWK3ZOO.js} +105 -13
  4. package/dist/chunk-HOWK3ZOO.js.map +1 -0
  5. package/dist/{chunk-O3NWJ5H7.js → chunk-QSMP34CT.js} +38 -5
  6. package/dist/chunk-QSMP34CT.js.map +1 -0
  7. package/dist/{chunk-IMW6RG6F.js → chunk-X54NHLBA.js} +43 -190
  8. package/dist/chunk-X54NHLBA.js.map +1 -0
  9. package/dist/chunk-XMVV7FRZ.js +163 -0
  10. package/dist/chunk-XMVV7FRZ.js.map +1 -0
  11. package/dist/edges/index.cjs +35 -2
  12. package/dist/edges/index.cjs.map +1 -1
  13. package/dist/edges/index.js +1 -1
  14. package/dist/elements/index.d.cts +4 -4
  15. package/dist/elements/index.d.ts +4 -4
  16. package/dist/elk-FSFIEL6O.js +6 -0
  17. package/dist/elk-FSFIEL6O.js.map +1 -0
  18. package/dist/{guards-DPHXfpY8.d.cts → guards-C70uIY_O.d.cts} +1 -1
  19. package/dist/{guards-qgSeZEU4.d.ts → guards-foB6XIfZ.d.ts} +1 -1
  20. package/dist/index.cjs +180 -200
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +5 -5
  23. package/dist/index.d.ts +5 -5
  24. package/dist/index.js +3 -3
  25. package/dist/layout/index.cjs +1428 -755
  26. package/dist/layout/index.cjs.map +1 -1
  27. package/dist/layout/index.d.cts +23 -12
  28. package/dist/layout/index.d.ts +23 -12
  29. package/dist/layout/index.js +547 -72
  30. package/dist/layout/index.js.map +1 -1
  31. package/dist/modeling/index.cjs +103 -10
  32. package/dist/modeling/index.cjs.map +1 -1
  33. package/dist/modeling/index.d.cts +23 -6
  34. package/dist/modeling/index.d.ts +23 -6
  35. package/dist/modeling/index.js +1 -1
  36. package/dist/nodes/index.cjs +42 -188
  37. package/dist/nodes/index.cjs.map +1 -1
  38. package/dist/nodes/index.d.cts +1 -1
  39. package/dist/nodes/index.d.ts +1 -1
  40. package/dist/nodes/index.js +1 -1
  41. package/dist/{types-rEfHsPr5.d.ts → types-DG5yPKld.d.ts} +1 -1
  42. package/dist/{types-s2_VvPGf.d.cts → types-jIDz306Y.d.cts} +1 -1
  43. package/dist/{types-Dfrt0wVs.d.cts → types-y-ZbX-ff.d.cts} +3 -0
  44. package/dist/{types-Dfrt0wVs.d.ts → types-y-ZbX-ff.d.ts} +3 -0
  45. package/dist/validation/index.d.cts +2 -2
  46. package/dist/validation/index.d.ts +2 -2
  47. package/dist/xml/index.d.cts +3 -3
  48. package/dist/xml/index.d.ts +3 -3
  49. package/package.json +2 -2
  50. package/dist/chunk-IMW6RG6F.js.map +0 -1
  51. package/dist/chunk-O3NWJ5H7.js.map +0 -1
  52. package/dist/chunk-UAWLUDKC.js.map +0 -1
@@ -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-s2_VvPGf.cjs';
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-Dfrt0wVs.cjs';
6
+ import '../types-y-ZbX-ff.cjs';
7
7
  import '@aranzatech/diagrams-core';
8
8
  import '@aranzatech/diagrams-core/serialization';
9
- import '../catalog-BiLXVn-2.cjs';
9
+ import '../catalog-xOMF2ifW.cjs';
10
10
 
11
11
  /**
12
12
  * ELK-based auto-layout for BPMN diagrams.
13
13
  *
14
- * Direction policy always LEFT-TO-RIGHT to match screen anatomy:
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 that contains Lanes: DOWN internally so lanes stack top-to-bottom
17
- * (standard horizontal-pool anatomy); the pool itself is still placed LR.
18
- * - Pool without lanes, Lane, SubProcess, Transaction, AdHoc: RIGHT — content
19
- * flows left-to-right inside the container.
20
- * - All edges get ORTHOGONAL routing in a single INCLUDE_CHILDREN pass so
21
- * cross-pool and cross-lane edges are routed correctly.
22
- * - Containers auto-resize to fit their children.
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 };
@@ -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-rEfHsPr5.js';
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-Dfrt0wVs.js';
6
+ import '../types-y-ZbX-ff.js';
7
7
  import '@aranzatech/diagrams-core';
8
8
  import '@aranzatech/diagrams-core/serialization';
9
- import '../catalog-Di2nzGs9.js';
9
+ import '../catalog-CK3_4cOb.js';
10
10
 
11
11
  /**
12
12
  * ELK-based auto-layout for BPMN diagrams.
13
13
  *
14
- * Direction policy always LEFT-TO-RIGHT to match screen anatomy:
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 that contains Lanes: DOWN internally so lanes stack top-to-bottom
17
- * (standard horizontal-pool anatomy); the pool itself is still placed LR.
18
- * - Pool without lanes, Lane, SubProcess, Transaction, AdHoc: RIGHT — content
19
- * flows left-to-right inside the container.
20
- * - All edges get ORTHOGONAL routing in a single INCLUDE_CHILDREN pass so
21
- * cross-pool and cross-lane edges are routed correctly.
22
- * - Containers auto-resize to fit their children.
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 };