Class enchant.CanvasLayer
Class that uses the HTML Canvas for rendering. The rendering of children will be replaced by the Canvas rendering.
- Defined in: enchant.js
- Extends enchant.Group
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
The height of the CanvasLayer.
|
|
The width of the CanvasLayer.
|
- Fields borrowed from class enchant.Group:
- childNodes, firstChild, lastChild, originX, originY, rotation, scaleX, scaleY
- Fields borrowed from class enchant.Node:
- age, parentNode, scene, x, y
Method Summary
- Methods borrowed from class enchant.Group:
- addChild
- insertBefore
- removeChild
- Methods borrowed from class enchant.Node:
- moveBy
- moveTo
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
Class Detail
enchant.CanvasLayer()
Field Detail
{Number}
height
The height of the CanvasLayer.
{Number}
width
The width of the CanvasLayer.