@motion-script/core / GraphicsOp
Type Alias: GraphicsOp
GraphicsOp =
GraphicsShapeOp| {fills:Fill;kind:"fill"; } | {kind:"stroke";strokes:Stroke; } | {kind:"shadow";shadows:Shadow; } | {kind:"cut"; } | {kind:"mask";options?:MaskOptions; } | {kind:"applyMask"; } | {kind:"endMask"; } | {effects:SceneEffect[];kind:"effects"; }
Defined in: render/graphics.ts:53
A single recorded operation in a Graphics command list. Shape ops
declare geometry; paint ops (fill/stroke/shadow) apply to the accumulated
shapes; cut/mask ops composite. The renderer replays this list in order via
RenderContext.draw().