Converts the given coordinate to a number value in units.
Should be treated as package scope.
Parameters | 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|null)= | | 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.
|
|
---|