This commit is contained in:
zh
2025-07-18 14:23:45 +08:00
2 changed files with 21 additions and 9 deletions

View File

@ -139,6 +139,7 @@ class FlowLine extends Base {
//创建线 //创建线
that.viewer.entities.add({ that.viewer.entities.add({
parent: celiangEntity, parent: celiangEntity,
id: that.options.id + '-' + new Date().getTime() + index,
polyline: { polyline: {
positions: [start, end], positions: [start, end],
width: that.options.width, width: that.options.width,
@ -215,6 +216,17 @@ class FlowLine extends Base {
this.getLine(this, this.positions) this.getLine(this, this.positions)
} }
} }
get show() {
return this.options.show
}
set show(v) {
this.options.show = v
let entity = this.viewer.entities.getById(this.options.id)
if (entity) {
entity.show = v
}
}
get heightDifference() { get heightDifference() {
return this.options.heightDifference return this.options.heightDifference