TLImageUtil

Public Class

Table of Contents
Signature
class TLImageUtil extends TLBoxUtil<TLImageShape> {}
References

TLBoxUtil, TLImageShape


Properties

canCrop

Public Property

Signature
canCrop: () => boolean

isAspectRatioLocked

Public Property

Signature
isAspectRatioLocked: () => boolean

onDoubleClick

Public Property

Signature
onDoubleClick: (shape: TLImageShape) => void
References

TLImageShape


onDoubleClickEdge

Public Property

Signature
onDoubleClickEdge: OnDoubleClickHandler<TLImageShape>
References

OnDoubleClickHandler, TLImageShape


type

Public Static Property

Signature
static type: string

Methods

defaultProps()

Public Method

Parameters

None

Returns
TLImageShape['props']
References

TLImageShape


indicator()

Public Method

Parameters
NameDescription

shape

TLImageShape
Returns
JSX.Element | null
References

TLImageShape, JSX.Element


render()

Public Method

Parameters
NameDescription

shape

TLImageShape
Returns
JSX.Element
References

TLImageShape, JSX.Element


toSvg()

Public Method

Parameters
NameDescription

shape

TLImageShape
Returns
Promise<SVGGElement>
References

TLImageShape, Promise, SVGGElement


Edit this page
Last edited on 11 May 2023
TLImageShapeDefTLInterruptEvent