ImageShapeUtil
Public Class
Table of Contents
Signature
class ImageShapeUtil extends BaseBoxShapeUtil<TLImageShape> {}
References
BaseBoxShapeUtil, TLImageShape
Properties
canCrop
Public Property
Signature
canCrop: () => boolean
isAspectRatioLocked
Public Property
Signature
isAspectRatioLocked: () => boolean
onDoubleClick
Public Property
Signature
onDoubleClick: (shape: TLImageShape) => void
References
onDoubleClickEdge
Public Property
Signature
onDoubleClickEdge: TLOnDoubleClickHandler<TLImageShape>
References
TLOnDoubleClickHandler, TLImageShape
type
Public Static Property
Signature
static type: 'image'
Methods
defaultProps()
Public Method
Parameters
None
Returns
TLImageShape['props']
References
indicator()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
JSX.Element | null
References
render()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
JSX.Element
References
toSvg()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Promise<SVGGElement>
References
TLImageShape, Promise, SVGGElement