Skip to main content

Module record

Module record 

Source
Expand description

The Canvas that keeps the diagram instead of showing it.

A second implementation of the live-canvas traits that names no toolkit: every draw call becomes a DrawOp in a display list, and everything a tool asks the host for — the cursor, an in-place editor, a keyed easing, a repaint — is recorded as an answer the caller reads back off Recorded.

It is not a stub. Colours resolve through the same Palette the on-screen painter and the SVG writer resolve through, geometry goes through the same Vantage transform, and text is measured by the host’s own TextLayout — so what the recorder measures is what the backend would have drawn.

Structs§

Frame
What a Recording is opened with. The frame’s clock, camera and pointer arrive together because they describe one frame; passing them separately would let a call site pair a camera with another frame’s tick.
Recorded
Everything one recorded frame answered.
Recording
A Canvas that records. layout is the host’s text engine, so the recorder measures the run the backend would draw; easing is the session’s table, so an animation that started on one frame is read back on the next.
Stroke
A palette stroke as a recorded mark carries it: resolved to a colour, and scaled to the screen width the backend would have drawn.

Enums§

DrawOp
One mark in a recorded display list, in screen space with every swatch resolved and every font at the size it is drawn — the drawing as the host would receive it, not as the render path stated it.

Type Aliases§

DrawList
A frame’s marks, in the order they are drawn.