The story body is the canvas body: it shows the canvas controls, runs the
tool through the StoryHost on the canvas's tool pass, then shows what reads
the tool's state, so the canvas shows a press and its moves in the same pass.
The run closure applies the tool's events and the story buttons' edits to the
document after the canvas. The body gets the document mutably, since some
tools edit it themselves.
The README's glTF "Not read" line was doubled and listed sparse
accessors and tangents, which are read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A primitive's morph targets are not read, and only one scene becomes the
roots. Both now add a warning: a count of the primitives drawn in their
base shape, and which scene of how many was read.
Closes#1938.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A base64 body with `%2B`, `%2F` or `%3D` escapes was refused as bad
base64, and a plain body lost every escaped byte that was not UTF-8 to
U+FFFD. Escapes are now decoded to bytes first, then base64 when the URI
says so. `uri_decode` is unchanged for file names.
Closes#1936
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gallery mock panels, ui-bench, review story, doc examples and the test sites run
ToolHost::run on the ToolPass the canvas publishes, after the body's controls and
before the picture, which paints with .picture().
The canvas publishes its pass's tool input (ToolPass: id, rect, press, space,
view, snap) to its body; ToolHost::run reads it there, after the body's
controls and before its picture, so the picture shows this pass's press and
moves without a second pass. No ToolPass exists in a measuring run, so the
host never runs in one. The full-window canvas and ToolFixture run their host
this way, with the image in the canvas's picture slot. CanvasOutput still
converts for the callers not yet moved into their bodies.
cancel_press_of(ctx, owner) marks the arena holding the owner's open press; its next lifecycle run ends the press with
PressCancel::Host, which step 9 turns into a HostChanged cancel of the gesture. PartsCx reads the component's press
slot, so BezierOverlay declares its parts under the tool the press began with, as it handles them. The overlay lets go
of a press that is cancelled or that none of its parts carries, and a release with nothing held does nothing.