function resizeBox<T extends TLBaseBoxShape>(
  shape: T,
  info: {
    handle: TLResizeHandle
    initialBounds: Box
    initialShape: T
    mode: TLResizeMode
    newPoint: VecModel
    scaleX: number
    scaleY: number
  },
  opts?: Partial<{
    maxHeight: number
    maxWidth: number
    minHeight: number
    minWidth: number
  }>
): T
Parameters
NameDescription

shape

T

info

{
  handle: TLResizeHandle
  initialBounds: Box
  initialShape: T
  mode: TLResizeMode
  newPoint: VecModel
  scaleX: number
  scaleY: number
}

opts

Partial<{
  maxHeight: number
  maxWidth: number
  minHeight: number
  minWidth: number
}>
Returns
T
releasePointerCapturerotateSelectionHandle