Skip to content

DrawCommand

DrawCommand = { args: [string, number, number, number, number]; op: "fillRect"; } | { args: [string, number, number[], number[]]; op: "strokeLine"; } | { args: [string, number, number, number]; op: "fillArc"; } | { args: [string, string, string, number, number, string, string]; op: "fillText"; } | { args: PathSegment[]; op: "path"; } | { args: [string, PathSegment[]]; op: "fillPath"; } | { args: [string, number, PathSegment[]]; op: "strokePath"; }

Defined in: perf/offscreen.ts:27