TLArrowUtil
Public Class
Table of Contents
Signature
class TLArrowUtil extends TLShapeUtil<TLArrowShape> {}
References
Properties
canBind
Public Property
Signature
canBind: () => boolean
canEdit
Public Property
Signature
canEdit: () => boolean
getEditingBounds
Public Property
Signature
getEditingBounds: (shape: TLArrowShape) => Box2d
References
hideResizeHandles
Public Property
Signature
hideResizeHandles: TLShapeUtilFlag<TLArrowShape>
References
hideRotateHandle
Public Property
Signature
hideRotateHandle: TLShapeUtilFlag<TLArrowShape>
References
hideSelectionBoundsBg
Public Property
Signature
hideSelectionBoundsBg: TLShapeUtilFlag<TLArrowShape>
References
hideSelectionBoundsFg
Public Property
Signature
hideSelectionBoundsFg: TLShapeUtilFlag<TLArrowShape>
References
isClosed
Public Property
Signature
isClosed: () => boolean
labelBoundsCache
Public Readonly Property
Signature
get labelBoundsCache(): ComputedCache<Box2d | null, TLArrowShape>
References
ComputedCache, Box2d, TLArrowShape
onDoubleClickHandle
Public Property
Signature
onDoubleClickHandle: (
shape: TLArrowShape,
handle: TLHandle
) => TLShapePartial<TLArrowShape> | void
References
TLArrowShape, TLHandle, TLShapePartial
onEditEnd
Public Property
Signature
onEditEnd: OnEditEndHandler<TLArrowShape>
References
OnEditEndHandler, TLArrowShape
onHandleChange
Public Property
Signature
onHandleChange: OnHandleChangeHandler<TLArrowShape>
References
OnHandleChangeHandler, TLArrowShape
onResize
Public Property
Signature
onResize: OnResizeHandler<TLArrowShape>
References
onTranslateStart
Public Property
Signature
onTranslateStart: OnTranslateStartHandler<TLArrowShape>
References
OnTranslateStartHandler, TLArrowShape
type
Public Static Property
Signature
static type: string
Methods
defaultProps()
Public Method
Parameters
None
Returns
TLArrowShape['props']
References
getArrowInfo()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
ArrowInfo | undefined
References
getBounds()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Box2d
References
getCenter()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Vec2d
References
getHandles()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
TLHandle[]
References
getLabelBounds()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Box2d | null
References
getOutline()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Vec2dModel[]
References
getOutlineWithoutLabel()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
VecLike[]
References
hitTestLineSegment()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
boolean
References
hitTestPoint()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
Returns
boolean
References
indicator()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
JSX.Element | null
References
render()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
JSX.Element | null
References
snapPoints()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Vec2d[]
References
toSvg()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
SVGGElement
References
TLArrowShape, TLExportColors, SVGGElement