Linear

类:线性标注

Constructor

new Glodon.Bimface.Plugins.Dimension.Linear(linearConfig)

构造尺寸标注容器

Parameters:
NameTypeDescription
linearConfigGlodon.Bimface.Plugins.Dimension.LinearConfig

线性标注配置项

Methods

getItemId()

获取线性标注ID

Returns:
TypeDescription
String

线性标注ID

hide()

隐藏尺寸标注

setContent(content)

设置线性标注信息

Parameters:
NameTypeDescription
contentObject

线性标注数据,数据结构如下,若标注为文字可填入text字段,若不设文字可不填该字段,或者该字段值填null:{ dimension: { distance: 12300, text: "线性标注", type: "Distance", styleType: "Linear", unit: "Millimeter", points: [{ x: -77, y: -29, z: 70 }, { x: -68, y: -38, z: 70 }]}}

show()

显示尺寸标注