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 +18 -0
- package/README.md +12 -15
- package/ai/api-contract.json +7 -0
- package/ai/manifest.json +1 -1
- package/dist/cjs/examples.js +509 -245
- package/dist/cjs/index.js +79 -53
- package/dist/cjs/types/api/types.d.ts +4 -0
- package/dist/cjs/types/displaybox/demos/autoLayoutDemo.d.ts +2 -0
- package/dist/cjs/types/engine/DiagramEngine.d.ts +2 -0
- package/dist/cjs/types/models/ElementModel.d.ts +1 -0
- package/dist/cjs/types/renderer/konva/KonvaInteraction.d.ts +1 -2
- package/dist/esm/examples.js +509 -245
- package/dist/esm/examples.js.map +1 -1
- package/dist/esm/index.js +79 -53
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/api/types.d.ts +4 -0
- package/dist/esm/types/displaybox/demos/autoLayoutDemo.d.ts +2 -0
- package/dist/esm/types/engine/DiagramEngine.d.ts +2 -0
- package/dist/esm/types/models/ElementModel.d.ts +1 -0
- package/dist/esm/types/renderer/konva/KonvaInteraction.d.ts +1 -2
- package/dist/examples.d.ts +4 -0
- package/dist/index.d.ts +6 -1
- package/docs/API_CONTRACT.md +13 -2
- package/docs/CAPABILITIES.md +1 -0
- package/docs/COMMANDS_EVENTS.md +1 -0
- package/docs/DOCUMENTATION_WORKFLOW.md +2 -1
- package/docs/INTEGRATION_PLAYBOOK.md +1 -0
- package/package.json +1 -1
- package/src/displaybox/demos/AutoLayoutDemoTab.tsx +96 -18
- package/src/displaybox/demos/autoLayoutDemo.ts +150 -31
- package/src/displaybox/demos/nestedDemo.ts +122 -69
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.
|
|
34
|
-
|
|
35
|
-
- Includes all completed `v0.2.1` through `v0.2.
|
|
36
|
-
- `v0.2.
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
- `v0.2.
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
- `v0.2.
|
|
44
|
-
-
|
|
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
|
|
package/ai/api-contract.json
CHANGED
|
@@ -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