storyink 0.3.3 → 0.3.5
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 +41 -0
- package/README.md +5 -0
- package/dist/chunks/{index-xmj21twd.js → index-54aprc45.js} +1044 -911
- package/dist/chunks/{index-wpcz893s.js → index-hh8dgmx2.js} +8 -2
- package/dist/cli.js +2094 -1946
- package/dist/core/index.js +15 -1
- package/dist/index.js +25 -2
- package/dist/node/index.js +4 -2
- package/dist/types/core/index.d.ts +3 -3
- package/dist/types/core/layout/index.d.ts +1 -1
- package/dist/types/core/layout/paths.d.ts +7 -0
- package/dist/types/core/spec.d.ts +10 -0
- package/dist/types/core/story/compile.d.ts +13 -1
- package/dist/types/core/story/state.d.ts +23 -0
- package/dist/types/core/story/types.d.ts +2 -0
- package/dist/types/generated/meta.d.ts +1 -1
- package/dist/types/generated/viewer.d.ts +1 -1
- package/dist/types/node/index.d.ts +5 -0
- package/dist/types/theme/tokens.d.ts +13 -0
- package/docs/spec.md +50 -11
- package/package.json +1 -1
- package/schema/storyink.schema.json +12 -0
- package/skill/SKILL.md +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.5
|
|
4
|
+
|
|
5
|
+
- **Fix: the diagram showed a hover tooltip** (the diagram title) wherever the cursor rested. The
|
|
6
|
+
SVG carried a `<title>`, which browsers show as a tooltip. It's gone from the viewer, static
|
|
7
|
+
`.svg` exports and the animated SVG; the accessible name stays as `role="img"` +
|
|
8
|
+
`aria-label` on the root. Toolbar and transport hints are unchanged.
|
|
9
|
+
- **Reading holds.** Continuous playback now pauses after each beat so the reader can read it:
|
|
10
|
+
1 s + 0.3 s per word of the beat's caption, clamped to 1.5–6 s, or 0.8 s without a caption,
|
|
11
|
+
counted from when the beat is visually still (nothing changes during it; the caption stays up).
|
|
12
|
+
The animation speed is unchanged. Compiled into the timeline, so the viewer, scrubber, beat
|
|
13
|
+
sheets, snapshots and the animated SVG agree. Stepped (reduced-motion) playback holds each stop
|
|
14
|
+
for the same number; → / ← still stop at the settled beat without waiting.
|
|
15
|
+
- `story.pace` (multiplier, default 1; `0` = the 0.3.4 timing) and a per-step `hold` (seconds,
|
|
16
|
+
for the beat it ends); `render --pace`, tool `storyink_render` `pace`; core `readingHold`,
|
|
17
|
+
`compileStoryAuthored`.
|
|
18
|
+
- An absolute `at` is now a *minimum* start; relative `"+x"` steps shift.
|
|
19
|
+
- Stories run longer: OpenWick architecture 55 s → 176 s, data flow 29 s → 95 s, checkout
|
|
20
|
+
13 s → 30 s, OAuth 17 s → 57 s. The 60 s length warning counts the authored timing only.
|
|
21
|
+
|
|
22
|
+
## 0.3.4
|
|
23
|
+
|
|
24
|
+
- **Fix: → stopped before the next box was visible.** Step moves targeted the next step *start*,
|
|
25
|
+
and stories split a pulse and the reveal it causes into consecutive steps, so → stopped as the
|
|
26
|
+
dot arrived, before its target box appeared. → / ← now land on the next / previous **beat stop**:
|
|
27
|
+
a pulse and the reveal of its target are one beat, and the stop is where they (and the caption)
|
|
28
|
+
have settled. One definition, `beatGroups`, now drives step moves, stepped (reduced-motion)
|
|
29
|
+
playback, scrubber ticks and beat tiles. A reveal step that has its own caption now joins the
|
|
30
|
+
pulse whose target it reveals.
|
|
31
|
+
- Captions finish typing within their step (the last word no longer settles after the step ends).
|
|
32
|
+
- Step end times round up to the millisecond, so a stop is never a fraction of a millisecond
|
|
33
|
+
before its dot lands.
|
|
34
|
+
- **Fix: sharp light-grey corners during animation.** The pulse trail and dot followed the route's
|
|
35
|
+
corner points (straight segments with sharp corners) instead of the rounded wire. Routes now use
|
|
36
|
+
`flattenPath(edge.d)`, the drawn curve sampled in core, in the HTML viewer and the SMIL animated
|
|
37
|
+
SVG. The draw-on dash length is the rounded wire's length, and multi-hop routes no longer cut the
|
|
38
|
+
corner of the next wire.
|
|
39
|
+
- Core: `beatGroups`, `beatStops`, `beatChapters`, `beatTicks`, `flattenPath`.
|
|
40
|
+
- `verify:viewer`: → from OpenWick beat stops ends with the dot's target box visible. Chrome is
|
|
41
|
+
always killed (exit, signals, uncaught errors, plus a watchdog if the runner is SIGKILLed; a
|
|
42
|
+
20 min cap), CDP calls time out after 30 s, and the run has a 15 min deadline.
|
|
43
|
+
|
|
3
44
|
## 0.3.3
|
|
4
45
|
|
|
5
46
|
- **Fix: `snapshot --camera follow` wasn't deterministic on real diagrams** (`follow-deterministic`
|
package/README.md
CHANGED
|
@@ -126,6 +126,11 @@ has a click-to-play gate, play/pause, a tape-rewind replay and a scrubber with s
|
|
|
126
126
|
ticks. Space, ←/→ and R control it: → plays to the next step and pauses, ← rewinds at 2× to the
|
|
127
127
|
previous one (Shift: by chapter; repeated presses extend the move).
|
|
128
128
|
|
|
129
|
+
Playback **pauses to read after each beat**: about 1 s + 0.3 s per word of its caption (1.5–6 s;
|
|
130
|
+
0.8 s without one) once the beat is still, before the next beat starts. The animation speed is
|
|
131
|
+
unchanged. Set `"story": { "pace": 1.5 }` (or `--pace`) to slow it further, `0` for none, or
|
|
132
|
+
`"hold": 3` on a step for its beat.
|
|
133
|
+
|
|
129
134
|
Motion is **full by default, even when the reader's system asks for reduced motion**. Authors can
|
|
130
135
|
set `"story": { "motion": "reduced" }` (always step by step) or `"motion": "system"` (follow
|
|
131
136
|
`prefers-reduced-motion`); `--motion full|reduced|system` on `render` does the same, including
|