EmbedShapeUtil
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
canEditInReadOnly
Public property
Signature
canEditInReadOnly: () => boolean
canResize
Public property
Signature
canResize: (shape: TLEmbedShape) => boolean
References
hideSelectionBoundsFg
Public property
Signature
hideSelectionBoundsFg: TLShapeUtilFlag<TLEmbedShape>
References
isAspectRatioLocked
Public property
Signature
isAspectRatioLocked: TLShapeUtilFlag<TLEmbedShape>
References
migrations
Public static property
Signature
static migrations: import('@tldraw/editor').TLShapePropsMigrations
References
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
type
Public static property
Signature
static type: 'embed'
Methods
component()
Public method
Signature
component(shape: TLEmbedShape): import('react/jsx-runtime').JSX.Element | null
Parameters
Name | Description |
---|---|
|
|
Returns
import('react/jsx-runtime').JSX.Element | null
References
getDefaultProps()
Public method
Signature
getDefaultProps(): TLEmbedShape['props']
References
indicator()
Public method
Signature
indicator(shape: TLEmbedShape): import('react/jsx-runtime').JSX.Element
Parameters
Name | Description |
---|---|
|
|
Returns
import('react/jsx-runtime').JSX.Element
References