LeadLabelConfig
类:引线标签配置项
Constructor
new Glodon.Bimface.Plugins.Drawable.LeadLabelConfig()
构造引线标签配置项
Members
| Name | Type | Description |
|---|---|---|
| draggable | Boolean | 是否开启拖拽 |
| enableDepthTest | Boolean | 是否开启深度检测,开启后可监听标签的遮挡状态变化事件,默认为false。适用于Viewer3D、ViewerGIS。 |
| height | Number | 引线标签高度,单位px,默认为26px |
| id | String | 外部标签ID |
| layerId | String | 图层ID,仅在ViewerGIS下生效 |
| modelId | String | 模型ID,仅在Viewer3D下生效 |
| objectId | String | 绑定的构件ID |
| offset | Object | 引线折点的相对位置,默认值为{x:27,y:-47} |
| style | Object | 引线标签样式。 可以设置引线标签颜色lineColor,引线标签文字显示框背景颜色backgroundColor,引线标签线宽lineWidth,引线标签字体大小fontSize, 例如:{"lineColor":new Glodon.Web.Graphics.Color(0, 0, 0, 1), "backgroundColor":new Glodon.Web.Graphics.Color(255, 255, 255, 1), "fontSize":10, "lineWidth":1} |
| text | String | 引线标签的内容 |
| tooltip | String | 标签的提示内容 |
| tooltipStyle | Object | 标签的提示样式 |
| visibleDistance | Number | 可见距离,单位同场景单位,当相机与标签的距离小于可见距离时才会显示标签,默认为空,即不限制距离,适用于Viewer3D、ViewerGIS。 |
| width | Number | 引线标签宽度,单位px,默认为140px |
| worldPosition | Glodon.Web.Geometry.Point3d | 外部标签坐标,图纸中{x:,y:},模型中{x:,y:,z} |