@fusion.dev/helix-docs 0.245.0 → 0.246.0

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.
@@ -126,6 +126,8 @@ While the page's motion is paused:
126
126
  - A graph that `connectGraph` lays out stops where its notes stand, and its
127
127
  three.js view stops turning.
128
128
  - A map layer's `frames` stop on the frame they show.
129
+ - The 3D charts and `Heatmap` stand at their readings, and a growth or a move
130
+ already running ends where it was heading.
129
131
 
130
132
  The choice is the page's, held on the document element as
131
133
  `data-helix-motion="paused"`. Set it in your markup to start the page paused,
@@ -218,6 +220,39 @@ does not hold. The mark on the end of a line rides with it. Safari does not
218
220
  transition a path's shape, so lines, areas, points, and the mark on a line's
219
221
  end there take their new place at once.
220
222
 
223
+ ## 3D charts that grow in and follow their readings
224
+
225
+ The 3D charts draw their own marks, in SVG and through three.js, so their
226
+ motion runs in script. They are `Spatial Bar Chart`, `Spatial Scatter Chart`,
227
+ `Spatial Ribbon Chart`, `Spatial Surface Chart`, `Spatial Treemap`, and
228
+ `Spatial Heatmap`. Each mark is known by its name, such as a bar's category
229
+ and series, and a new table is matched against the marks drawn:
230
+
231
+ - A mark both tables hold moves from its old reading to its new one, and
232
+ slides to its new place.
233
+ - A mark only the new table holds grows from the floor.
234
+ - A mark the new table drops shrinks to the floor, and then goes.
235
+
236
+ The value axis eases to its new range, so a bar does not jump when the scale
237
+ changes, and its numbers are the new ones from the start. A surface whose grid
238
+ changed shape cannot be matched place for place, and takes its new shape at
239
+ once. A three.js drawing draws each frame the chart works out, and holds its
240
+ view still while the marks move.
241
+
242
+ A move takes `--<family>-move-duration` along `--<family>-move-easing`, such as
243
+ `--spatial-bar-chart-move-duration`. The styled tier sets them to
244
+ `--helix-duration-normal` and `--helix-easing-decelerate`, as the flat charts
245
+ move. The headless tier sets neither, so a new table is drawn at once there.
246
+
247
+ `grow` grows the marks in the first time the chart comes into view, each
248
+ category or column a little after the one before it, and `grow-again` grows
249
+ them again each time the chart comes back into view. The growth keeps its own
250
+ timing, a second for each mark, because the page asked for it by name. Under
251
+ `grow`, a later table grows the marks it adds the same way. A `Heatmap` takes
252
+ `grow` too: each cell starts empty and steps up through the tones to its own,
253
+ a column at a time. Its cells already take a new color through the
254
+ stylesheet, so it reads no move hooks.
255
+
221
256
  ## Starting styles and view transitions
222
257
 
223
258
  Overlays use `@starting-style` to animate in. It sets a starting value and needs