Model class representing a single long stitch in the pattern.

Long stitches follow the same rules as back stitches expect that they have no maximum distance. They can move laterally, vertically, or diagonally. Long stitch coordinates also support 1/2 space fractional values.

Hierarchy

  • LongStitch

Implements

Constructors

Properties

Constructors

  • Parameters

    • colorId: number

      The ID of the color of the stitch

    • x: number

      The x coordinate of the start of the stitch

    • y: number

      The y coordinate of the start of the stitch

    • x2: number

      The x2 coordinate of the end of the stitch

    • y2: number

      The y2 coordinate of the end of the stitch

    Returns LongStitch

Properties

colorId: number

The ID of the color of the stitch

x: number

The x coordinate of the start of the stitch

x2: number

The x2 coordinate of the end of the stitch

y: number

The y coordinate of the start of the stitch

y2: number

The y2 coordinate of the end of the stitch

Generated using TypeDoc