@mocanvas/editor · constant
declare const ImageShapeCrop: ObjectValidator<ObjectValidatorType<{
readonly topLeft: ObjectValidator<ObjectValidatorType<{
readonly x: Validator<number>;
readonly y: Validator<number>;
}>>;
readonly bottomRight: ObjectValidator<ObjectValidatorType<{
readonly x: Validator<number>;
readonly y: Validator<number>;
}>>;
readonly isCircle: Validator<boolean | undefined>;
}>>The validator an image-like shape declares its crop prop with.
``ts
static props = { w: T.nonZeroNumber, h: T.nonZeroNumber, crop: ImageShapeCrop.nullable() }
``
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.