Function validateBackStitch

  • Validate a back stitch. This validates the back stitch's length does not exceed a single space in any direction. If properties are provided this validates the stitch's colorId maps to a valid color. Additionally if properties has a stitchHeight and/or stitchWidth defined, the relevant coordinate(s) will be range checked.

    Returns

    True if the back stitch is valid, false otherwise.

    Parameters

    • backStitch: BackStitch

      The back stitch to be validated.

    • Optional properties: Properties

      The pattern properties.

    Returns boolean

Generated using TypeDoc