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

TLCropInfo<T>;

opts

Returns

  | {
      id: TLShapeId;
      props: ShapeWithCrop["props"];
      type: T["type"];
      x: number;
      y: number;
    }
  | undefined;
Prev
getAssetInfo
Next
getDefaultCrop