Class: xrx.canvas.Stylable

xrx.canvas. Stylable

(private) new xrx.canvas.Stylable(canvas)

Canvas class representing a stylable element.
Parameters:
Name Type Description
canvas HTMLCanvasElement The parent canvas element.
Source:

Extends

Members

xrx.canvas.Stylable#canvas_ :xrx.canvas.Canvas

The parent canvas object.
Type:
Inherited From:
Source:

xrx.canvas.Stylable#context_ :CanvasRenderingContext2D

The rendering context.
Type:
  • CanvasRenderingContext2D
Inherited From:
Source:

Methods

xrx.canvas.Stylable#applyTransform(matrix)

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

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

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

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

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

(private) xrx.canvas.Stylable#strokeAndFill_()

Source: