ImageShapeCrop

See source code

Validator for image shape crop data. Defines the structure for cropping an image, specifying the visible region within the original image bounds.

ImageShapeCrop: T.ObjectValidator<TLShapeCrop>;

Example

const cropData: TLShapeCrop = {
  topLeft: { x: 0.1, y: 0.1 },
  bottomRight: { x: 0.9, y: 0.9 },
  isCircle: false,
};

const isValid = ImageShapeCrop.isValid(cropData);
Prev
highlightShapeProps
Next
imageShapeMigrations