ixfx
    Preparing search index...
    type Path = {
        kind:
            | "compound"
            | "elliptical"
            | "circular"
            | "arc"
            | "bezier/cubic"
            | "bezier/quadratic"
            | "line";
        bbox(): RectPositioned;
        distanceToPoint(point: Point): number;
        interpolate(t: number): Point;
        length(): number;
        nearest(point: Point): Point;
        relativePosition(point: Point, intersectionThreshold: number): number;
        toString(): string;
        toSvgString(): readonly string[];
    }
    Index

    Methods

    • Distance from start of path to this point. If path is closed (eg. a circle) it may have some arbitary 'start' point

      Parameters

      Returns number

    • Returns relative position of point along path. If pt is same as start, result will be 0, if it's the same as end, it will be 1.

      Inverse of interpolate.

      Parameters

      • point: Point
      • intersectionThreshold: number

      Returns number

    Properties

    kind:
        | "compound"
        | "elliptical"
        | "circular"
        | "arc"
        | "bezier/cubic"
        | "bezier/quadratic"
        | "line"

    Well-known path kind