Optional
__fixOptional
containerThe parent element of the canvas, used to calculate the canvas size.
If set to false
, the canvas size will be based on the Window
object.
false
Optional
hasResizes the canvas during initialization.
true
Optional
hasEnables updating the canvas size when the window is resized.
false
The media element to be rendered.
It can be an instance of Ctx2D
or a source object like an HTMLImageElement
or HTMLVideoElement
.
Optional
resizeThe debounce time (in milliseconds) for the resize event.
0
Optional
shouldDetermines whether the canvas element should be appended to the parent element.
true
Optional
viewportThe target for the viewport resize event.
'any'
Static properties for a component. These properties remain constant throughout the lifecycle of the component. This interface extends IStaticProps, inheriting the static properties defined for modules.