LeadLabelConfig

类:引线标签配置项

Constructor

new Glodon.Bimface.Plugins.Drawable.LeadLabelConfig()

构造引线标签配置项

Members

NameTypeDescription
draggableBoolean

是否开启拖拽

enableDepthTestBoolean

是否开启深度检测,开启后可监听标签的遮挡状态变化事件,默认为false。适用于Viewer3D、ViewerGIS。

heightNumber

引线标签高度,单位px,默认为26px

idString

外部标签ID

layerIdString

图层ID,仅在ViewerGIS下生效

modelIdString

模型ID,仅在Viewer3D下生效

objectIdString

绑定的构件ID

offsetObject

引线折点的相对位置,默认值为{x:27,y:-47}

styleObject

引线标签样式。 可以设置引线标签颜色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}

textString

引线标签的内容

tooltipString

标签的提示内容

tooltipStyleObject

标签的提示样式

visibleDistanceNumber

可见距离,单位同场景单位,当相机与标签的距离小于可见距离时才会显示标签,默认为空,即不限制距离,适用于Viewer3D、ViewerGIS。

widthNumber

引线标签宽度,单位px,默认为140px

worldPositionGlodon.Web.Geometry.Point3d

外部标签坐标,图纸中{x:,y:},模型中{x:,y:,z}