FrameShapeUtil
Public Class
Table of Contents
Signature
class FrameShapeUtil extends BaseBoxShapeUtil<TLFrameShape> {}
References
BaseBoxShapeUtil, TLFrameShape
Properties
canBind
Public Property
Signature
canBind: () => boolean
canDropShapes
Public Property
Signature
canDropShapes: (shape: TLFrameShape, _shapes: TLShape[]) => boolean
References
canEdit
Public Property
Signature
canEdit: () => boolean
canReceiveNewChildrenOfType
Public Property
Signature
canReceiveNewChildrenOfType: (
shape: TLShape,
_type: TLShape['type']
) => boolean
References
onDragShapesOut
Public Property
Signature
onDragShapesOut: (_shape: TLFrameShape, shapes: TLShape[]) => void
References
onDragShapesOver
Public Property
Signature
onDragShapesOver: (
frame: TLFrameShape,
shapes: TLShape[]
) => {
shouldHint: boolean
}
References
onResizeEnd
Public Property
Signature
onResizeEnd: TLOnResizeEndHandler<TLFrameShape>
References
TLOnResizeEndHandler, TLFrameShape
type
Public Static Property
Signature
static type: 'frame'
Methods
defaultProps()
Public Method
Parameters
None
Returns
TLFrameShape['props']
References
indicator()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
JSX.Element
References
providesBackgroundForChildren()
Public Method
Parameters
None
Returns
boolean
render()
Public Method
Parameters
Name | Description |
---|---|
|
|
Returns
JSX.Element
References
toSvg()
Public Method
Parameters
Name | Description |
---|---|
|
|
|
|
|
|
Returns
Promise<SVGElement> | SVGElement
References
TLFrameShape, TLExportColors, Promise, SVGElement