orcasvn-react-diagrams 0.2.6 → 0.2.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.8] - 2026-05-24
6
+
7
+ ### Fixed
8
+ - Grid auto-layout now preserves the owner-assigned slot size of a direct child that is itself an empty non-manual layout parent during the active layout cycle.
9
+ - Enabled `layout.gridChildWidthResizeEnabled` resize redistribution now keeps that nested layout parent at its resolved slot size instead of collapsing it back to empty padding bounds.
10
+
11
+ ### Docs
12
+ - Updated `README.md` release highlights for `v0.2.8`.
13
+ - Refreshed release workflow metadata for `v0.2.8`.
14
+
15
+ ## [0.2.7] - 2026-05-18
16
+
17
+ ### Added
18
+ - Parent-owned child drag lock via `ElementData.childElementInteraction.movable`, allowing direct child elements to remain selectable while suppressing built-in pointer drag.
19
+
20
+ ### Changed
21
+ - Built-in empty-paper panning now starts from plain primary-button drag without requiring `Ctrl`, and the applied pan direction now follows pointer movement.
22
+ - Marquee selection now uses `Shift + primary drag` on empty paper so paper-drag panning and box selection do not conflict.
23
+ - Enabled grid child width topology editing (`layout.gridChildWidthResizeEnabled`) now applies consistently to all direct grid children, including nested layout-container children.
24
+
25
+ ### Fixed
26
+ - Preserved disabled grid-child resize compatibility so nested layout-parent children stay directly horizontally resizable unless the grid width-topology capability is explicitly enabled.
27
+ - Prevented built-in child drag suppression from blocking programmatic `moveElementTo(...)`, layout reflow, or ancestor-driven repositioning.
28
+
29
+ ### Docs
30
+ - Updated `README.md` release highlights for `v0.2.7`.
31
+ - Updated public API and machine-readable contract docs for `ElementChildInteractionPolicy`, `childElementInteraction`, and `v0.2.7` interaction behavior.
32
+
5
33
  ## [0.2.6] - 2026-05-14
6
34
 
7
35
  ### Added
@@ -12,6 +40,7 @@ All notable changes to this project are documented in this file.
12
40
 
13
41
  ### Changed
14
42
  - Grid auto-layout now keeps overflow rows on the established fallback model while deriving row occupancy from flat slot templates.
43
+ - Grid auto-layout `gridTemplate` now uses a flat one-level slot array shape such as `[12,4,8]` instead of nested row arrays, with rows derived greedily during layout.
15
44
  - Partial grid rows keep proportional occupied width when children are added, and direct child move/resize relayout now preserves parent width unless topology actually changes.
16
45
  - Resize-handle interaction now applies bounds changes directly without routing through move semantics.
17
46
  - Auto routing now preserves endpoint-host interior avoidance for offset attach anchors by treating projected border-equivalent endpoints like boundary endpoints.
package/README.md CHANGED
@@ -30,21 +30,12 @@ editor.addElement({
30
30
  });
31
31
  ```
32
32
 
33
- ## Release Highlights (v0.2.6)
34
-
35
- - Includes all completed `v0.2.1` through `v0.2.5` work, plus `v0.2.6` updates.
36
- - `v0.2.6` viewport update:
37
- - new `editor.zoomToFitElements(options?)` helper for centered fit-to-elements navigation
38
- - additive `ViewportFitOptions` with `padding`, `minZoom`, and `maxZoom`
39
- - `v0.2.6` grid auto-layout updates:
40
- - opt-in grid child width topology editing via `layout.gridChildWidthResizeEnabled`
41
- - dedicated `gridLayoutChanged` event for resize-driven row split/redistribution
42
- - proportional partial-row parent sizing on child add, with stable parent width on child move/resize relayout
43
- - `v0.2.6` routing update:
44
- - offset external/internal attach anchors now preserve endpoint-host interior avoidance through projected boundary metadata
45
- - `v0.2.6` interaction update:
46
- - resize handle drags no longer route through move semantics before resize is applied
47
- - per-text interaction policy can suppress built-in drag and/or built-in editing with `TextData.interaction`
33
+ ## Release Highlights (v0.2.8)
34
+
35
+ - Includes all completed `v0.2.1` through `v0.2.7` work, plus `v0.2.8` updates.
36
+ - `v0.2.8` grid auto-layout fix:
37
+ - direct grid children that are themselves non-manual layout parents now keep the owner-assigned slot size for the active layout cycle, even when they are empty
38
+ - enabled `layout.gridChildWidthResizeEnabled` resize flows now preserve that assigned size instead of collapsing the nested layout parent back to padding-only bounds
48
39
 
49
40
  ## API Docs
50
41
 
@@ -85,6 +85,7 @@
85
85
  "moveMode",
86
86
  "anchorCenter",
87
87
  "layout",
88
+ "childElementInteraction",
88
89
  "portMovement"
89
90
  ],
90
91
  "defaults": {
@@ -209,6 +210,12 @@
209
210
  "editable": true
210
211
  }
211
212
  },
213
+ "elementChildInteractionPolicy": {
214
+ "movable": "boolean",
215
+ "defaults": {
216
+ "movable": true
217
+ }
218
+ },
212
219
  "shapeHoverControls": {
213
220
  "targetKinds": [
214
221
  "vertex",
package/ai/manifest.json CHANGED
@@ -30,5 +30,5 @@
30
30
  "analysis/White paper/Overview.md",
31
31
  "analysis/White paper/Requirements-Functional.md"
32
32
  ],
33
- "updatedAt": "2026-05-14"
33
+ "updatedAt": "2026-05-24"
34
34
  }