search

goog.graphics.CanvasGraphics

Provided By
Extends
All Implemented Interfaces
warning Deprecated

goog.graphics is deprecated. It existed to abstract over browser differences before the canvas tag was widely supported. See http://en.wikipedia.org/wiki/Canvas_element for details.

A Graphics implementation for drawing using canvas.

new CanvasGraphics( width, height, opt_coordWidth, opt_coordHeight, opt_domHelper )

Parameters
width(string|number)

The (non-zero) width in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.

height(string|number)

The (non-zero) height in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.

opt_coordWidth(number|null)=

The coordinate width - if omitted or null, defaults to same as width.

opt_coordHeight(number|null)=

The coordinate height - if omitted or null, defaults to same as height.

opt_domHelper(goog.dom.DomHelper|null)=

The DOM helper object for the document we want to render in.

Instance Methods

Instance Properties