Table of contents

Public interface

Info about a resize.

Signature
interface TLResizeInfo<T extends TLShape> {}
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.

References

TLShape

Source

packages/editor/src/lib/editor/shapes/ShapeUtil.ts


Properties

handle

Public propertysignature

Signature
handle: TLResizeHandle
References

TLResizeHandle


initialBounds

Public propertysignature

Signature
initialBounds: Box
References

Box


initialShape

Public propertysignature

Signature
initialShape: T

mode

Public propertysignature

Signature
mode: TLResizeMode
References

TLResizeMode


newPoint

Public propertysignature

Signature
newPoint: Vec
References

Vec


scaleX

Public propertysignature

Signature
scaleX: number

scaleY

Public propertysignature

Signature
scaleY: number

TLResizeHandleTLResizeMode