mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 01:44:25 +00:00
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.