Class: xrx.viewbox.ViewboxGeometry

xrx.viewbox. ViewboxGeometry

(private) new xrx.viewbox.ViewboxGeometry()

A class implementing geometry related functions for a drawing view-box.
Source:

Members

(private) xrx.viewbox.ViewboxGeometry#FixPoints_

Source:

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.
Source:

xrx.viewbox.ViewboxGeometry#disposeInternal()

Disposes this view-box.++
Source:

(private) xrx.viewbox.ViewboxGeometry#getBox() → {goog.math.Box}

Returns the bounding-box for this view-box, respecting transformation.
Source:
Returns:
The bounding box, coordinates are the visibles and are transformed.
Type
goog.math.Box

(private) xrx.viewbox.ViewboxGeometry#getCenterPoint_()

Source:

(private) xrx.viewbox.ViewboxGeometry#getFixPoint_()

Source:

(private) xrx.viewbox.ViewboxGeometry#getFixPoints_()

Source:

(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.
Source:
Returns:
The height.
Type
number

(private) xrx.viewbox.ViewboxGeometry#getVisibleOrientation_()

Source:

(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.
Source:
Returns:
The width.
Type
number