orcasvn-react-diagrams 0.2.6 → 0.2.7

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,24 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.2.7] - 2026-05-18
6
+
7
+ ### Added
8
+ - Parent-owned child drag lock via `ElementData.childElementInteraction.movable`, allowing direct child elements to remain selectable while suppressing built-in pointer drag.
9
+
10
+ ### Changed
11
+ - Built-in empty-paper panning now starts from plain primary-button drag without requiring `Ctrl`, and the applied pan direction now follows pointer movement.
12
+ - Marquee selection now uses `Shift + primary drag` on empty paper so paper-drag panning and box selection do not conflict.
13
+ - Enabled grid child width topology editing (`layout.gridChildWidthResizeEnabled`) now applies consistently to all direct grid children, including nested layout-container children.
14
+
15
+ ### Fixed
16
+ - Preserved disabled grid-child resize compatibility so nested layout-parent children stay directly horizontally resizable unless the grid width-topology capability is explicitly enabled.
17
+ - Prevented built-in child drag suppression from blocking programmatic `moveElementTo(...)`, layout reflow, or ancestor-driven repositioning.
18
+
19
+ ### Docs
20
+ - Updated `README.md` release highlights for `v0.2.7`.
21
+ - Updated public API and machine-readable contract docs for `ElementChildInteractionPolicy`, `childElementInteraction`, and `v0.2.7` interaction behavior.
22
+
5
23
  ## [0.2.6] - 2026-05-14
6
24
 
7
25
  ### Added
package/README.md CHANGED
@@ -30,21 +30,18 @@ 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.7)
34
+
35
+ - Includes all completed `v0.2.1` through `v0.2.6` work, plus `v0.2.7` updates.
36
+ - `v0.2.7` child interaction update:
37
+ - parent elements can suppress built-in drag for direct child elements with `childElementInteraction.movable = false`
38
+ - locked child elements remain selectable, while programmatic movement and layout-driven repositioning still work
39
+ - `v0.2.7` viewport gesture update:
40
+ - empty-paper primary drag now pans without requiring `Ctrl`
41
+ - pan direction now follows pointer movement
42
+ - marquee selection now uses `Shift + drag` on empty paper
43
+ - `v0.2.7` grid auto-layout update:
44
+ - enabled `layout.gridChildWidthResizeEnabled` now applies the same 12-unit width-topology behavior to all direct grid children, including nested layout parents
48
45
 
49
46
  ## API Docs
50
47
 
@@ -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-18"
34
34
  }