Module

x/canvas/types.ts>SkContourMeasure

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

Methods

getPosTan(distance: number): PosTan

Returns the given position and tangent line for the distance on the given contour.

getSegment(
startD: number,
stopD: number,
startWithMoveTo: boolean,
): SkPath

Returns an SkPath representing the segement of this contour.

isClosed(): boolean

Returns true if the contour is closed.

length(): number

Returns the length of this contour.