Skip to main content
Module

x/canvas/mod.ts>StrokeOpts

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface StrokeOpts
import { type StrokeOpts } from "https://deno.land/x/canvas@v1.0.0/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