This commit is contained in:
zh
2025-12-19 12:34:25 +08:00
parent 8025e1c261
commit 5332767287
32 changed files with 330 additions and 45 deletions

View File

@ -1274,15 +1274,8 @@ class WallRealStereoscopic extends Base {
this.labelBackgroundColorStart = this.originalOptions.label.backgroundColor[0]
this.labelBackgroundColorEnd = this.originalOptions.label.backgroundColor[1]
let positions = this.options.positions
let fromDegreesArray = []
let minimumHeights = []
let maximumHeights = []
for (let i = 0; i < positions.length; i++) {
fromDegreesArray.push(positions[i].lng, positions[i].lat, positions[i].alt)
minimumHeights.push(positions[i].alt)
maximumHeights.push(positions[i].alt + this.options.extrudedHeight)
}
syncData(this.sdk, this.options.id)
syncSplitData(this.sdk, this.options.id)
// this.entity.polylineVolume.positions = Cesium.Cartesian3.fromDegreesArrayHeights(fromDegreesArray)
}
@ -1469,6 +1462,7 @@ class WallRealStereoscopic extends Base {
}
}
let rightEvent = (movement, cartesian) => {
that.closeNodeEdit = ()=>{}
if (selectPoint) {
that.options.positions[selectPoint.index] = originalPosition
if (isAdd) {
@ -1489,6 +1483,7 @@ class WallRealStereoscopic extends Base {
that.tip.destroy()
that.material = that.material
}
that.closeNodeEdit = rightEvent
function update(isCallback = false) {
if (that.entity) {
@ -1632,6 +1627,8 @@ class WallRealStereoscopic extends Base {
}
}
closeNodeEdit() {}
update() {
if (this.entity) {
let positions = this.calculatePositions()