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

x/canvas/types.ts>PathCommand

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
type alias PathCommand
import { type PathCommand } from "https://deno.land/x/canvas@v1.0.4/types.ts";

PathCommand contains a verb and then any arguments needed to fulfill that path verb. Examples: [CanvasKit.MOVE_VERB, 0, 10] [CanvasKit.LINE_VERB, 30, 40] TODO(kjlubick) Make this not be a 2-d array and support typed arrays.

definition: number[]