Class: xrx.svg.Canvas

xrx.svg. Canvas

(private) new xrx.svg.Canvas(element)

SVG rendering class representing a canvas.
Parameters:
Name Type Description
element SVGElement The SVG element.
Source:

Extends

Members

xrx.svg.Canvas#element_ :SVGElement

The SVG element.
Type:
  • SVGElement
Inherited From:
Source:

xrx.svg.Canvas#height_ :number

The canvas height.
Type:
  • number
Source:

xrx.svg.Canvas#width_ :number

The canvas width.
Type:
  • number
Source:

Methods

(static) xrx.svg.Canvas.create(parent)

Creates a new canvas.
Parameters:
Name Type Description
parent HTMLElement The parent HTML element to which the canvas shall be appended.
Source:

xrx.svg.Canvas#getElement() → {SVGElement}

Returns the SVG element.
Inherited From:
Source:
Returns:
The SVG element.
Type
SVGElement

xrx.svg.Canvas#getEventTarget() → {SVGElement}

Returns the root element of this canvas to be used as the event target.
Source:
Returns:
The event target element.
Type
SVGElement

xrx.svg.Canvas#getHeight() → {number}

Returns the height of the canvas.
Source:
Returns:
The height.
Type
number

xrx.svg.Canvas#getWidth() → {number}

Returns the width of the canvas.
Source:
Returns:
The width.
Type
number

xrx.svg.Canvas#setHeight(width)

Sets the height of the canvas.
Parameters:
Name Type Description
width number the height.
Source:

xrx.svg.Canvas#setWidth(width)

Sets the width of the canvas.
Parameters:
Name Type Description
width number the width.
Source: