orcasvn-react-diagrams 0.2.3 → 0.2.4

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 (32) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +15 -11
  3. package/dist/cjs/examples.js +857 -139
  4. package/dist/cjs/index.js +408 -41
  5. package/dist/cjs/types/api/types.d.ts +9 -0
  6. package/dist/cjs/types/displaybox/demos/labelStyleDemo.d.ts +2 -0
  7. package/dist/cjs/types/displaybox/demos/portPositionLimitsDemo.d.ts +2 -0
  8. package/dist/cjs/types/engine/DiagramEngine.d.ts +6 -0
  9. package/dist/cjs/types/engine/LinkRoutingService.d.ts +1 -1
  10. package/dist/cjs/types/renderer/konva/KonvaNodeFactory.d.ts +11 -0
  11. package/dist/cjs/types/renderer/konva/KonvaRenderer.d.ts +2 -0
  12. package/dist/cjs/types/strategies/ObstacleRouter.d.ts +2 -0
  13. package/dist/esm/examples.js +857 -139
  14. package/dist/esm/examples.js.map +1 -1
  15. package/dist/esm/index.js +408 -41
  16. package/dist/esm/index.js.map +1 -1
  17. package/dist/esm/types/api/types.d.ts +9 -0
  18. package/dist/esm/types/displaybox/demos/labelStyleDemo.d.ts +2 -0
  19. package/dist/esm/types/displaybox/demos/portPositionLimitsDemo.d.ts +2 -0
  20. package/dist/esm/types/engine/DiagramEngine.d.ts +6 -0
  21. package/dist/esm/types/engine/LinkRoutingService.d.ts +1 -1
  22. package/dist/esm/types/renderer/konva/KonvaNodeFactory.d.ts +11 -0
  23. package/dist/esm/types/renderer/konva/KonvaRenderer.d.ts +2 -0
  24. package/dist/esm/types/strategies/ObstacleRouter.d.ts +2 -0
  25. package/dist/examples.d.ts +9 -0
  26. package/dist/index.d.ts +10 -1
  27. package/package.json +11 -11
  28. package/src/displaybox/demos/ObstacleRoutingDemoTab.tsx +11 -10
  29. package/src/displaybox/demos/index.tsx +27 -13
  30. package/src/displaybox/demos/labelStyleDemo.ts +101 -0
  31. package/src/displaybox/demos/obstacleRoutingDemo.ts +212 -176
  32. package/src/displaybox/demos/portPositionLimitsDemo.ts +211 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.4] - 2026-05-06
6
+
7
+ ### Added
8
+ - Directional parent-child attach mode support for hierarchy-aware linking flows.
9
+ - Port position-limit normalization coverage in DisplayBox demos for add/load/move entry points.
10
+
11
+ ### Changed
12
+ - Unified child-port movement restrictions across all engine entry points (move, add, load, link-session creation, resize reprojection).
13
+ - Border-host port constraints now resolve deterministically when combined with `positionLimits`, while preserving border placement invariants.
14
+ - Routing stub behavior for sibling external links and parent-child links updated for consistent obstacle routing outcomes.
15
+
16
+ ### Fixed
17
+ - Manual link points now translate correctly when moving an element subtree.
18
+ - Multi-anchor nested routing demo behavior corrected for stable path previews.
19
+
20
+ ### Docs
21
+ - Updated release highlights in `README.md` for `v0.2.4`.
22
+
5
23
  ## [0.2.3] - 2026-05-03
6
24
 
7
25
  ### Added
package/README.md CHANGED
@@ -30,17 +30,21 @@ editor.addElement({
30
30
  });
31
31
  ```
32
32
 
33
- ## Release Highlights (v0.2.3)
34
-
35
- - Includes all completed `v0.2.1` and `v0.2.2` work, plus `v0.2.3` updates.
36
- - `v0.2.3` interaction and stability updates:
37
- - restored port-selection priority over vertex controls
38
- - suppressed occupied-vertex controls where ports already own the anchor
39
- - hardened invalid vertex-control link-drop cancellation to prevent re-entrant stack overflow
40
- - `v0.2.3` demo and behavior updates:
41
- - asymmetric multi-anchor demo now aligns initial external link endpoints deterministically
42
- - added multiple asymmetric SVG glyph variants for multi-anchor comparison
43
- - consolidated auto-layout demo coverage with label-visibility fixes
33
+ ## Release Highlights (v0.2.4)
34
+
35
+ - Includes all completed `v0.2.1`, `v0.2.2`, and `v0.2.3` work, plus `v0.2.4` updates.
36
+ - `v0.2.4` port-constraint and movement consistency updates:
37
+ - unified child-port restriction enforcement across move/add/load/link-session/resize entry points
38
+ - deterministic border-host constraint resolution when `positionLimits` are also active
39
+ - default invalid child-port positions now normalize consistently in add and load flows
40
+ - `v0.2.4` routing and hierarchy updates:
41
+ - directional parent-child attach mode support
42
+ - sibling external and parent-child stub routing rule refinements
43
+ - manual link points now translate with subtree moves
44
+ - `v0.2.4` demo coverage updates:
45
+ - expanded port-position limits scenarios including border + limits and default-position normalization
46
+ - refreshed parent/child internal-external anchor coverage
47
+ - corrected nested multi-anchor routing demonstration stability
44
48
  - Shape system upgrade:
45
49
  - class-based built-in shape behaviors
46
50
  - runtime removal of `boundaryKind` branching