@kineviz/gl 0.7.0 → 0.7.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 +636 -1
- package/dist/chunk-3CR3GHJ2.mjs +2 -0
- package/dist/index.d.mts +1552 -127
- package/dist/index.d.ts +1552 -127
- package/dist/index.js +640 -106
- package/dist/index.mjs +615 -81
- package/dist/kineviz-gl.umd.js +493 -324
- package/dist/layout-gpu.js +45 -45
- package/dist/layout-gpu.mjs +12 -12
- package/dist/schemas.js +1 -1
- package/dist/schemas.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,642 @@ All notable changes to `@kineviz/gl` are documented here.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 0.7.1 — 2026-11-26
|
|
8
|
+
|
|
9
|
+
Maps down to street level, new layers (buildings, 3D models, effect layers,
|
|
10
|
+
video), orthogonal edges and hierarchy layouts, and fixes, most of them for
|
|
11
|
+
maps with `forceLayout`. Nothing exported by 0.7.0 was removed. Three
|
|
12
|
+
entries marked Changed alter what you see: collected nodes, badge and tag
|
|
13
|
+
placement, and the draw order of photos, videos and cards.
|
|
14
|
+
|
|
15
|
+
### Added — street level on the globe: `map.minAltitude`, the follow camera, see-through buildings
|
|
16
|
+
|
|
17
|
+
These let a view go down among the buildings and travel between them.
|
|
18
|
+
|
|
19
|
+
- **`map.minAltitude`** (and `<GlobeLayer minAltitude>`): how close the wheel
|
|
20
|
+
can bring the camera to the ground, in metres. Default 2. While the camera
|
|
21
|
+
is low, below about 6 km on the default globe, its near and far planes follow
|
|
22
|
+
the altitude, so a building a few metres away is not clipped and depth
|
|
23
|
+
stays precise. `controlConfig.zoomMax` still overrides it.
|
|
24
|
+
Tests: `src/map/geo-map/__tests__/streetCamera.test.ts`.
|
|
25
|
+
- **`followShot(points, options)`** (cinematics): a shot that rides behind a
|
|
26
|
+
route at constant speed: `distance` back, `pitch` degrees down, level
|
|
27
|
+
heading, corners eased over `smoothing`. `marks` gives a cue (with `at` and
|
|
28
|
+
`until`) at each listed point. Cue it and drive it with `director.scrub` to
|
|
29
|
+
follow a route clock. The options type is exported as `FollowShotOptions`.
|
|
30
|
+
Tests: `src/cinematics/__tests__/followShot.test.ts`.
|
|
31
|
+
- **`<BuildingsLayer cutaway>`**: `{ path, radius?, opacity? }`. Buildings
|
|
32
|
+
within `radius` metres (default 12) of the `[lat, lng]` polyline are drawn
|
|
33
|
+
as see-through ghosts (`opacity`, default 0.12) instead of solid blocks. Pass
|
|
34
|
+
the line from the camera to what it looks at, and nothing stands in the way.
|
|
35
|
+
The pure `buildingsAlong(geometry, path, radius)` returns the indices of
|
|
36
|
+
those buildings. `BuildingFootprint` is exported too.
|
|
37
|
+
- **`<BuildingsLayer floorOpacity floorColor levelsProperty>`**: a line round
|
|
38
|
+
each building at every storey, from the `levels` property (default name
|
|
39
|
+
`"levels"`, the count of OSM `building:levels`). Default `floorOpacity` 0, so
|
|
40
|
+
no lines.
|
|
41
|
+
Tests for both: `src/react/layers/__tests__/BuildingsLayer.test.ts`.
|
|
42
|
+
|
|
43
|
+
### Fixed — wheel zoom stuck near the ground, and not symmetric
|
|
44
|
+
|
|
45
|
+
Zoomed all the way in, the wheel then did nothing in either direction below
|
|
46
|
+
about 70 m. A step smaller than a fixed world-unit threshold was dropped, and
|
|
47
|
+
at that height every step was smaller. The threshold is now relative to the
|
|
48
|
+
height. A notch in and a notch out also now cancel exactly, so the same notches
|
|
49
|
+
out bring the camera back to where it was.
|
|
50
|
+
Tests: `src/interaction/__tests__/GlobeControl.wheel.test.tsx`.
|
|
51
|
+
|
|
52
|
+
### Fixed — precision and drawing at street scale
|
|
53
|
+
|
|
54
|
+
- Globe tiles are stored around a local origin, and a tile with very few
|
|
55
|
+
segments no longer draws a grey streak across the globe.
|
|
56
|
+
Tests: `src/map/geo-map/__tests__/streetCamera.test.ts`.
|
|
57
|
+
- `<PathHighlightLayer>` ribbons are stored around a local origin on the
|
|
58
|
+
route, so they no longer jitter close up.
|
|
59
|
+
Tests: `src/react/layers/__tests__/effectLayers.test.ts`.
|
|
60
|
+
- A `<PathHighlightLayer>` segment that runs behind the camera is clipped at
|
|
61
|
+
the near plane instead of vanishing, so a route the camera stands on stays
|
|
62
|
+
drawn. This is shader code, which vitest cannot run; it was checked in the
|
|
63
|
+
browser.
|
|
64
|
+
- `api.map.flyTo` on the globe now also undoes a sideways offset of the globe,
|
|
65
|
+
such as a `cinematics` shot leaves, so the target ends at the screen centre.
|
|
66
|
+
Tests: `src/api/modules/__tests__/MapApi.flyToRecentre.test.ts`.
|
|
67
|
+
- `api.map.elevation` was lost after the geo layout was applied again. The
|
|
68
|
+
render loop does that once the layout's buffer is ready, which put elevated
|
|
69
|
+
nodes back on the ground for good. Nodes rewritten by `applyGeoLayout` are
|
|
70
|
+
now lifted again.
|
|
71
|
+
Tests: `src/api/modules/__tests__/MapApi.geoLayoutElevation.test.ts`.
|
|
72
|
+
|
|
73
|
+
### Added — `<BuildingsLayer>`: extruded building footprints on the map
|
|
74
|
+
|
|
75
|
+
Takes building footprints as a GeoJSON FeatureCollection (Polygon and
|
|
76
|
+
MultiPolygon, holes kept, as OpenStreetMap exports them) and draws each as a
|
|
77
|
+
prism from `minHeight` to `height` metres (`heightProperty`, `baseProperty`,
|
|
78
|
+
`defaultHeight`, `heightScale`), walls shaded by the way they face, with a roof
|
|
79
|
+
outline. Footprints are placed with `api.map.latLngToWorld` and heights with
|
|
80
|
+
`api.map.groundKmToWorld`, around a local origin at the data's centre, rising
|
|
81
|
+
along the map's own surface normal, so it works on the flat map and the globe
|
|
82
|
+
and keeps its precision at street scale. It re-projects when the map is
|
|
83
|
+
enabled or changes projection and draws nothing while no map is shown.
|
|
84
|
+
`opacity` below 1 makes the blocks see-through. Tilt the view with
|
|
85
|
+
`api.map.setPitch` to see them stand. `buildBuildingGeometry` (the pure
|
|
86
|
+
builder) and `createBuildingsLayer` are exported too.
|
|
87
|
+
|
|
88
|
+
Tests: `src/react/layers/__tests__/BuildingsLayer.test.ts`,
|
|
89
|
+
`src/react/layers/__tests__/BuildingsLayer.react.test.tsx`.
|
|
90
|
+
|
|
91
|
+
### Added — `<PathHighlightLayer hopPaths head aheadOpacity>`: routes along roads, driven by time
|
|
92
|
+
|
|
93
|
+
- **`hopPaths`:** `hopPaths[i]` is the route from `path[i]` to `path[i + 1]`, as
|
|
94
|
+
`[lat, lng]` points, for example a road route between two places. While a map
|
|
95
|
+
is shown, the ribbon runs from the first node through those points to the
|
|
96
|
+
next node instead of straight across. The points are projected with
|
|
97
|
+
`api.map.latLngToWorld`, and projected again when the map is enabled,
|
|
98
|
+
disabled or changes projection. On a flat map the route keeps its nodes'
|
|
99
|
+
height, so it follows `map.elevation` too.
|
|
100
|
+
- **Heights:** a point can carry a third value, its height in metres above the
|
|
101
|
+
map: `[lat, lng, 7]`. The route then climbs onto a footbridge or into a
|
|
102
|
+
building instead of staying on the ground. The point is raised along the
|
|
103
|
+
map's own up direction, which is the globe's normal on a globe, and scaled
|
|
104
|
+
with `api.map.groundKmToWorld`. The point type is exported as `HopPathPoint`.
|
|
105
|
+
- **`hopPoints`:** the same per-hop route in world coordinates. It is the
|
|
106
|
+
layer config field that `hopPaths` fills. On a flat map a point's `z` is
|
|
107
|
+
its height above the map, added to the height of its nodes.
|
|
108
|
+
- **`head`:** how far along the path you are, in hops (2.5 is halfway along
|
|
109
|
+
the third hop). When set, the route is drawn up to that point instead of
|
|
110
|
+
animating in, a single particle sits on it, and node halos light up as it
|
|
111
|
+
reaches them. Drive it from a clock or a timeline to move something along
|
|
112
|
+
the route. Within a hop the position goes by distance.
|
|
113
|
+
- **`aheadOpacity`:** keeps the route beyond `head` faintly visible. Default 0.
|
|
114
|
+
- Once the layer has received a config, clearing one of these props clears it.
|
|
115
|
+
Before, the value from mount would have stayed.
|
|
116
|
+
|
|
117
|
+
Tests: `src/react/layers/__tests__/effectLayers.test.ts`,
|
|
118
|
+
`src/react/layers/__tests__/pathHighlightHopPaths.test.tsx`,
|
|
119
|
+
`src/react/layers/__tests__/pathHighlightAltitude.test.ts`.
|
|
120
|
+
|
|
121
|
+
### Added — `<Timeline controls playOptions>`
|
|
122
|
+
|
|
123
|
+
`controls={false}` hides the source, time-field and bucket selectors. Use it
|
|
124
|
+
when the host sets the source with `api.timeline.setSource` and readers should
|
|
125
|
+
not change it. Clear and Play stay. `playOptions` is passed to
|
|
126
|
+
`api.timeline.play` when Play is pressed. Without it, Play still slides a
|
|
127
|
+
one-bucket window and loops.
|
|
128
|
+
|
|
129
|
+
`api.timeline.isPlaying()` and `api.timeline.onPlayingChange(cb)` report when
|
|
130
|
+
playback starts and stops, including a pass that ends by itself and a `pause`
|
|
131
|
+
from the host. The Play button follows them, so it no longer stays on
|
|
132
|
+
"Pause" after playback has stopped.
|
|
133
|
+
|
|
134
|
+
Tests: `src/react/timeline/__tests__/Timeline.props.test.tsx`,
|
|
135
|
+
`src/api/modules/__tests__/TimelineApi.test.ts`.
|
|
136
|
+
|
|
137
|
+
### Fixed — `api.timeline.play({ mode })` ignored `expand` and `shrink`
|
|
138
|
+
|
|
139
|
+
`TimelinePlayOptions.mode` documented `slide | expand | shrink`, but `play`
|
|
140
|
+
always slid. `expand` now keeps the window's start and sweeps its end to the
|
|
141
|
+
end of the domain, resuming from the brushed end, so the graph accumulates.
|
|
142
|
+
`shrink` keeps the end and sweeps the start toward it. With `loop`, `expand`
|
|
143
|
+
shows the full window for one tick and then restarts from an empty one.
|
|
144
|
+
|
|
145
|
+
Tests: `src/api/modules/__tests__/TimelineApi.test.ts`.
|
|
146
|
+
|
|
147
|
+
### Fixed — `api.map.flyTo` before the map was shown was dropped
|
|
148
|
+
|
|
149
|
+
A host that adds its data and frames the view in the same effect races the
|
|
150
|
+
`map` prop, whose `enableMap` runs in a later effect. When `flyTo` (or
|
|
151
|
+
`flyToBounds`, which calls it) won the race it returned without doing
|
|
152
|
+
anything, and the map intermittently stayed at the world view.
|
|
153
|
+
Now the latest such request is kept and applied when the map is enabled and
|
|
154
|
+
its scene is wired, before `map:enabled` fires, so a `flyTo` from a
|
|
155
|
+
`map:enabled` listener still wins. The call still resolves at once.
|
|
156
|
+
|
|
157
|
+
Tests: `src/api/modules/__tests__/MapApi.pendingView.test.ts`.
|
|
158
|
+
|
|
159
|
+
### Fixed — a map with `forceLayout` could lose every node position
|
|
160
|
+
|
|
161
|
+
`forceLayout` builds its controller from the store as it is at that moment and
|
|
162
|
+
installs it on a later render. Nodes a host added in between, for example from
|
|
163
|
+
an init effect writing through `apiRef`, raised their structure change while no
|
|
164
|
+
controller was wired to receive it. The new controller then never learned about
|
|
165
|
+
them: `getPositions()` returned null, and on a map the geo positions written by
|
|
166
|
+
`geoLayout` were lost, so no node was drawn. Installing a controller over a
|
|
167
|
+
store that already has nodes now replays one structure change, so the
|
|
168
|
+
controller is seeded and the geo positions are written again.
|
|
169
|
+
|
|
170
|
+
Tests: `src/react/__tests__/lateLayoutController.test.tsx`.
|
|
171
|
+
|
|
172
|
+
### Fixed — with `forceLayout`, geo nodes under a custom `geoMapping` stayed pinned off the map
|
|
173
|
+
|
|
174
|
+
The first geo projection often lands in a provider that the force-layout
|
|
175
|
+
controller replaces a moment later. The controller then rebuilt its simulation
|
|
176
|
+
from seed positions with the nodes still pinned, and the render loop's
|
|
177
|
+
re-projection, which should have moved them back, ran `applyGeoLayout` with
|
|
178
|
+
only `{ mode }`. That dropped the host's `map.geoLayout.geoMapping` (and
|
|
179
|
+
`pinAutoPlaced` and the other options), so nodes whose lat/lng sit under other
|
|
180
|
+
keys were never re-projected and stayed pinned near the globe's centre, out of
|
|
181
|
+
sight. The re-projection now repeats the last `applyGeoLayout` options;
|
|
182
|
+
`releaseGeoLayout` forgets them.
|
|
183
|
+
|
|
184
|
+
Tests: `src/api/modules/__tests__/MapApi.reassertGeoLayout.test.ts`.
|
|
185
|
+
|
|
186
|
+
### Fixed — map labels ignored `map.maxNodeGrowth` and grew far past their nodes
|
|
187
|
+
|
|
188
|
+
In map mode the text shader capped label growth at a hard-coded 3×. Lowering
|
|
189
|
+
`map.maxNodeGrowth` shrank the nodes but not the labels, so at street zoom a
|
|
190
|
+
map with `maxNodeGrowth: 1.5` drew labels about twice the size they should be,
|
|
191
|
+
piled on top of each other. `TextLayer` and `EdgeTextLayer` labels now cap at
|
|
192
|
+
0.75 × `maxNodeGrowth` and follow later `map.setMaxNodeGrowth` calls. At the
|
|
193
|
+
default of 4 the cap is still 3, so nothing changes unless the host sets it.
|
|
194
|
+
|
|
195
|
+
- `TextCloud.setMapMaxGrowth()`, `EdgeTextCloud.setMapMaxGrowth()` and
|
|
196
|
+
`BatchTextRenderer.setMapMaxGrowth()` take the node cap. `Infinity` removes
|
|
197
|
+
the label cap too.
|
|
198
|
+
|
|
199
|
+
Tests: `src/text/__tests__/textMapMaxGrowth.test.tsx`.
|
|
200
|
+
|
|
201
|
+
### Fixed — ego-ring nodes no longer follow hidden geo anchors
|
|
202
|
+
|
|
203
|
+
With `map.geoLayout.nonGeoStrategy: "egoRing"`, a non-geo node linked to
|
|
204
|
+
several places is drawn at their barycenter. Hidden places still counted, so
|
|
205
|
+
under a filter or a timeline brush a visible node sat between places that were
|
|
206
|
+
not shown, often off-screen, with its edges running across the map. Hidden
|
|
207
|
+
anchors are now left out of the barycenter. A node whose ring root is hidden is
|
|
208
|
+
ringed around a visible geo neighbour instead. The ring is re-placed and
|
|
209
|
+
re-pinned as soon as an anchor is hidden or shown, without waiting for a zoom
|
|
210
|
+
change.
|
|
211
|
+
|
|
212
|
+
Tests: `src/map/geo-local/__tests__/GeoEgoRingRenderer.hiddenAnchors.test.ts`.
|
|
213
|
+
|
|
214
|
+
### Fixed — `map.autoFit: false` now also stops the geoLayout's initial fit
|
|
215
|
+
|
|
216
|
+
With the declarative `map.geoLayout`, the camera flew to the geo bounding box
|
|
217
|
+
about 400 ms after mount even when `autoFit` was `false`. That replaced any
|
|
218
|
+
opening view the host set with `map.flyTo`. `autoFit: false` now leaves the
|
|
219
|
+
camera to the host. The default (`autoFit` unset) still fits.
|
|
220
|
+
|
|
221
|
+
Tests: `src/react/__tests__/geoLayoutAutoFit.test.tsx`.
|
|
222
|
+
|
|
223
|
+
### Fixed — node layers kept their size on a map instead of filling the screen
|
|
224
|
+
|
|
225
|
+
In map mode the built-in node shader damps inverse-zoom growth and soft-caps it
|
|
226
|
+
at `map.maxNodeGrowth`. Layers built on `createNodeShaderLayer` (`MediaLayer`,
|
|
227
|
+
`AudioSpectrumLayer`, `NodeEffectLayer`, `NodeCardLayer` and the others) still
|
|
228
|
+
grew with plain perspective. Zoomed to street level, a `MediaLayer` video panel
|
|
229
|
+
with `sizeFactor: 11` covered the whole map while its node stayed small. Their
|
|
230
|
+
screen-sized quads, and the matching hitboxes, now follow the node's curve, so a
|
|
231
|
+
layer keeps its size relative to its node at every zoom. Off the map nothing
|
|
232
|
+
changes, and `sizing: "world"` layers are untouched.
|
|
233
|
+
|
|
234
|
+
- `LayerContext.getMapNodeSizing?()` (new, optional) returns the live
|
|
235
|
+
`{ damping, maxGrowth }`. Hand-built contexts can leave it out and get the
|
|
236
|
+
engine defaults, 0.3 and 4. `EngineLayerHost.mapNodeSizing` feeds it.
|
|
237
|
+
|
|
238
|
+
Tests: `src/react/layers/__tests__/NodeShaderLayer.mapSizing.test.ts`.
|
|
239
|
+
|
|
240
|
+
### Fixed — switching to the WebGPU render path could hide host overlays
|
|
241
|
+
|
|
242
|
+
The WebGPU canvas was appended to the container last, with `z-index: 1`, once
|
|
243
|
+
it finished initialising. Host panels, the minimap and controls placed in or
|
|
244
|
+
beside the container ended up underneath it, so a panel could vanish when
|
|
245
|
+
`enableWebGPURenderPath` turned on. The canvas now goes directly after the WebGL
|
|
246
|
+
canvas with no z-index, so it covers only the WebGL canvas. Covered by
|
|
247
|
+
`src/backends/webgpu/__tests__/WebGPUPaintTarget.test.tsx` ("stacking").
|
|
248
|
+
|
|
249
|
+
With arrows off, the WebGPU edge path also no longer logs `Vertex attribute "iA"
|
|
250
|
+
not found` on every compile: the empty arrow mesh is hidden. Covered by
|
|
251
|
+
`src/backends/webgpu/__tests__/WebGPUEdgePrimitive.test.tsx`.
|
|
252
|
+
|
|
253
|
+
### Fixed — edges with no text no longer pay for curve classification on mount
|
|
254
|
+
|
|
255
|
+
`EdgeTextLayer` (mounted automatically by a `GraphCanvas` without children)
|
|
256
|
+
classified every edge's curve twice on mount even when no edge had text: about
|
|
257
|
+
12 s at 1.5M edges. It now builds the classifier only when the first edge with
|
|
258
|
+
text needs its curvature, and looks up each relationship's style once. Output is
|
|
259
|
+
unchanged. Covered by `src/react/layers/__tests__/EdgeTextLayer.noLabels.test.tsx`.
|
|
260
|
+
|
|
261
|
+
### Changed — collecting nodes now shows, moves and opens
|
|
262
|
+
|
|
263
|
+
- `api.nodes.collect(parentId, childIds, options?)` and
|
|
264
|
+
`api.nodes.explode(parentId, options?)` now really collect: the children
|
|
265
|
+
are hidden into the parent through a collapsed group (`kind: "collect"`),
|
|
266
|
+
their links to the outside become aggregated edges from the parent, and
|
|
267
|
+
the parent's own edges stay real edges in their own colour. Both are
|
|
268
|
+
undoable commands (`CollectNodes`, `ExplodeCollection`); collecting into an
|
|
269
|
+
existing collection adds to it, and its undo gives back the smaller one.
|
|
270
|
+
Previously they only set a flag. Both now return a `Promise` that resolves
|
|
271
|
+
when the motion ends. Covered by
|
|
272
|
+
`src/api/modules/__tests__/collect.test.ts`.
|
|
273
|
+
- **Behaviour change:** `collect` now throws on an unknown parent, on a
|
|
274
|
+
parent that is itself collected, and on a child that is already a
|
|
275
|
+
collection or collected; the parent itself and unknown child ids are
|
|
276
|
+
ignored. Covered by `collect.test.ts`.
|
|
277
|
+
- Motion: on collect the children fly into the parent before they hide, and
|
|
278
|
+
go back to their places while hidden; on explode they fly out of it.
|
|
279
|
+
Children with no place of their own open onto a ring around the parent.
|
|
280
|
+
Runs on the engine's `AnimationManager`, no timers. `{ animate: false }`
|
|
281
|
+
skips it. Covered by `collect.test.ts`.
|
|
282
|
+
- New `api.nodes.isCollection(id)`, `getCollected(id)`,
|
|
283
|
+
`setExpandOnDoubleClick(enabled)` and `getExpandOnDoubleClick()`.
|
|
284
|
+
Double-clicking a collection explodes it, and double-clicking a collapsed
|
|
285
|
+
group's anchor expands the group (on by default). Covered by
|
|
286
|
+
`collect.test.ts`.
|
|
287
|
+
- Every collapsed group, collections included, shows a "+N" count badge on
|
|
288
|
+
its anchor (`1k+` and up past 999); a badge the anchor had comes back on
|
|
289
|
+
expand, and one the host sets while collapsed wins over the count. A
|
|
290
|
+
collection keeps the parent's own label instead of the group name. Covered
|
|
291
|
+
by `collect.test.ts`.
|
|
292
|
+
- `AnimationManager.add` asks the canvas for a frame, so a tween started on
|
|
293
|
+
an idle canvas runs. Covered by `collect.test.ts`.
|
|
294
|
+
|
|
295
|
+
### Fixed — badges and tags were not drawn under `forceLayout`
|
|
296
|
+
|
|
297
|
+
- `BadgeCloud` and `TagCloud` wired a position texture only for GPU position
|
|
298
|
+
providers. Both built-in force layouts (d3 and WebGPU) and every static
|
|
299
|
+
provider are CPU providers, so every badge and tag sat unpositioned and
|
|
300
|
+
never showed. They now read the new `GraphContextValue.getNodePositionTexture()`
|
|
301
|
+
every frame, which hands out the node renderer's CPU mirror when the
|
|
302
|
+
provider has no texture. Covered by
|
|
303
|
+
`src/react/layers/__tests__/decorationPositionTexture.test.tsx`.
|
|
304
|
+
|
|
305
|
+
### Changed — badges and tags sit on their node's rim and hide with it
|
|
306
|
+
|
|
307
|
+
- Badge and tag offsets came from fixed 14 px `ANCHOR_OFFSETS`, tuned for one
|
|
308
|
+
node size: on a default node (radius ≈ 4 px) every badge floated three radii
|
|
309
|
+
away and read as a separate node. They are now computed from the node's own
|
|
310
|
+
radius with the new `anchorOffsetAround(anchor, nodeRadiusPx, halfSizePx,
|
|
311
|
+
overlap, gapPx?)` and `NODE_RADIUS_PX_PER_SIZE` (both exported from
|
|
312
|
+
`decorations/DecorationTypes`). Badges overlap the rim slightly, tags sit
|
|
313
|
+
just outside it, and both move when the node is resized. `ANCHOR_OFFSETS`
|
|
314
|
+
stays as the fallback when no radius is known.
|
|
315
|
+
- A hidden node's badge and tag are no longer drawn; showing the node brings
|
|
316
|
+
them back.
|
|
317
|
+
- The new `DECORATION_GEOMETRY_DOMAINS` (Style | Visibility) drives that
|
|
318
|
+
rebuild; it re-syncs only when a decorated node's size or visibility really
|
|
319
|
+
changed, so colour writes still do not rebuild instances.
|
|
320
|
+
- New `TagSpec.fontSizePx`: the tag's text cap height in CSS px (default 9,
|
|
321
|
+
clamped to 6–32); padding scales with it.
|
|
322
|
+
- Tags are drawn over nodes and node labels (no depth test, renderOrder 3).
|
|
323
|
+
Before, a nearer neighbour in a dense cluster cut through the pill and its
|
|
324
|
+
text. Badges keep the depth test, since they sit on their node.
|
|
325
|
+
- Covered by `src/react/layers/__tests__/decorationPlacement.test.tsx`.
|
|
326
|
+
|
|
327
|
+
### Fixed — `forceLayout={{ … }}` restarted the layout on every render
|
|
328
|
+
|
|
329
|
+
- The internal force layout was keyed on the prop's object identity, so an
|
|
330
|
+
inline config object destroyed and rebuilt the layout on each host render.
|
|
331
|
+
In between, `store.positionProvider` was the disposed adapter and returned
|
|
332
|
+
null positions; layers reading positions then drew nothing. It is now keyed
|
|
333
|
+
on the config's value. Covered by
|
|
334
|
+
`src/react/__tests__/forceLayoutPropIdentity.test.tsx`.
|
|
335
|
+
- `FocusCalloutLayer` retries targets whose position is not known yet on a
|
|
336
|
+
later frame instead of dropping them. Covered by
|
|
337
|
+
`src/react/layers/__tests__/effectLayers.test.ts`.
|
|
338
|
+
|
|
339
|
+
### Added — orthogonal edges and hierarchy layouts (tree, radialTree, layered, columns)
|
|
340
|
+
|
|
341
|
+
- Edge shape `"orthogonal"` (shader id 3) for `style.setEdgeShape`,
|
|
342
|
+
`setEdgeShapes`, `setRelationshipShape` and the `edgeShape` prop: leave the
|
|
343
|
+
source along the routing axis, run across, drop into the target, with
|
|
344
|
+
quarter-circle corners. Evaluated per vertex in `edge.vert.glsl` /
|
|
345
|
+
`arrow.vert.glsl` from the two endpoints (`shaders/kv_orthoEdge.glsl`), so it
|
|
346
|
+
follows drags, force layout and tweens with no CPU work and no extra upload
|
|
347
|
+
per frame. Parallel multi-edges get parallel tracks. Covered by
|
|
348
|
+
`src/api/modules/__tests__/StyleApi.edgeRouting.test.ts`,
|
|
349
|
+
`src/registry/__tests__/EngineRegistry.test.ts`.
|
|
350
|
+
- `style.setEdgeBends(edgeIds, bend | null)` — where the cross leg sits:
|
|
351
|
+
`0..1` fraction of the span, `< 0` absolute distance from the source (one
|
|
352
|
+
shared bar per parent), `null` automatic. Undoable, one step. Stored in the
|
|
353
|
+
new `EdgeRenderState.bends` column (NaN = automatic) and in snapshots.
|
|
354
|
+
Covered by `StyleApi.edgeRouting.test.ts`.
|
|
355
|
+
- `style.setEdgeRouting({ axis, cornerRadius })` — routing axis
|
|
356
|
+
(`"auto" | "vertical" | "horizontal"`, shared with `radial`) and corner
|
|
357
|
+
rounding `0..1`. Type `EdgeRoutingOptions`. Covered by
|
|
358
|
+
`StyleApi.edgeRouting.test.ts`.
|
|
359
|
+
- `edge/orthoPath.ts` — CPU mirror of the shader route (`orthoFrame`,
|
|
360
|
+
`orthoPoint`, `orthoPolyline`). `PathHighlightLayer` uses it, so a
|
|
361
|
+
highlighted path follows orthogonal edges instead of cutting straight.
|
|
362
|
+
Covered by `src/edge/__tests__/orthoPath.test.ts`.
|
|
363
|
+
- Layouts `api.layout.tree`, `radialTree`, `layered` (Sugiyama: cycle
|
|
364
|
+
breaking, longest-path levels or `rankBy` a property, virtual nodes for long
|
|
365
|
+
edges, barycenter crossing reduction, least-squares placement) and `columns`
|
|
366
|
+
(one column per property value, crossings reduced inside columns). Options
|
|
367
|
+
`direction` (`TB | BT | LR | RL`), `nodeGap`, `levelGap`, `relationships`,
|
|
368
|
+
plus `roots`, `rankBy` / `rankOrder`, `by` / `order` / `sortBy`. Also
|
|
369
|
+
registered by name for `applyByName`, and exported as pure functions
|
|
370
|
+
(`treeLayout`, `radialTreeLayout`, `layeredLayout`, `columnsLayout`).
|
|
371
|
+
Covered by `gpu-compute/tests/hierarchyLayouts.test.ts` and
|
|
372
|
+
`src/api/__tests__/LayoutApi.hierarchy.test.ts`.
|
|
373
|
+
- WebGPU render path: `orthogonal` edges draw straight for now (not ported).
|
|
374
|
+
- New example `scenario-org-chart`; `scenario-data-lineage` and
|
|
375
|
+
`scenario-incident-blast-radius` now place nodes with `layout.columns`.
|
|
376
|
+
|
|
377
|
+
### Added — edge and node effect layers: comet flow, path highlight, focus callouts, node halos
|
|
378
|
+
|
|
379
|
+
Four layers, each a React component and a `create*Layer` factory. Everything
|
|
380
|
+
visual is a prop; per-edge / per-node props take a function of the datum.
|
|
381
|
+
Covered by `src/react/layers/__tests__/effectLayers.test.ts`.
|
|
382
|
+
|
|
383
|
+
`PathHighlightLayer` lights the whole route as one continuous line with
|
|
384
|
+
water-like flowing bands (`flow`, `flowSpeed`, `flowBands`, `flowStrength`,
|
|
385
|
+
`baseLevel`) plus a single comet per path (`particle`, `particleCount`,
|
|
386
|
+
`particleSpeed`, `particleSize`, `particleTail`) and path-node halos (`nodeHalo`).
|
|
387
|
+
|
|
388
|
+
- `EdgeFlowLayer` — comet particles along edges: a white-hot head with a halo
|
|
389
|
+
and a tapered, fading tail, drawn as screen-space instanced quads (constant
|
|
390
|
+
pixel width at any zoom, one draw call). Props: `style`
|
|
391
|
+
(`"comet" | "dots" | "streak"`), `count`, `speed`, `color`, `width`, `weight`
|
|
392
|
+
(all per edge), `direction` (`"forward" | "reverse" | "both"`), `size`,
|
|
393
|
+
`tail`, `glow`, `intensity`, `headColor`, `speedScale`, `fadeEnds`, `filter`,
|
|
394
|
+
`maxParticles`. Follows node positions and the edge dim state
|
|
395
|
+
(`emphasis.focusContext`), and arcs along the great circle on a globe.
|
|
396
|
+
Replaces the look of `animations.edgeFlow`, which is unchanged.
|
|
397
|
+
- `PathHighlightLayer` — a glowing ribbon through an ordered list of node ids
|
|
398
|
+
that draws itself start to end (`drawDuration`), runs ONE comet particle along
|
|
399
|
+
the whole route from the first node to the last (`particleCount` for more),
|
|
400
|
+
puts a halo on the path nodes and can dim everything else
|
|
401
|
+
(`dimOthers`). Props: `path`, `color`, `width`, `glow`,
|
|
402
|
+
`particle`, `particleCount`, `particleSpeed`, `particleSize`, `particleTail`,
|
|
403
|
+
`opacity`, `nodeHalo`, `lift`. Changing `path`
|
|
404
|
+
replays the draw-in.
|
|
405
|
+
- `FocusCalloutLayer` — a leader polyline (ring, diagonal leg, horizontal run)
|
|
406
|
+
with text sitting on it, for focused nodes and/or edges. Laid out in screen
|
|
407
|
+
pixels around the target, so it keeps its size at any zoom and follows the
|
|
408
|
+
target. Controlled with `nodes` / `edges`, or `focusOnClick` (+ `focusEdges`,
|
|
409
|
+
`onFocusChange`). Props: `text` (string, lines, or `{ title, lines }`),
|
|
410
|
+
`placement`, `angle`, `elbow`, `run`, `ring`, `color`, `lineWidth`,
|
|
411
|
+
`textColor`, `background`, `fontSize`, `duration`, `max`, `dimOthers`.
|
|
412
|
+
- `NodeEffectLayer` — animated halos (`"glow" | "pulse" | "ripple" | "orbit"`)
|
|
413
|
+
for any subset of nodes, one draw call. Props: `effect`, `filter`, `color`
|
|
414
|
+
and `weight` (per node), `radius`, `speed`, `intensity`, `count`,
|
|
415
|
+
`thickness`.
|
|
416
|
+
- New example `scenario-edge-node-effects`.
|
|
417
|
+
|
|
418
|
+
### Added — `ModelLayer`: nodes drawn as 3D models
|
|
419
|
+
|
|
420
|
+
- `ModelLayer` / `createModelLayer` draw each node as a glTF model or as one
|
|
421
|
+
part of a model: `model(node)` returns a URL, `{ url, part, children }` (a
|
|
422
|
+
named node of the file, its own meshes recentred, its sub-parts optional),
|
|
423
|
+
an `Object3D`, or `null` for the plain dot. Files load once and are shared;
|
|
424
|
+
meshopt-compressed files decode out of the box. Replaceable via `loader`.
|
|
425
|
+
- The model follows the node's position, visibility and focus+context dim,
|
|
426
|
+
and hides the built-in dot (`hideBuiltinNode`, default on). It is pickable
|
|
427
|
+
through an invisible hit twin (`hitArea`, default on), so clicks and hover
|
|
428
|
+
land on the visible shape, and labels clear its extent.
|
|
429
|
+
- `scale` or `size` (fits the bounding radius), `rotation`, `anchor`, `spin`
|
|
430
|
+
(rad/s, eases back to front when stopped), `tint` with `tintPulse`; changes
|
|
431
|
+
ease over `transition` seconds. `lights` and `environment` (a room
|
|
432
|
+
environment map for PBR materials) default on.
|
|
433
|
+
- `depthRange: "fit"` (default) gives the models a depth range fitted to them
|
|
434
|
+
each frame, so close-up parts do not z-fight under the camera's tiny near
|
|
435
|
+
plane; `"camera"` keeps the camera's own range.
|
|
436
|
+
- `loadModel(url)` and `loadModelParts(url, { rotation })` are exported:
|
|
437
|
+
the latter lists every named part with parent, children, centre, radius,
|
|
438
|
+
triangle count and materials — enough to build a graph from a model.
|
|
439
|
+
- Covered by `src/react/layers/__tests__/ModelLayer.test.tsx`.
|
|
440
|
+
|
|
441
|
+
### Added — `MediaLayer` video playback: click to play or pause, thumbnails, a clip per node
|
|
442
|
+
|
|
443
|
+
- `video.url` may be a function, so each node plays its own clip. Nodes that
|
|
444
|
+
return the same URL share one decode; every distinct URL costs one `<video>`
|
|
445
|
+
and one draw call.
|
|
446
|
+
- `video.playOnClick` is the whole player: the panel is the hitbox, a click on
|
|
447
|
+
it plays a paused video and pauses a playing one. The videos start paused.
|
|
448
|
+
No DOM element is involved.
|
|
449
|
+
- `video.posterTime` (seconds, or a function per node) is the frame a video
|
|
450
|
+
nobody has started shows, so a paused panel is a thumbnail and not a black
|
|
451
|
+
first frame. `video.playBadge` (default: `playOnClick`) draws a play glyph on
|
|
452
|
+
paused panels; the code is not compiled in unless asked for.
|
|
453
|
+
- `video.onPlayingChange` reports every start and stop, whatever caused it.
|
|
454
|
+
- `controlRef` hands back a `MediaLayerHandle` (`togglePlayback`, `play`,
|
|
455
|
+
`pause`, `pauseAll`, `isPlaying`, `sourceOf`), also returned by
|
|
456
|
+
`createMediaLayer`, for hosts that mount the layer without React.
|
|
457
|
+
- `onVideoSource` now receives `(source, { url })`; existing one-argument
|
|
458
|
+
callbacks keep working. A single string `url` behaves exactly as before.
|
|
459
|
+
|
|
460
|
+
### Fixed — the minimap now draws what the scene shows
|
|
461
|
+
|
|
462
|
+
- Nodes are drawn at the same size relative to the graph as in the main view.
|
|
463
|
+
The minimap used a fixed `nodeSize × 50 / 80` px whatever the graph's
|
|
464
|
+
extent, so large nodes (size 150+, as icon nodes need) covered most of the
|
|
465
|
+
panel.
|
|
466
|
+
- The minimap no longer stops one image behind once the scene goes idle. A
|
|
467
|
+
change made after the layout settled (a `setNodeColors` call, a toggle back
|
|
468
|
+
to a previous state) never reached it: the readback's request for a delivery
|
|
469
|
+
frame was issued from inside a frame callback, where the frame-end settle
|
|
470
|
+
overwrites it, and a change that arrived during a readback was never
|
|
471
|
+
rendered.
|
|
472
|
+
- Covered by `src/react/layers/minimap/__tests__/MinimapSceneSync.test.tsx`.
|
|
473
|
+
|
|
474
|
+
### Fixed — node labels clear the panel or ring a layer draws, not the hidden dot
|
|
475
|
+
|
|
476
|
+
- `<TextLayer>` used to place a label just outside the BUILT-IN node, which a
|
|
477
|
+
`MediaLayer` panel or a shader-layer billboard hides. The caption landed in
|
|
478
|
+
the middle of the picture. Layers now report their footprint to the store
|
|
479
|
+
and labels sit outside it, on every side, while the node is dragged.
|
|
480
|
+
Applications set nothing: `MediaLayer` reports its panel (a 16:9 panel is
|
|
481
|
+
9/16 of its quad tall), `AudioSpectrumLayer` the middle of its band (fixed, so
|
|
482
|
+
labels do not jump with the music), and `createNodeShaderLayer` the whole quad
|
|
483
|
+
when it hides the built-in node or has a `hitArea`.
|
|
484
|
+
- New `NodeShaderLayerSpec.labelExtent`: `"auto"` (default, as above),
|
|
485
|
+
`"none"`, or `[x, y]` as fractions of the quad, for a drawing smaller than its
|
|
486
|
+
billboard.
|
|
487
|
+
- New `GraphStore.setNodeLabelExtents(owner, extents | null)` and
|
|
488
|
+
`getNodeLabelExtent(id)`, with exported types `NodeLabelExtent` and
|
|
489
|
+
`ResolvedLabelExtent`. Layer-facing: several layers on one node merge by the
|
|
490
|
+
largest extent, and an unchanged claim does not bump `labelVersion`.
|
|
491
|
+
- New optional `TextItem` fields `extentX` / `extentY` (built-in node radii)
|
|
492
|
+
and `worldExtentX` / `worldExtentY` (world units), and
|
|
493
|
+
`BufferTextSource.extentResolver`, for hosts that build their own items.
|
|
494
|
+
Without them, label placement is unchanged.
|
|
495
|
+
- Covered by `src/react/layers/__tests__/labelExtent.test.tsx`.
|
|
496
|
+
|
|
497
|
+
### Added — radial labels for radial trees and ego rings
|
|
498
|
+
|
|
499
|
+
- New `LabelPosition` value `"radial"`: each label turns along the ray from a
|
|
500
|
+
centre and reads outward, and on the left half it is turned half a turn and
|
|
501
|
+
right-aligned so no label is upside down. The gap to the node follows the
|
|
502
|
+
node's label footprint along the ray.
|
|
503
|
+
- New `TextLayer` prop `radialCenter`: a node id (the centre follows that
|
|
504
|
+
node, so labels keep turning while it is dragged or tweened) or a fixed
|
|
505
|
+
`[x, y]`. Default: the middle of the labelled nodes. The same field is
|
|
506
|
+
accepted by the `GraphCanvas` `caption` prop.
|
|
507
|
+
- New `TextCloud.setRadialCenter([x, y] | null)` and exported helper
|
|
508
|
+
`radialLabelPlacement(dx, dy, gapX, gapY)`, for hosts that drive a
|
|
509
|
+
`TextCloud` directly. A per-item `angle` still wins.
|
|
510
|
+
- Covered by `src/text/__tests__/radialLabels.test.ts`.
|
|
511
|
+
|
|
512
|
+
### Fixed — a canvas with non-round node sizes never went idle
|
|
513
|
+
|
|
514
|
+
- `GraphStore.refreshEffectiveSizes()` compared a float32-rounded
|
|
515
|
+
`effectiveSizes` entry with the double it was computed from, so any size
|
|
516
|
+
whose product with 1.5 is not exact in float32 (0.7, √x / 130 …) counted as
|
|
517
|
+
changed on every call. The render loop then marked node sizes dirty from
|
|
518
|
+
inside its own paint and bumped `store.version` every frame: the canvas
|
|
519
|
+
never went idle, `TextLayer` rebuilt every label every frame, and node
|
|
520
|
+
clicks mostly picked nothing. Round sizes (140, 200) hid it. The comparison
|
|
521
|
+
is now made in float32.
|
|
522
|
+
- Covered by `src/react/graph-context/__tests__/renderLoopIdle.test.tsx`
|
|
523
|
+
("goes quiet with sizes that are not exact in float32").
|
|
524
|
+
|
|
525
|
+
### Added — clicking empty canvas restores the un-emphasised graph
|
|
526
|
+
|
|
527
|
+
- New `api.emphasis.restore()`: stops every emphasis effect (focus+context
|
|
528
|
+
dims, path and cascade highlights), clears click-dim and programmatic dims
|
|
529
|
+
(`dimExcept`, `dimNeighborhood`, `setTraceDim`), and notifies
|
|
530
|
+
`api.emphasis.onRestore(cb)` listeners.
|
|
531
|
+
- A click on empty canvas calls it by default. A click that ends a camera pan
|
|
532
|
+
does not count (`InteractionManager.lastClickWasDrag`, new). Turn it off with
|
|
533
|
+
the GraphCanvas prop `restoreOnBackgroundClick={false}` or
|
|
534
|
+
`api.emphasis.setRestoreOnBackgroundClick(false)`.
|
|
535
|
+
- `PathHighlightLayer` and `FocusCalloutLayer` hide their highlight and
|
|
536
|
+
`dimOthers` dim on restore even though the host still holds the focus that
|
|
537
|
+
fed them. They come back when `path` / `nodes` change or a node or edge is
|
|
538
|
+
clicked. Before this, a path drawn from host state (e.g. "focus the clicked
|
|
539
|
+
node") dimmed the graph with no way back short of a host-side reset button.
|
|
540
|
+
- Covered by `src/api/modules/__tests__/EmphasisApi.restore.test.ts` and
|
|
541
|
+
`src/react/layers/effects/__tests__/useEmphasisRestore.test.tsx`.
|
|
542
|
+
|
|
543
|
+
### Fixed — a 2D canvas went 3D as soon as nodes were added
|
|
544
|
+
|
|
545
|
+
- `D3LayoutControllerAdapter` started at 3 dimensions whatever snapshot it
|
|
546
|
+
was built from. A canvas mounted with `is3D={false}` never calls
|
|
547
|
+
`transitionDimensions` (nothing changed), so the first structure change
|
|
548
|
+
(`nodes.add` after mount) re-initialised the force sim in 3D. Nodes drifted
|
|
549
|
+
off the z = 0 plane, rendered at the wrong depth (some huge, some tiny) and
|
|
550
|
+
`camera.flyToNodes` aimed at the wrong place. The adapter now starts in the
|
|
551
|
+
snapshot's dimension.
|
|
552
|
+
- Covered by `src/layout/__tests__/D3LayoutControllerAdapter.test.ts`
|
|
553
|
+
("a 2D snapshot stays 2D after nodes are added (no z drift)").
|
|
554
|
+
|
|
555
|
+
### Fixed — overlapping focus+context dims left the graph dark
|
|
556
|
+
|
|
557
|
+
- Each `FocusContextEffect` snapshotted its own "before" state. When two
|
|
558
|
+
overlapped (host `emphasis.focusContext` plus a layer's `dimOthers`, or a
|
|
559
|
+
new focus started before the old one stopped), the second snapshot was the
|
|
560
|
+
already-dimmed, already-enlarged graph, and stopping it put that back: the
|
|
561
|
+
graph stayed dim with no way out. Effects on one store now share a single
|
|
562
|
+
baseline. Only the last one to stop restores it; while others remain, the
|
|
563
|
+
newest re-applies its own dim.
|
|
564
|
+
- Covered by `src/animation/effects/__tests__/FocusContextEffect.overlap.test.ts`.
|
|
565
|
+
|
|
566
|
+
### Fixed — click-dim no longer takes over or wipes other focus dims
|
|
567
|
+
|
|
568
|
+
- Click-dim retargeted the first running focusContext of any owner, and
|
|
569
|
+
clearing it stopped every focusContext, including one a layer or the host
|
|
570
|
+
had started. It now drives only its own effect.
|
|
571
|
+
- Stopping an effect (`emphasis.stop`, `stopAll`) now schedules a repaint, so
|
|
572
|
+
an idle canvas no longer keeps showing the dimmed frame.
|
|
573
|
+
- Covered by `src/api/modules/__tests__/EmphasisApi.restore.test.ts`
|
|
574
|
+
("click-dim leaves a focusContext it did not start alone", "EffectManager
|
|
575
|
+
repaint on removal"); `EmphasisApi.clickDim.test.ts` updated to count
|
|
576
|
+
click-dim's listener on its own.
|
|
577
|
+
|
|
578
|
+
### Fixed — edge labels sit on the line the edge is drawn as
|
|
579
|
+
|
|
580
|
+
- `EdgeTextLayer` looked up curvature on a `store.edgeClassifier` that never
|
|
581
|
+
existed, so every label sat on the straight chord. The two labels of a
|
|
582
|
+
reciprocal pair (A→B and B→A, e.g. a cross-holding) were printed on top of
|
|
583
|
+
each other, and the label of an `orthogonal` edge floated off its elbow.
|
|
584
|
+
- Labels now follow the shape the edge renderer resolves: parallel and
|
|
585
|
+
reciprocal edges get the same multi-edge curvature (none in map mode, where
|
|
586
|
+
multi-edges are drawn straight), and an orthogonal edge's label goes at half
|
|
587
|
+
the length of its route (`orthoPolyline`), turned along that leg.
|
|
588
|
+
- `EdgeTextItem` gains an optional `path` (the drawn route); `getTextItems`
|
|
589
|
+
callers can set it too.
|
|
590
|
+
- Covered by `src/react/layers/__tests__/EdgeTextLayer.placement.test.tsx`.
|
|
591
|
+
|
|
592
|
+
### Fixed — a highlighted path rides the edge that runs its way
|
|
593
|
+
|
|
594
|
+
- `PathHighlightLayer` took the first edge joining two path nodes in either
|
|
595
|
+
direction. With a reciprocal pair (A→B and B→A) the hop A→B could follow
|
|
596
|
+
B→A, and when that one was drawn differently (an orthogonal elbow) the
|
|
597
|
+
highlight left the line it was meant to light. A forward edge now wins over
|
|
598
|
+
a reverse one.
|
|
599
|
+
- Covered by `src/react/layers/__tests__/effectLayers.test.ts` ("a hop takes
|
|
600
|
+
the edge that runs its way, not the reverse one of a reciprocal pair").
|
|
601
|
+
|
|
602
|
+
### Added — `NodeEffectLayer` can play a fixed number of cycles
|
|
603
|
+
|
|
604
|
+
- New `cycles` and `onComplete` props (also on `createNodeEffectLayer`). With
|
|
605
|
+
`cycles: n` each node plays n cycles, counted from when that node joins the
|
|
606
|
+
layer, then goes quiet, and the layer stops asking for frames. A `ripple`
|
|
607
|
+
emits its rings for n cycles and lets the last one reach the rim; the other
|
|
608
|
+
presets fade out over the last fifth of a cycle. A node that joins later (a
|
|
609
|
+
new filter match, a newly added node) gets its own full run, so
|
|
610
|
+
`cycles={1}` marks exactly what arrived. `onComplete` fires each time every
|
|
611
|
+
current node has finished.
|
|
612
|
+
- Before, an effect looped for as long as it was mounted, and hosts had to
|
|
613
|
+
unmount it on a timer. That is still the default when `cycles` is omitted.
|
|
614
|
+
- `nodeEffectRunLength(kind, cycles)` gives the run length in cycles.
|
|
615
|
+
- Covered by `src/react/layers/__tests__/effectLayers.test.ts` ("NodeEffectLayer
|
|
616
|
+
lifetime").
|
|
617
|
+
|
|
618
|
+
### Changed — photos, videos and cards draw above edge and halo effects
|
|
619
|
+
|
|
620
|
+
- `MediaLayer` and `NodeCardLayer` now default to overlay `bandOffset` 20
|
|
621
|
+
(`PANEL_BAND_OFFSET`), above `NodeEffectLayer` (4), `EdgeFlowLayer` (6),
|
|
622
|
+
markers (5–6) and `PathHighlightLayer` (11). At the old default of 0, a
|
|
623
|
+
highlighted path or a ripple was drawn across the photo or card at its end.
|
|
624
|
+
Now they run under the panel, the way built-in edges run under node dots.
|
|
625
|
+
- Pass `bandOffset` to get the old order back.
|
|
626
|
+
- Covered by `src/react/layers/__tests__/panelBand.test.tsx`.
|
|
627
|
+
|
|
628
|
+
### Fixed — a layout run while `forceLayout` is on stays where it put the nodes
|
|
629
|
+
|
|
630
|
+
- With the CPU force layout (`forceLayout` without WebGPU), `api.layout.*`,
|
|
631
|
+
`layout.setPositions` and `store.setPositions` moved the nodes for a moment,
|
|
632
|
+
and within a second the nodes snapped back. The write landed in a copy of
|
|
633
|
+
the positions that the next tick replaced, and the layout's pins never
|
|
634
|
+
reached the simulation. So nodes pinned earlier went back to their old pin
|
|
635
|
+
positions, and the rest drifted.
|
|
636
|
+
- The d3 controller now takes position writes and pins. A layout moves each
|
|
637
|
+
node in the simulation: a pinned node is re-anchored at its new spot, a free
|
|
638
|
+
node starts from there. `store.pinNodes` and `unpinNodes` set and clear
|
|
639
|
+
the simulation's pins. `unpinNodes` reheats a running simulation the way the
|
|
640
|
+
WebGPU controller does.
|
|
641
|
+
- Covered by `src/layout/__tests__/D3LayoutControllerAdapter.test.ts`
|
|
642
|
+
("writePositions / pinNodes / unpinNodes").
|
|
8
643
|
|
|
9
644
|
## 0.7.0 — 2026-11-25
|
|
10
645
|
|