Function validateHalfStitch

  • Validate a half 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 half stitch is valid, false otherwise.

    Parameters

    • halfStitch: HalfStitch

      The half stitch to validate.

    • properties: Properties

      The pattern properties.

    Returns boolean

Generated using TypeDoc