TLLineUtil
Public Class
Table of Contents
Signature
class TLLineUtil extends TLShapeUtil<TLLineShape> {}
References
Properties
hideResizeHandles
Public Property
Signature
hideResizeHandles: () => boolean
hideRotateHandle
Public Property
Signature
hideRotateHandle: () => boolean
hideSelectionBoundsBg
Public Property
Signature
hideSelectionBoundsBg: () => boolean
hideSelectionBoundsFg
Public Property
Signature
hideSelectionBoundsFg: () => boolean
isClosed
Public Property
Signature
isClosed: () => boolean
onHandleChange
Public Property
Signature
onHandleChange: OnHandleChangeHandler<TLLineShape>
References
OnHandleChangeHandler, TLLineShape
onResize
Public Property
Signature
onResize: OnResizeHandler<TLLineShape>
References
type
Public Static Property
Signature
static type: string
Methods
defaultProps()
Public Method
Parameters
None
Returns
TLLineShape['props']
References
getBounds()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
import('@tldraw/primitives').Box2d
References
getCenter()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Vec2d
References
getHandles()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
TLHandle[]
References
getOutline()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
Vec2d[]
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
References
render()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
JSX.Element | undefined
References
toSvg()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
SVGGElement
References
TLLineShape, TLExportColors, SVGGElement