(private) new xrx.vml.Canvas()
VML rendering class representing a canvas.
Parameters:
Type | Description |
---|---|
Extends
Members
-
xrx.vml.Canvas#element_
-
- Inherited From:
- Source:
-
xrx.vml.Canvas#height_ :number
-
The canvas height.
Type:
- number
-
xrx.vml.Canvas#width_ :number
-
The canvas width.
Type:
- number
Methods
-
(static) xrx.vml.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.vml.Canvas#getElement() → {HTMLElement}
-
Returns the HTML element held by the Raphael object.
- Inherited From:
- Source:
Returns:
The HTML element.- Type
- HTMLElement
-
xrx.vml.Canvas#getEventTarget() → {Object}
-
Returns the root element of this canvas to be used as the event target.
Returns:
The event target element.- Type
- Object
-
xrx.vml.Canvas#getHeight() → {number}
-
Returns the height of the canvas.
Returns:
The height.- Type
- number
-
xrx.vml.Canvas#getWidth() → {number}
-
Returns the width of the canvas.
Returns:
The width.- Type
- number
-
xrx.vml.Canvas#setHeight(width)
-
Sets the height of the canvas.
Parameters:
Name Type Description width
number the height. -
xrx.vml.Canvas#setWidth(width)
-
Sets the width of the canvas.
Parameters:
Name Type Description width
number the width.