Function validateFullStitch

  • Validate a full stitch against patterns properties. This validates the stitch's colorId maps to a valid color and that the that the stitch is within the bounds of the pattern (properties.stitchWidth & properties.stitchHeight).

    Returns

    True if the full stitch is valid, false otherwise.

    Parameters

    • fullStitch: FullStitch

      The full stitch to validate.

    • properties: Properties

      The pattern properties, which holds the needed pattern dimensions.

    Returns boolean

Generated using TypeDoc