Table of contents

Public class

Signature
class EmbedShapeUtil extends BaseBoxShapeUtil<TLEmbedShape> {}
References

BaseBoxShapeUtil, TLEmbedShape

Source

packages/tldraw/src/lib/shapes/embed/EmbedShapeUtil.tsx


Properties

canEdit

Public property

Signature
canEdit: TLShapeUtilFlag<TLEmbedShape>
References

TLShapeUtilFlag, TLEmbedShape


canEditInReadOnly

Public property

Signature
canEditInReadOnly: () => boolean

canResize

Public property

Signature
canResize: (shape: TLEmbedShape) => boolean
References

TLEmbedShape


hideSelectionBoundsFg

Public property

Signature
hideSelectionBoundsFg: TLShapeUtilFlag<TLEmbedShape>
References

TLShapeUtilFlag, TLEmbedShape


isAspectRatioLocked

Public property

Signature
isAspectRatioLocked: TLShapeUtilFlag<TLEmbedShape>
References

TLShapeUtilFlag, TLEmbedShape


migrations

Public static property

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

TLShapePropsMigrations


onResize

Public property

Signature
onResize: TLOnResizeHandler<TLEmbedShape>
References

TLOnResizeHandler, TLEmbedShape


props

Public static property

Signature
static props: {
  h: import('@tldraw/editor').Validator<number>
  url: import('@tldraw/editor').Validator<string>
  w: import('@tldraw/editor').Validator<number>
}
References

Validator


type

Public static property

Signature
static type: 'embed'

Methods

component()

Public method

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

shape

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

TLEmbedShape


getDefaultProps()

Public method

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

TLEmbedShape


indicator()

Public method

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

shape

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

TLEmbedShape


EllipseToolbarItemEraserTool