@motion-script/core / GraphicsShapeOp
Type Alias: GraphicsShapeOp
GraphicsShapeOp = {
kind:"rect";state:Partial<RectState> &ShapeAnchorInput; } | {kind:"ellipse";state:Partial<EllipseState> &ShapeAnchorInput; } | {kind:"path";state:Partial<PathState>; } | {kind:"line";state:Partial<LineState>; } | {kind:"polygon";state:Partial<PolygonState> &ShapeAnchorInput; } | {kind:"polygram";state:Partial<PolygramState> &ShapeAnchorInput; } | {kind:"text";state:Partial<TextState> &ShapeAnchorInput; } | {kind:"richText";state:Partial<RichTextState> &ShapeAnchorInput; }
Defined in: render/graphics.ts:37
The kinds of shape ops a Graphics can record. Each carries the partial descriptor state for that shape, exactly as the old per-shape context methods accepted.