getCropBox
See source codefunction 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
getArrowTerminalsInArrowSpaceNext
getDefaultCrop