This the graphics rendering bridge for W3C Canvas compliant browsers which extends the basic canvas drawing renderer bridge to add additional support for graphics events on Shapes. Since Canvas is an immediate mode graphics api, with no object graph or eventing capabilities, use of the canvas module alone will only add in drawing support. This additional module, canvasWithEvents extends this module with additional support for handling events on Canvas. By default, the support for events is now included however, if only drawing capabilities are needed, canvas event module can be disabled using the dojoConfig option, canvasEvents:true|false.
See the dojox/gfx/canvasWithEvents reference documentation for more information.
creates a surface (Canvas)
Parameter | Type | Description |
---|---|---|
parentNode | Node | a parent node |
width | String | width of surface, e.g., "100px" |
height | String | height of surface, e.g., "100px" |