Table of contents

Public class

Signature
class GroupShapeUtil extends ShapeUtil<TLGroupShape> {}
References

ShapeUtil, TLGroupShape

Source

packages/editor/src/lib/editor/shapes/group/GroupShapeUtil.tsx


Properties

canBind

Public property

Signature
canBind: () => boolean

hideSelectionBoundsFg

Public property

Signature
hideSelectionBoundsFg: () => boolean

migrations

Public static property

Signature
static migrations: import('@tldraw/tlschema').TLShapePropsMigrations
References

TLShapePropsMigrations


onChildrenChange

Public property

Signature
onChildrenChange: TLOnChildrenChangeHandler<TLGroupShape>
References

TLOnChildrenChangeHandler, TLGroupShape


props

Public static property

Signature
static props: import('@tldraw/tlschema').ShapeProps<TLGroupShape>
References

ShapeProps, TLGroupShape


type

Public static property

Signature
static type: 'group'

Methods

component()

Public method

Signature
component(shape: TLGroupShape): import('react/jsx-runtime').JSX.Element | null
Parameters
NameDescription

shape

TLGroupShape
Returns
import('react/jsx-runtime').JSX.Element | null
References

TLGroupShape


getDefaultProps()

Public method

Signature
getDefaultProps(): TLGroupShape['props']
References

TLGroupShape


getGeometry()

Public method

Signature
getGeometry(shape: TLGroupShape): Geometry2d
Parameters
NameDescription

shape

TLGroupShape
Returns
Geometry2d
References

TLGroupShape, Geometry2d


indicator()

Public method

Signature
indicator(shape: TLGroupShape): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

shape

TLGroupShape
Returns
import('react/jsx-runtime').JSX.Element
References

TLGroupShape


Group2dHALF_PI