vmlgraphics.js
No description.

File Location

/goog/graphics/vmlgraphics.js

Classes

goog.graphics.VmlGraphics
A Graphics implementation for drawing using VML.

Public Protected Private

Global Functions

goog.graphics.VmlGraphics.getVmlPath(path) string
Returns a string representation of a logical path suitable for use in a VML element.
Arguments:
path : goog.graphics.Path
The logical path.
Returns: string  The VML path representation.
code »
goog.graphics.VmlGraphics.setAttribute(elementnamevalue)
Sets an attribute on the given VML element, in the way best suited to the current version of IE. Should only be used in the goog.graphics package.
Arguments:
element : Element
The element to set an attribute on.
name : string
The name of the attribute to set.
value : string
The value to set it to.
code »
goog.graphics.VmlGraphics.setPositionAndSize(elementlefttopwidthheight)
Set top, left, width and height for an element. This function is internal for the VML supporting classes, and should not be used externally.
Arguments:
element : Element
DOM element.
left : number
Left ccordinate in pixels.
top : number
Top ccordinate in pixels.
width : number
Width in pixels.
height : number
Height in pixels.
code »
goog.graphics.VmlGraphics.toCssSize(size) string
Converts the given size to a css size. If it is a percentage, leaves it alone. Otherwise assumes px.
Arguments:
size : number | string
The size to use.
Returns: string  The position adjusted for COORD_MULTIPLIER.
code »
goog.graphics.VmlGraphics.toPosCoord(number) number
Multiplies positioning coordinates by COORD_MULTIPLIER to allow sub-pixel coordinates. Also adds a half pixel offset to match SVG. This function is internal for the VML supporting classes, and should not be used externally.
Arguments:
number : number | string
A position in pixels.
Returns: number  The position adjusted for COORD_MULTIPLIER.
code »
goog.graphics.VmlGraphics.toPosPx(number) string
Add a "px" suffix to a number of pixels, and multiplies all coordinates by COORD_MULTIPLIER to allow sub-pixel coordinates. This function is internal for the VML supporting classes, and should not be used externally.
Arguments:
number : number | string
A position in pixels.
Returns: string  The position with suffix 'px'.
code »
goog.graphics.VmlGraphics.toSizeCoord(number) number
Multiplies the width or height coordinate by COORD_MULTIPLIER to allow sub-pixel coordinates. This function is internal for the VML supporting classes, and should not be used externally.
Arguments:
number : string | number
A size in units.
Returns: number  The size multiplied by the correct factor.
code »
goog.graphics.VmlGraphics.toSizePx(number) string
Add a "px" suffix to a number of pixels, and multiplies all coordinates by COORD_MULTIPLIER to allow sub-pixel coordinates. This function is internal for the VML supporting classes, and should not be used externally.
Arguments:
number : number | string
A size in pixels.
Returns: string  The size with suffix 'px'.
code »

Global Variables

ex :
No description.
Code »

Directory graphics

File Reference