Skip to main content

Interface: StrokeProp

Defined in: attributes/shape/stroke/mapper.ts:28

Stroke prop and resolved types, resolver, and array lerp.

Properties

align?

optional align?: StrokeAlign

Defined in: attributes/shape/stroke/mapper.ts:42

Where the stroke sits relative to the edge: a number in [-1, 1] or one of 'inside' (-1), 'center' (0), 'outside' (1). Defaults to 'inside', so the stroke stays within the shape's measured bounds (like a CSS border) rather than leaking half its width outside.


dash?

optional dash?: number | number[]

Defined in: attributes/shape/stroke/mapper.ts:34

Dash pattern. A single number n becomes [n, n].


dashOffset?

optional dashOffset?: number

Defined in: attributes/shape/stroke/mapper.ts:35


fill?

optional fill?: FillProp

Defined in: attributes/shape/stroke/mapper.ts:32

Any loose fill: a CSS color string, fill prop object, or resolved fill.


weight?

optional weight?: number

Defined in: attributes/shape/stroke/mapper.ts:30

Stroke width in pixels. Defaults to 1.