getCropBox
function getCropBox<T extends ShapeWithCrop>(
shape: T,
info: TLCropInfo<T>,
opts?: CropBoxOptions,
):
| {
id: TLShapeId;
props: ShapeWithCrop["props"];
type: T["type"];
x: number;
y: number;
}
| undefined;Parameters
| Name | Description |
|---|---|
| |
| |
|
Returns
| {
id: TLShapeId;
props: ShapeWithCrop["props"];
type: T["type"];
x: number;
y: number;
}
| undefined;Prev
getAssetInfoNext
getDefaultCrop