getUncroppedSize

See source code

Original (uncropped) width and height of shape.

function getUncroppedSize(
  shapeSize: {
    h: number
    w: number
  },
  crop: null | TLShapeCrop
): {
  h: number
  w: number
}

Parameters

NameDescription

shapeSize

{
  h: number
  w: number
}

crop

Returns

{
  h: number
  w: number
}
Prev
getOccludedChildren
Next
parseTldrawJsonFile