Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/canvas/mod.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/mod.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.