(private) new xrx.canvas.Element(canvas)
Canvas super class.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
xrx.canvas.Canvas | The parent canvas object. |
Members
-
xrx.canvas.Element#canvas_ :xrx.canvas.Canvas
-
The parent canvas object.
Type:
-
xrx.canvas.Element#context_ :CanvasRenderingContext2D
-
The rendering context.
Type:
- CanvasRenderingContext2D
Methods
-
xrx.canvas.Element#applyTransform(matrix)
-
Applies a transformation matrix on this element.
Parameters:
Name Type Description matrix
goog.math.AffineTransform The transformation matrix. -
xrx.canvas.Element#getCanvas() → {xrx.canvas.Canvas}
-
Returns the parent canvas object.
Returns:
The parent canvas object.- Type
- xrx.canvas.Canvas
-
xrx.canvas.Element#getContext() → {CanvasRenderingContext2D}
-
Returns the HTML canvas rendering context.
Returns:
The rendering context.- Type
- CanvasRenderingContext2D