StrokeOptions
Defined in: core/stroke.ts:22
Properties
Section titled “Properties”
optionalcap?: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.
optionaljoin?: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.
miterLimit?
Section titled “miterLimit?”
optionalmiterLimit?: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.