Build the DrawCommand list that renderSceneToCanvas would dispatch.
Pure — no GL, no DOM, no side effects. Iterates scene.renderOrder(),
calls drawOne per node, appends any extraCommands, and wraps the
combined list in a single { kind: 'group', transform: viewToMat3(view) }
so the output is in screen space.
Exported for tests and for callers that want to render into something
other than a real <canvas> (e.g. an offscreen renderer or a
snapshot fixture).
Build the DrawCommand list that
renderSceneToCanvaswould dispatch.Pure — no GL, no DOM, no side effects. Iterates
scene.renderOrder(), callsdrawOneper node, appends anyextraCommands, and wraps the combined list in a single{ kind: 'group', transform: viewToMat3(view) }so the output is in screen space.Exported for tests and for callers that want to render into something other than a real
<canvas>(e.g. an offscreen renderer or a snapshot fixture).