Skip to content

Documentation / @ripl/core / RenderInstruction

Interface: RenderInstruction

Defined in: packages/core/src/core/scene.ts:51

A single entry in a Scene's flat render instruction stream. push/pop bracket a group so its transform and any group-scoped clip apply to the leaves drawn between them; draw renders a leaf element. Groups are contiguous (stacking-context ordering), so each group contributes exactly one push/pop pair.

Properties

PropertyTypeDescriptionDefined in
elementElementThe group element for push/pop, or the leaf element for draw.packages/core/src/core/scene.ts:55
typeRenderInstructionTypeWhether this instruction opens a group, draws a leaf, or closes a group.packages/core/src/core/scene.ts:53