Skip to content

textmode.js / plugins / TextmodeCanvasHandle

Interface: TextmodeCanvasHandle

Stable read-only canvas handle exposed to plugins.

Properties

PropertyModifierTypeDescription
canvasreadonlyHTMLCanvasElementThe DOM canvas used for textmode rendering.
heightreadonlynumberCurrent canvas height in device pixels.
ownsContextreadonlybooleanWhether textmode owns the WebGL context lifecycle.
targetCanvasreadonlynull | HTMLCanvasElement | HTMLVideoElementThe overlay target, when textmode is running in overlay mode.
widthreadonlynumberCurrent canvas width in device pixels.