resizeScaled
See source codeResize a shape that has a scale prop.
function resizeScaled(
shape: TLBaseShape<
any,
{
scale: number
}
>,
{ initialBounds, scaleX, scaleY, newPoint, handle }: TLResizeInfo<any>
): {
props: {
scale: number
}
x: number
y: number
}Parameters
| Name | Description |
|---|---|
| The shape to resize |
| |
Returns
{
props: {
scale: number
}
x: number
y: number
}Prev
resizeBoxNext
rotateSelectionHandle