MotionScript

@motion-script/core


@motion-script/core / ClipShapeOp

Type Alias: ClipShapeOp

ClipShapeOp = { 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; }

Defined in: render/clip.ts:15

The shape ops a Clip can record — the same geometry primitives a Graphics can draw, minus text/image (which have no clippable outline). Each carries the partial descriptor state for that shape.