VideoShapeUtil
Table of contents
Public class
Signature
class VideoShapeUtil extends BaseBoxShapeUtil<TLVideoShape> {}
References
BaseBoxShapeUtil, TLVideoShape
Source
packages/tldraw/src/lib/shapes/video/VideoShapeUtil.tsx
Properties
canEdit
Public property
Signature
canEdit: () => boolean
isAspectRatioLocked
Public property
Signature
isAspectRatioLocked: () => boolean
migrations
Public static property
Signature
static migrations: import('@tldraw/editor').TLShapePropsMigrations
References
props
Public static property
Signature
static props: {
  assetId: import('@tldraw/editor').Validator<
    import('@tldraw/editor').TLAssetId | null
  >
  h: import('@tldraw/editor').Validator<number>
  playing: import('@tldraw/editor').Validator<boolean>
  time: 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: 'video'
Methods
component()
Public method
Signature
component(shape: TLVideoShape): import('react/jsx-runtime').JSX.Element
Parameters
| Name | Description | 
|---|---|
  |  | 
Returns
import('react/jsx-runtime').JSX.Element
References
getDefaultProps()
Public method
Signature
getDefaultProps(): TLVideoShape['props']
References
indicator()
Public method
Signature
indicator(shape: TLVideoShape): import('react/jsx-runtime').JSX.Element
Parameters
| Name | Description | 
|---|---|
  |  | 
Returns
import('react/jsx-runtime').JSX.Element
References
toSvg()
Public method
Signature
toSvg(shape: TLVideoShape): import('react/jsx-runtime').JSX.Element
Parameters
| Name | Description | 
|---|---|
  |  | 
Returns
import('react/jsx-runtime').JSX.Element
References

