Table of contents

Public class

Signature
References

ShapeUtil, TLTextShape

Source

packages/tldraw/src/lib/shapes/text/TextShapeUtil.tsx


Properties

canEdit

Public property

Signature

isAspectRatioLocked

Public property

Signature
References

TLShapeUtilFlag, TLTextShape


migrations

Public static property

Signature
References

Migrations


onBeforeCreate

Public property

Signature
References

TLTextShape, TLParentId, TLShapeId


onBeforeUpdate

Public property

Signature
References

TLTextShape, TLParentId, TLShapeId


onDoubleClickEdge

Public property

Signature
References

TLTextShape, TLShapeId


onEditEnd

Public property

Signature
References

TLOnEditEndHandler, TLTextShape


onResize

Public property

Signature
References

TLOnResizeHandler, TLTextShape


props

Public static property

Signature
References

EnumStyleProp, Validator


type

Public static property

Signature

Methods

component()

Public method

Signature
Parameters
NameDescription

shape

Returns
References

TLTextShape


getDefaultProps()

Public method

Signature
References

TLTextShape


getGeometry()

Public method

Signature
Parameters
NameDescription

shape

Returns
References

TLTextShape, Rectangle2d


getMinDimensions()

Public method

Signature
Parameters
NameDescription

shape

Returns
References

TLTextShape


indicator()

Public method

Signature
Parameters
NameDescription

shape

Returns
References

TLTextShape


toSvg()

Public method

Signature
Parameters
NameDescription

shape

ctx

Returns
References

TLTextShape, SvgExportContext


TextShapeToolTLDRAW_FILE_EXTENSION