Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/canvaseno/mod.ts>StrokeOpts

Canvas API for deno
Latest
interface StrokeOpts
import { type StrokeOpts } from "https://deno.land/x/canvaseno@v1.0.2/mod.ts";

Options used for SkPath.stroke(). If an option is omitted, a sensible default will be used.

Properties

optional
width: number

The width of the stroked lines.

optional
miter_limit: number
optional
precision: number

if > 1, increase precision, else if (0 < resScale < 1) reduce precision to favor speed and size

optional
join: StrokeJoin
optional
cap: StrokeCap