MiniTag
类:小地图标签
Constructor
new Glodon.Bimface.Plugins.Drawable.MiniTag(miniTagConfig)
构造小地图标签
Parameters:
Name | Type | Description |
---|---|---|
miniTagConfig | Glodon.Bimface.Plugins.Drawable.MiniTagConfig | 小地图标签的配置项 |
Methods
getFloorList()
获取小地图标签所在的楼层列表
Returns:
Type | Description |
---|---|
Array | 小地图标签所在的楼层列表 |
getHeight()
获取小地图标签的图片高度
Returns:
Type | Description |
---|---|
Number | 小地图标签的图片高度 |
getObjectId()
获取小地图标签所关联构件的ID
Returns:
Type | Description |
---|---|
String | 小地图标签所关联构件的ID |
getSrc()
获取小地图标签的路径
Returns:
Type | Description |
---|---|
String | 小地图标签的路径 |
getWidth()
获取小地图标签的图片宽度
Returns:
Type | Description |
---|---|
Number | 小地图标签的图片宽度 |
getWorldPosition()
获取外部标签的位置坐标
Returns:
Type | Description |
---|---|
Glodon.Web.Geometry.Point3d | 外部标签的位置坐标 |
hide()
隐藏外部标签
onClick(callback)
设置左键点击事件
Parameters:
Name | Type | Description |
---|---|---|
callback | Function | 回调函数 |
onDoubleClick(callback)
设置双击事件的回调函数
Parameters:
Name | Type | Description |
---|---|---|
callback | Function | 回调函数 |
onEndDrag(callback)
设置拖拽事件
Parameters:
Name | Type | Description |
---|---|---|
callback | Function | 回调函数 |
onRightClick(callback)
设置右键点击事件
Parameters:
Name | Type | Description |
---|---|---|
callback | Function | 回调函数 |
setFloorList(floorList)
设置小地图标签所在的楼层列表
Parameters:
Name | Type | Description |
---|---|---|
floorList | Array | 小地图标签所在的楼层列表 |
setHeight(height)
设置小地图标签的图片高度
Parameters:
Name | Type | Description |
---|---|---|
height | Number | 小地图标签的图片高度 |
setObjectId(objectId)
设置小地图标签所关联构件的ID
Parameters:
Name | Type | Description |
---|---|---|
objectId | String | 小地图标签所关联构件的ID |
setSrc(src)
设置小地图标签的路径
Parameters:
Name | Type | Description |
---|---|---|
src | String | 小地图标签的路径 |
setWidth(width)
设置小地图标签的图片宽度
Parameters:
Name | Type | Description |
---|---|---|
width | Number | 小地图标签的图片宽度 |
setWorldPosition(position)
设置外部标签的位置坐标
Parameters:
Name | Type | Description |
---|---|---|
position | Glodon.Web.Geometry.Point3d | 外部标签的位置坐标 |
show()
显示外部标签