@opsydyn/foldkit-zloz-elk 0.10.0 → 0.11.1
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 +12 -0
- package/README.md +10 -10
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
- Reserve caller-declared composite edge-label bounds in compound layouts and return validated world-coordinate boxes, including custom badges on unlabeled edges.
|
|
10
10
|
|
|
11
|
+
## [0.11.1](https://github.com/opsydyn/fold-kit-experiments/compare/foldkit-zloz-elk-v0.11.0...foldkit-zloz-elk-v0.11.1) (2026-11-30)
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
- **foldkit-zloz-elk:** Synchronize foldkit-zloz versions
|
|
16
|
+
|
|
17
|
+
## [0.11.0](https://github.com/opsydyn/fold-kit-experiments/compare/foldkit-zloz-elk-v0.10.0...foldkit-zloz-elk-v0.11.0) (2026-11-26)
|
|
18
|
+
|
|
19
|
+
### Miscellaneous Chores
|
|
20
|
+
|
|
21
|
+
- **foldkit-zloz-elk:** Synchronize foldkit-zloz versions
|
|
22
|
+
|
|
11
23
|
## [0.10.0](https://github.com/opsydyn/fold-kit-experiments/compare/foldkit-zloz-elk-v0.9.0...foldkit-zloz-elk-v0.10.0) (2026-11-23)
|
|
12
24
|
|
|
13
25
|
### Miscellaneous Chores
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ZLOZ ELK
|
|
2
2
|
|
|
3
3
|
Optional automatic layout for `@opsydyn/foldkit-zloz`. The adapter maps flat and nested graphs with fixed ports to ELK Layered. It returns node
|
|
4
4
|
positions, fitted group bounds, and orthogonal edge routes. It owns no UI, persistence, graph state or workflow execution.
|
|
5
5
|
|
|
6
6
|
The public package family is released together. Native v3 group-port layout is included in 0.6.0.
|
|
7
7
|
|
|
8
|
-
The four public
|
|
8
|
+
The four public ZLOZ packages release together, with adapters pinned to the exact
|
|
9
9
|
core version. The [release train](https://github.com/opsydyn/fold-kit-experiments/blob/main/docs/releases/foldkit-zloz.md#release-action)
|
|
10
10
|
verifies registry archives and provenance before advancing to the next package.
|
|
11
11
|
|
|
@@ -22,7 +22,7 @@ import { createElkLayout } from '@opsydyn/foldkit-zloz-elk';
|
|
|
22
22
|
const editor = createEditor({ nodes: [], edges: [] });
|
|
23
23
|
const active = layoutRequest(editor, 'arrange-1');
|
|
24
24
|
const layout = createElkLayout({ direction: 'RIGHT', spacing: 64 });
|
|
25
|
-
const result = await layout(active); // Run this work in
|
|
25
|
+
const result = await layout(active); // Run this work in the host command.
|
|
26
26
|
const arranged = applyLayout(editor, active, result);
|
|
27
27
|
```
|
|
28
28
|
|
|
@@ -48,13 +48,13 @@ does not cancel ELK computation; request/revision checks prevent late publicatio
|
|
|
48
48
|
See [ELK's worker documentation](https://github.com/kieler/elkjs#web-worker).
|
|
49
49
|
|
|
50
50
|
ELK is an external dependency, not bundled into this package. The core package
|
|
51
|
-
installs and works without it. Node 22+, ESM only. Compatibility uses the matching
|
|
52
|
-
The adapter has no
|
|
51
|
+
installs and works without it. Node 22+, ESM only. Compatibility uses the matching ZLOZ version and the pinned elkjs 0.12.1. Both ZLOZ packages release at the same version.
|
|
52
|
+
The adapter has no Effect UI or Effect peer.
|
|
53
53
|
|
|
54
54
|
The server baseline is **Node 22+**; the default adapter is qualified in Node and
|
|
55
55
|
Chromium. In the observed Bun 1.4.4 / macOS 26.6.2 arm64 consumer, layout completes
|
|
56
56
|
but the standalone process stays alive. A minimal `elkjs@0.12.1` program reproduces
|
|
57
|
-
this without
|
|
57
|
+
this without ZLOZ. Bun process-exit behavior for ELK is outside this release's
|
|
58
58
|
qualification; use Node for CLI layout jobs. Other Bun versions/platforms are
|
|
59
59
|
unqualified for this lifecycle behavior. Core, Force and Mermaid separately pass
|
|
60
60
|
standalone Node and Bun consumers.
|
|
@@ -62,12 +62,12 @@ standalone Node and Bun consumers.
|
|
|
62
62
|
## Scope and verification
|
|
63
63
|
|
|
64
64
|
Compound layout preserves group membership and routes directed edges across
|
|
65
|
-
boundaries.
|
|
65
|
+
boundaries. ZLOZ edges connect one source to one target. Compare representative
|
|
66
66
|
diagrams before upgrading ELK, since layout may vary by version.
|
|
67
67
|
|
|
68
68
|
Run `bun run --filter @opsydyn/foldkit-zloz-elk test`, `typecheck` and `pack:check`.
|
|
69
69
|
The core's packed consumer test installs both tarballs through npm and exercises
|
|
70
|
-
real layout plus the optional
|
|
70
|
+
real layout plus the optional Effect UI renderer.
|
|
71
71
|
|
|
72
72
|
See [publication standards](https://github.com/opsydyn/fold-kit-experiments/blob/main/docs/releases/foldkit-zloz.md) and
|
|
73
73
|
[dependency notices](THIRD-PARTY-NOTICES.md).
|
|
@@ -105,7 +105,7 @@ bounds and group headers are outside this space-reservation guarantee.
|
|
|
105
105
|
|
|
106
106
|
For intrinsic custom badges, core's `startLabelMeasurement`,
|
|
107
107
|
`updateLabelMeasurements` and `resolveLabelMeasurements` can supply the explicit
|
|
108
|
-
`edgeLabels` hints. The optional
|
|
108
|
+
`edgeLabels` hints. The optional Effect UI view measures HTML border boxes only on
|
|
109
109
|
request. Recheck freshness before both starting ELK and applying its result; ELK
|
|
110
110
|
does not load fonts, inspect DOM or start measurement itself. See the
|
|
111
111
|
[core measured-label guide](../foldkit-zloz/README.md#opt-in-measured-label-bounds-unreleased).
|
|
@@ -154,7 +154,7 @@ A stale source, lifecycle veto or protected move/resize blocks the entire result
|
|
|
154
154
|
A changed layout appends one Undo frame; identical geometry appends none.
|
|
155
155
|
|
|
156
156
|
`applyGroupWorkbenchLayoutV3` integrates accepted routes into the native controller.
|
|
157
|
-
Its optional
|
|
157
|
+
Its optional Effect UI view renders them only while the complete document matches,
|
|
158
158
|
no move/connection gesture is active and no collapsed projection is present.
|
|
159
159
|
Undo/editing invalidates routes; camera/selection do not author layout geometry.
|
|
160
160
|
Routes are transient, not serialized into authored edges. Authored waypoints keep
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opsydyn/foldkit-zloz-elk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Optional ELK layout adapter for
|
|
3
|
+
"version": "0.11.1",
|
|
4
|
+
"description": "Optional ELK layout adapter for ZLOZ.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"diagram",
|
|
7
7
|
"flow",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@arethetypeswrong/cli": "0.18.5",
|
|
56
|
-
"@opsydyn/foldkit-zloz": "0.
|
|
56
|
+
"@opsydyn/foldkit-zloz": "0.11.1",
|
|
57
57
|
"@types/node": "^22.0.0",
|
|
58
58
|
"bun-types": "^1.3.14",
|
|
59
59
|
"publint": "0.3.25",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"typescript": "^6.0.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@opsydyn/foldkit-zloz": "0.
|
|
64
|
+
"@opsydyn/foldkit-zloz": "0.11.1"
|
|
65
65
|
},
|
|
66
66
|
"engines": {
|
|
67
67
|
"node": ">=22.0.0"
|