graphics.ext.coordinates

Classes


Public Protected Private

Global Functions

goog.graphics.ext.coordinates.computeValue(coordsizescale) number
Returns the value of the given expression in the given context. Should be treated as package scope.
Arguments:
coord : string | number
The coordinate to convert.
size : number
The size of the parent element.
scale : number
The ratio of pixels to units.
Returns: number  The number of coordinate space units that corresponds to this coordinate.
code »
goog.graphics.ext.coordinates.getValue(coordforMaximumcontainerSizescaleopt_cache) number
Converts the given coordinate to a number value in units. Should be treated as package scope.
Arguments:
coord : string | number
The coordinate to retrieve the value for.
forMaximum : boolean | undefined
Whether we are computing the largest value this coordinate would be in a parent of no size. The container size in this case should be set to the size of the current element.
containerSize : number
The unit value of the size of the container of this element. Should be set to the minimum width of this element if forMaximum is true.
scale : number
The ratio of pixels to units.
opt_cache : Object=
Optional (but highly recommend) object to store cached computations in. The calling class should manage clearing out the cache when the scale or containerSize changes.
Returns: number  The correct number of coordinate space units.
code »
goog.graphics.ext.coordinates.isPercent_(coord) boolean
Determines if the given coordinate is a percent based coordinate or an expression with a percent based component.
Arguments:
coord : string
The coordinate to test.
Returns: boolean  Whether the coordinate contains the string '%'.
code »
goog.graphics.ext.coordinates.isPixels_(coord) boolean
Determines if the given coordinate is a pixel based coordinate or an expression with a pixel based component.
Arguments:
coord : string
The coordinate to test.
Returns: boolean  Whether the coordinate contains the string 'px'.
code »
goog.graphics.ext.coordinates.isSpecial(coord) boolean
Determines if the given coordinate is special - i.e. not just a number.
Arguments:
coord : string | number | null
The coordinate to test.
Returns: boolean  Whether the coordinate is special.
code »

Global Properties

goog.graphics.ext.coordinates.specialCoordinateCache_ :
Cache of boolean values. For a given string (key), is it special? (value)
Code »

Package graphics.ext

Package Reference