resizeBox
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
Name | Description |
---|---|
|
|
|
|
|
|
Returns
T