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
canUnmount
Public property
Signature
canUnmount: TLShapeUtilFlag<TLEmbedShape>
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').Migrations
References
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
type
Public static property
Signature
static type: 'embed'
Methods
component()
Public method
Signature
component(shape: TLEmbedShape): import('react/jsx-runtime').JSX.Element
Parameters
Name | Description |
---|---|
|
|
Returns
import('react/jsx-runtime').JSX.Element
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