Skip to content

StrokeOptions

Defined in: core/stroke.ts:22

optional cap?: LineCap

Defined in: core/stroke.ts:31

End-cap style for OPEN subpaths: “butt” (default, flush), “square” (extends half the width past the end), or “round” (a semicircle). Closed subpaths have no ends.


optional join?: LineJoin

Defined in: core/stroke.ts:25

Corner style. “bevel” (default) cuts the corner flat; “miter” extends to a sharp point (falling back to “bevel” past StrokeOptions.miterLimit); “round” arcs the corner.


optional miterLimit?: number

Defined in: core/stroke.ts:28

Miter length / stroke width above which a miter falls back to a bevel — the same definition Canvas (ctx.miterLimit) and SVG (stroke-miterlimit) use. Default 10.