@mocanvas/mocanvas · class

VideoShapeUtil

declare class VideoShapeUtil extends BaseBoxShapeUtil<VideoShape>

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Methods · 7

canEdit(_shape: VideoShape): boolean

Editing a video means taking its controls, not typing into it.

component(shape: VideoShape): ReactNode
getDefaultProps(): VideoShapeProps
getGeometry(shape: VideoShape): Geometry2d
getIndicatorPath(shape: VideoShape): Path2D
getRenderStyle(_shape: VideoShape): StyleWords | null

A moving picture is not a texture the engine owns: video renders in the DOM overlay.

isAspectRatioLocked(_shape: VideoShape): boolean

Properties · 5

static migrations: _mocanvas_editor.PropsMigrations
static options: VideoShapeOptions
readonly options: VideoShapeOptions
static props: _mocanvas_editor.RecordProps<VideoShape>
static type: "video"

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.