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


canUnmount

Public property

Signature
canUnmount: TLShapeUtilFlag<TLEmbedShape>
References

TLShapeUtilFlag, 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').Migrations
References

Migrations


onResize

Public property

Signature
onResize: TLOnResizeHandler<TLEmbedShape>
References

TLOnResizeHandler, TLEmbedShape


props

Public static property

Signature
static props: {
  w: import('@tldraw/editor').Validator<number>
  h: import('@tldraw/editor').Validator<number>
  url: import('@tldraw/editor').Validator<string>
}
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


DropdownMenuEraserTool