Class: xrx.canvas.Element

xrx.canvas. Element

(private) new xrx.canvas.Element(canvas)

Canvas super class.
Parameters:
Name Type Description
canvas xrx.canvas.Canvas The parent canvas object.
Source:

Members

xrx.canvas.Element#canvas_ :xrx.canvas.Canvas

The parent canvas object.
Type:
Source:

xrx.canvas.Element#context_ :CanvasRenderingContext2D

The rendering context.
Type:
  • CanvasRenderingContext2D
Source:

Methods

xrx.canvas.Element#applyTransform(matrix)

Applies a transformation matrix on this element.
Parameters:
Name Type Description
matrix goog.math.AffineTransform The transformation matrix.
Source:

xrx.canvas.Element#getCanvas() → {xrx.canvas.Canvas}

Returns the parent canvas object.
Source:
Returns:
The parent canvas object.
Type
xrx.canvas.Canvas

xrx.canvas.Element#getContext() → {CanvasRenderingContext2D}

Returns the HTML canvas rendering context.
Source:
Returns:
The rendering context.
Type
CanvasRenderingContext2D