function resizeBox<T extends TLBaseBoxShape>(
  shape: T,
  info: {
    handle: TLResizeHandle
    initialBounds: Box
    initialShape: T
    mode: TLResizeMode
    newPoint: VecModel
    scaleX: number
    scaleY: number
  },
  opts?: ResizeBoxOptions
): T

Parameters

NameDescription

shape

T

info

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

opts

Returns

T
Prev
releasePointerCapture
Next
rotateSelectionHandle