weasel API - v0.8.0
    Preparing search index...

    Type Alias StrokeAlign

    StrokeAlign: "center" | "inner" | "outer"

    Where a stroke sits relative to the geometric edge it strokes.

    • 'center' (default): canvas-native — half the stroke width sits inside the geometry, half outside.
    • 'inner': the entire stroke lies inside the geometry. The outer edge of the stroke coincides with the geometric edge.
    • 'outer': the entire stroke lies outside the geometry. The inner edge of the stroke coincides with the geometric edge.

    Mirrors the (proposed) SVG stroke-alignment property. Honoring inner or outer is the renderer's responsibility — for axis-aligned rects, the kit shifts coordinates by width / 2. For arbitrary paths, renderers typically use a stencil mask of the stroked path against the geometry.