Canvas state variables represent HTML canvas outputs
The value of a Canvas state variable is a function with the following signature:
canvasFn (node)
where node is a DOM <canvas> element. The state variable is considered changed every time it is assigned. Once changed, every Component rendering the state variable will call the function with the Component's <canvas> node. The function can then extract a drawing context and query any node size properties.
'canvas', class: CanvasSvCmpctl.createPage({
...,
stateVarInfo:[
{type:'canvas', ...},
],
})
infoinfo object can contain the following properties, but subclasses of StateVar may have additional properties:
Note: The component() method returns a CanvasSvCmp.
<canvas> element.'svIo_booleanInput'