ixfx
    Preparing search index...

    Type Alias Path

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

    Type declaration

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

      Well-known path kind

    • bbox:function
    • distanceToPoint:function
      • 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

    • interpolate:function
    • length:function
      • Length of path

        Returns number

    • nearest:function
    • relativePosition:function
      • 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

        Returns number

    • toString:function
      • Returns a string representation of pth values

        Returns string

    • toSvgString:function
      • Returns an array of SVG segments that can render path

        Returns readonly string[]