Skip to main content

Type Alias: ClipShape

ClipShape = { kind: "rect"; state: Partial<RectState>; } | { kind: "ellipse"; state: Partial<EllipseState>; } | { kind: "polygon"; state: Partial<PolygonState>; } | { kind: "polygram"; state: Partial<PolygramState>; } | { kind: "path"; state: Partial<PathState>; } | { kind: "line"; state: Partial<LineState>; }

Defined in: render/render-context.ts:38

A shape outline to clip against, tagged by kind so the renderer can build the same path it would draw. Used by background blur to confine the backdrop blur to any shape's silhouette.