StrokeGeometry
Defined in: core/stroke.ts:3
Properties
Section titled “Properties”anchors
Section titled “anchors”anchors:
number[]
Defined in: core/stroke.ts:14
Per-vertex centerline anchor (interleaved x,y, one pair per vertex). The point on the polyline that each stroke vertex was offset from by the half-width normal. Backends use it for “screen” sizeMode: keep the anchor in world space but render the (vertex − anchor) offset at a constant pixel size, giving a constant-width stroke independent of zoom.
indices
Section titled “indices”indices:
number[]
Defined in: core/stroke.ts:7
Triangle indices into vertices (3 per triangle).
vertices
Section titled “vertices”vertices:
number[]
Defined in: core/stroke.ts:5
Interleaved x,y vertex coordinates.