dojox/gfx/canvas (version 1.10)

Summary

This the graphics rendering bridge for W3C Canvas compliant browsers. Since Canvas is an immediate mode graphics api, with no object graph or eventing capabilities, use of this module alone will only add in drawing support. The 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. The id of the Canvas renderer is 'canvas'. This id can be used when switch Dojo's graphics context between renderer implementations. See dojox/gfx/_base.switchRenderer API.

See the dojox/gfx/canvas reference documentation for more information.

Method Summary

Methods

attachNode()
attachSurface()
Circle()
Defined by dojox/gfx/canvas
createSurface(parentNode,width,height)
Defined by dojox/gfx/canvas

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"

Returns:instance
Ellipse()
Defined by dojox/gfx/canvas
fixTarget(event,gfxElement)
Defined by dojox/gfx/canvas
Parameter Type Description
event undefined
gfxElement undefined
Group()
Defined by dojox/gfx/canvas
Image()
Defined by dojox/gfx/canvas
Line()
Defined by dojox/gfx/canvas
Path()
Defined by dojox/gfx/canvas
Polyline()
Defined by dojox/gfx/canvas
Rect()
Defined by dojox/gfx/canvas
Shape()
Defined by dojox/gfx/canvas
Surface()
Defined by dojox/gfx/canvas
Text()
Defined by dojox/gfx/canvas
TextPath()
Defined by dojox/gfx/canvas
Error in the documentation? Can’t find what you are looking for? Let us know!