(private) new xrx.viewbox.ViewboxGeometry()
A class implementing geometry related functions for a drawing view-box.
Members
-
(private) xrx.viewbox.ViewboxGeometry#FixPoints_
Methods
-
(private) xrx.viewbox.ViewboxGeometry#containsPoint(point)
-
Whether a point is contained in this view-box.
Parameters:
Name Type Description point
Array.<number> The native point, without translation. -
xrx.viewbox.ViewboxGeometry#disposeInternal()
-
Disposes this view-box.++
-
(private) xrx.viewbox.ViewboxGeometry#getBox() → {goog.math.Box}
-
Returns the bounding-box for this view-box, respecting transformation.
Returns:
The bounding box, coordinates are the visibles and are transformed.- Type
- goog.math.Box
-
(private) xrx.viewbox.ViewboxGeometry#getCenterPoint_()
-
(private) xrx.viewbox.ViewboxGeometry#getFixPoint_()
-
(private) xrx.viewbox.ViewboxGeometry#getFixPoints_()
-
(private) xrx.viewbox.ViewboxGeometry#getHeight(opt_transformed, opt_visible) → {number}
-
Returns the height of this view-box, optionally the transformed height (respecting the current scale) and / or the visible height (respecting the current rotation).
Parameters:
Name Type Description opt_transformed
boolean Whether to return the transformed height respecting the current scale. opt_visible
boolean Whether to return the visible height respecting the current rotation. Returns:
The height.- Type
- number
-
(private) xrx.viewbox.ViewboxGeometry#getVisibleOrientation_()
-
(private) xrx.viewbox.ViewboxGeometry#getWidth(opt_transformed, opt_visible) → {number}
-
Returns the width of this view-box, optionally the transformed width (respecting the current scale) and / or the visible width (respecting the current rotation).
Parameters:
Name Type Description opt_transformed
boolean Whether to return the transformed width respecting the current scale. opt_visible
boolean Whether to return the visible width respecting the current rotation. Returns:
The width.- Type
- number