TLFrameUtil

Public Class

Table of Contents
Signature
class TLFrameUtil extends TLBoxUtil<TLFrameShape> {}
References

TLBoxUtil, TLFrameShape


Properties

canBind

Public Property

Signature
canBind: () => boolean

canDropShapes

Public Property

Signature
canDropShapes: (_shape: TLFrameShape, _shapes: TLShape[]) => boolean
References

TLFrameShape, TLShape


canEdit

Public Property

Signature
canEdit: () => boolean

canReceiveNewChildrenOfType

Public Property

Signature
canReceiveNewChildrenOfType: (_type: TLShapeType) => boolean
References

TLShapeType


onDragShapesOut

Public Property

Signature
onDragShapesOut: (_shape: TLFrameShape, shapes: TLShape[]) => void
References

TLFrameShape, TLShape


onDragShapesOver

Public Property

Signature
onDragShapesOver: (
  frame: TLFrameShape,
  shapes: TLShape[]
) => {
  shouldHint: boolean
}
References

TLFrameShape, TLShape


onResizeEnd

Public Property

Signature
onResizeEnd: OnResizeEndHandler<TLFrameShape>
References

OnResizeEndHandler, TLFrameShape


type

Public Static Property

Signature
static type: string

Methods

defaultProps()

Public Method

Parameters

None

Returns
TLFrameShape['props']
References

TLFrameShape


indicator()

Public Method

Parameters
NameDescription

shape

TLFrameShape
Returns
JSX.Element
References

TLFrameShape, JSX.Element


render()

Public Method

Parameters
NameDescription

shape

TLFrameShape
Returns
JSX.Element
References

TLFrameShape, JSX.Element


toSvg()

Public Method

Parameters
NameDescription

shape

TLFrameShape

font

string

colors

TLExportColors
Returns
Promise<SVGElement> | SVGElement
References

TLFrameShape, TLExportColors, Promise, SVGElement


Edit this page
Last edited on 11 May 2023
TLFrameShapeDefTLGeoShapeDef