继承 DOMElement
View
模块 hilo/view/DOMElement
依赖
hilo/core/Hilo, hilo/core/Class, hilo/view/View, hilo/view/Drawable
源码
DOMElement.js
DOMElement是dom元素的包装。( 注意:DOMElement 的父容器必须是 stage )
使用示例:
var domView = new Hilo.DOMElement({
element: Hilo.createElement('div', {
style: {
backgroundColor: '#004eff',
position: 'absolute'
}
}),
width: 100,
height: 100,
x: 50,
y: 70
}).addTo(stage);
| 属性 | 定义于 |
|---|
| 方法 | 定义于 | |
|---|---|---|
|
DOMElement(properties:Object)
构造函数
|
DOMElement |