MotionScript

@motion-script/core


@motion-script/core / StrokeAlign

Type Alias: StrokeAlign

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

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

Where the stroke sits relative to the shape's edge. Resolves to a number in the range [-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.