Constructor
new HtmlDomPlugin()
Methods
addLabel(options)
    根据Dom创建标签,返回id
    Parameters:
| Name | Type | Description | 
|---|---|---|
| options | object | 
Example
{
     id:Number 标签对象的ID,可以通过该ID来删除标签 
     dom:dom对象或者是html文本 
     position:位置 BIMI.THREE.Vector3,该dom的中心点将置于position 
     offset:[x,y] dom位置偏移像素,默认是[0,0] 
     bindData:object 业务绑定数据 
     distance:Number 视距 
}getLabel(id)
    获得某个Label对象
    Parameters:
| Name | Type | Description | 
|---|---|---|
| id | * | label id | 
getLabelDom(id)
    获得id对应的dom对象,可以拿到dom后执行一些动态处理
    Parameters:
| Name | Type | Description | 
|---|---|---|
| id | Number | 
removeAll()
    清除所有
removeLabel(id)
    移除某个标签
    Parameters:
| Name | Type | Description | 
|---|---|---|
| id | * | 
setClusterLimit(limit)
    设置标签聚合的像素距离阀值
    Parameters:
| Name | Type | Default | Description | 
|---|---|---|---|
| limit | * | 100 | 
setVisible(id, visible)
    设置某个Dom可见性
    Parameters:
| Name | Type | Description | 
|---|---|---|
| id | Number | 对象id | 
| visible | Boolean | 可见性 | 
updateContent(id, options)
    修改既有Label的内容dom
    Parameters:
| Name | Type | Description | 
|---|---|---|
| id | * | lable id | 
| options | * | 
Example
数据定义
{
     dom: 内容dom,可以是dom对象或html文本
}updatePosition(id, position)
    修改既有Label的位置
    Parameters:
| Name | Type | Description | 
|---|---|---|
| id | * | lable id | 
| position | * | 位置,BIMI.THREE.Vector3 |