Skip to main content

Type Alias: StrokeAlign

StrokeAlign = number | "inside" | "center" | "outside"

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

Where the stroke sits relative to the shape's edge. Resolves to a number in [-1, 1]: -1 = fully inside the outline, 0 = centered (straddles the edge, half in/half out), +1 = fully outside. Named values map to the endpoints; intermediate numbers bias the stroke partway, like Figma's stroke alignment.