rmapi-js
    Preparing search index...

    Type Alias PathStep

    PathStep:
        | { type: "M"; x: number; y: number }
        | { type: "L"; x: number; y: number }
        | {
            type: "C";
            x: number;
            x1: number;
            x2: number;
            y: number;
            y1: number;
            y2: number;
        }
        | { type: "Z" }

    a step of a shape's path, in the drawing's pixels

    Type Declaration

    • { type: "M"; x: number; y: number }
      • type: "M"

        move to x, y

      • x: number

        across

      • y: number

        down

    • { type: "L"; x: number; y: number }
      • type: "L"

        a line to x, y

      • x: number

        across

      • y: number

        down

    • {
          type: "C";
          x: number;
          x1: number;
          x2: number;
          y: number;
          y1: number;
          y2: number;
      }
      • type: "C"

        a cubic curve to x, y

      • x: number

        where it ends, across

      • x1: number

        the first control point, across

      • x2: number

        the second control point, across

      • y: number

        where it ends, down

      • y1: number

        the first control point, down

      • y2: number

        the second control point, down

    • { type: "Z" }
      • type: "Z"

        a line back to where the path last moved to