TLResizeInfo

Public TypeAlias

Info about a resize.

Parameters
NameDescription

newPoint

The new local position of the shape.

handle

The handle being dragged.

mode

The type of resize.

scaleX

The scale in the x-axis.

scaleY

The scale in the y-axis.

initialBounds

The bounds of the shape at the start of the resize.

initialShape

The shape at the start of the resize.

Signature
type TLResizeInfo<T extends TLShape> = {
  newPoint: Vec2dModel
  handle: TLResizeHandle
  mode: TLResizeMode
  scaleX: number
  scaleY: number
  initialBounds: Box2d
  initialShape: T
}
References

TLShape, Vec2dModel, TLResizeHandle, TLResizeMode, Box2d

Edit this page
Last edited on 11 May 2023
TLResizeHandleTLResizeMode