HtmlPlane
小于 1 分钟
HtmlPlane
继承自Plane,拥有Plane
、Thing
、THREE.Object3D
一切属性和方法。
构造器
new VT.HtmlPlane({
name: "HtmlPlane",
rotation: [0, 0, 0],
border: 10,
geometry: {
width: 0,
height: 0,
},
material: {
color: "#000000",
side: 2,
}
});
属性成员
isHtmlPlane
- 类型:
{Boolean}
是否HtmlPlane对象,是,不可修改
type
- 类型:
{String}
HtmlPlane,不可修改
element
- 类型:
{HTMLElement}
element,HTMLElement类型
cssObject
- 类型:
{THREE.CSS3DObject}
CSS3DObject 渲染实例
方法
createHtml
创建并添加HTMLElement对象
- createHtml(element)
- 类型:
Function
- 参数:
- element
HTMLElement
HTMLElement 节点
- element
- 返回:无