The goog.graphics.ext.coordinates Namespace

.computeValue(coord, size, scale)

Returns the value of the given expression in the given context. Should be treated as package scope.

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.

.getValue(coord, forMaximum, containerSize, scale, opt_cache)

Converts the given coordinate to a number value in units. Should be treated as package scope.

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.

.isSpecial(coord)

Determines if the given coordinate is special - i.e. not just a number.

coord {string|number|null}
The coordinate to test.
returns {boolean}
Whether the coordinate is special.