HighlightShapeUtil

Public Class

Table of Contents
Signature
class HighlightShapeUtil extends ShapeUtil<TLHighlightShape> {}
References

ShapeUtil, TLHighlightShape


Properties

hideResizeHandles

Public Property

Signature
hideResizeHandles: (shape: TLHighlightShape) => boolean
References

TLHighlightShape


hideRotateHandle

Public Property

Signature
hideRotateHandle: (shape: TLHighlightShape) => boolean
References

TLHighlightShape


hideSelectionBoundsBg

Public Property

Signature
hideSelectionBoundsBg: (shape: TLHighlightShape) => boolean
References

TLHighlightShape


hideSelectionBoundsFg

Public Property

Signature
hideSelectionBoundsFg: (shape: TLHighlightShape) => boolean
References

TLHighlightShape


onResize

Public Property

Signature
onResize: TLOnResizeHandler<TLHighlightShape>
References

TLOnResizeHandler, TLHighlightShape


type

Public Static Property

Signature
static type: 'highlight'

Methods

defaultProps()

Public Method

Parameters

None

Returns
TLHighlightShape['props']
References

TLHighlightShape


expandSelectionOutlinePx()

Public Method

Parameters
NameDescription

shape

TLHighlightShape
Returns
number
References

TLHighlightShape


getBounds()

Public Method

Parameters
NameDescription

shape

TLHighlightShape
Returns
Box2d
References

TLHighlightShape, Box2d


getCenter()

Public Method

Parameters
NameDescription

shape

TLHighlightShape
Returns
Vec2d
References

TLHighlightShape, Vec2d


getOutline()

Public Method

Parameters
NameDescription

shape

TLHighlightShape
Returns
Vec2d[]
References

TLHighlightShape, Vec2d


hitTestLineSegment()

Public Method

Parameters
NameDescription

shape

TLHighlightShape

A

VecLike

B

VecLike
Returns
boolean
References

TLHighlightShape, VecLike


hitTestPoint()

Public Method

Parameters
NameDescription

shape

TLHighlightShape

point

VecLike
Returns
boolean
References

TLHighlightShape, VecLike


indicator()

Public Method

Parameters
NameDescription

shape

TLHighlightShape
Returns
JSX.Element
References

TLHighlightShape, JSX.Element


render()

Public Method

Parameters
NameDescription

shape

TLHighlightShape
Returns
JSX.Element
References

TLHighlightShape, JSX.Element


renderBackground()

Public Method

Parameters
NameDescription

shape

TLHighlightShape
Returns
JSX.Element
References

TLHighlightShape, JSX.Element


toBackgroundSvg()

Public Method

Parameters
NameDescription

shape

TLHighlightShape

font

string | undefined

colors

TLExportColors
Returns
SVGPathElement
References

TLHighlightShape, TLExportColors, SVGPathElement


toSvg()

Public Method

Parameters
NameDescription

shape

TLHighlightShape

_font

string | undefined

colors

TLExportColors
Returns
SVGPathElement
References

TLHighlightShape, TLExportColors, SVGPathElement


Edit this page
Last edited on 15 June 2023
HighlightShapeHTMLContainer