graphics.js
No description.

File Location

/goog/graphics/graphics.js


Public Protected Private

Global Functions

goog.graphics.createGraphics(widthheightopt_coordWidthopt_coordHeightopt_domHelper) !goog.graphics.AbstractGraphics
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. Returns an instance of goog.graphics.AbstractGraphics that knows how to draw for the current platform (A factory for the proper Graphics implementation)
Arguments:
width : string | number
The width in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.
height : string | number
The height in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.
opt_coordWidth : ?number=
The optional coordinate width - if omitted or null, defaults to same as width.
opt_coordHeight : ?number=
The optional coordinate height - if omitted or null, defaults to same as height.
opt_domHelper : goog.dom.DomHelper=
The DOM helper object for the document we want to render in.
Returns: !goog.graphics.AbstractGraphics  The created instance.
code »
goog.graphics.createSimpleGraphics(widthheightopt_coordWidthopt_coordHeightopt_domHelper) !goog.graphics.AbstractGraphics
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. Returns an instance of goog.graphics.AbstractGraphics that knows how to draw for the current platform (A factory for the proper Graphics implementation)
Arguments:
width : string | number
The width in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.
height : string | number
The height in pixels. Strings expressing percentages of parent with (e.g. '80%') are also accepted.
opt_coordWidth : ?number=
The optional coordinate width, defaults to same as width.
opt_coordHeight : ?number=
The optional coordinate height, defaults to same as height.
opt_domHelper : goog.dom.DomHelper=
The DOM helper object for the document we want to render in.
Returns: !goog.graphics.AbstractGraphics  The created instance.
code »
goog.graphics.isBrowserSupported() boolean
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. Static function to check if the current browser has Graphics support.
Returns: boolean  True if the current browser has Graphics support.
code »

Directory graphics

File Reference