(private) new xrx.svg.Canvas(element)
SVG rendering class representing a canvas.
Parameters:
Name | Type | Description |
---|---|---|
element |
SVGElement | The SVG element. |
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
-
xrx.svg.Canvas#width_ :number
-
The canvas width.
Type:
- number
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. -
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.
Returns:
The event target element.- Type
- SVGElement
-
xrx.svg.Canvas#getHeight() → {number}
-
Returns the height of the canvas.
Returns:
The height.- Type
- number
-
xrx.svg.Canvas#getWidth() → {number}
-
Returns the width of the canvas.
Returns:
The width.- Type
- number
-
xrx.svg.Canvas#setHeight(width)
-
Sets the height of the canvas.
Parameters:
Name Type Description width
number the height. -
xrx.svg.Canvas#setWidth(width)
-
Sets the width of the canvas.
Parameters:
Name Type Description width
number the width.