Optional
__staticOptional
appendIf true
, appends the canvas to the container
. Ignored if container
is null
.
Optional
autoIf true
, video elements will automatically render on each frame update.
Optional
containerParent element used to determine canvas size. If null
, it uses the viewport.
The media element to be rendered. Accepts a Canvas instance or common media elements like images and videos.
Optional
resizeDebounce time (ms) for resize handling.
Optional
resizeAutomatically adjusts canvas size on initialization.
Optional
resizeEnables dynamic resizing based on viewport or container changes.
Optional
viewportDefines which dimension(s) should trigger a resize.
Static properties for the CanvasMedia class.