Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface SkContourMeasure
import { type SkContourMeasure } from "https://deno.land/x/canvaseno@v1.0.2/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.