getCropBox

See source code
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

NameDescription

shape

T

info

opts

Returns

  | {
      id: TLShapeId
      props: ShapeWithCrop['props']
      type: T['type']
      x: number
      y: number
    }
  | undefined
Prev
getArrowTerminalsInArrowSpace
Next
getDefaultCrop