Skip to content

StrokeGeometry

Defined in: core/stroke.ts:3

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: number[]

Defined in: core/stroke.ts:7

Triangle indices into vertices (3 per triangle).


vertices: number[]

Defined in: core/stroke.ts:5

Interleaved x,y vertex coordinates.