Function validateLongStitch

  • Validate a long stitch against pattern properties. This validates the stitch's colorId maps to a valid color and if properties has a stitchHeight and/or stitchWidth defined, the relevant coordinate(s) will be range checked.

    Returns

    True if the long stitch is valid, false otherwise.

    Parameters

    • longStitch: LongStitch

      The long stitch to be validated.

    • properties: Properties

      The pattern properties.

    Returns boolean

Generated using TypeDoc