Skip to content

PathSegment

PathSegment = { t: "M"; x: number; y: number; } | { t: "L"; x: number; y: number; } | { cp1x: number; cp1y: number; cp2x: number; cp2y: number; t: "C"; x: number; y: number; } | { t: "Z"; }

Defined in: perf/offscreen.ts:54

One step of a serialised path used inside a 'path' / 'fillPath' / 'strokePath' DrawCommand. Mirrors the SVG path-command set but kept tight (M/L/C/Z) — enough for charts, no arcs.