Merge branch 'develop' of http://xny.yj-3d.com:3000/zh/sdk4.0 into develop

This commit is contained in:
zh
2025-08-26 21:03:40 +08:00
2 changed files with 13 additions and 4 deletions

View File

@ -33,7 +33,7 @@ class TextBox extends Base {
this.callback = callback
// syncData(this.sdk, this.options.id)
syncData(this.sdk, this.options.id)
}
@ -134,15 +134,17 @@ class TextBox extends Base {
}
async getwords(words) {
this.options.text = words
this.callback(this.options)
let { sdkP } = getSdk()
if (this.sdk === sdkP && sdkP) {//三维
this.callback(this.options)
syncData(this.sdk, this.options.id)
}
else if (sdkP) {//二维
sdkP.entityMap.get(this.options.id).text = words
sdkP.entityMap.get(this.options.id).twoToThree(this.options.position)
} else if (!sdkP) {
this.callback(this.options)
syncData(this.sdk, this.options.id)
}
}
@ -283,6 +285,7 @@ class TextBox extends Base {
this.sdk.viewer.cesiumWidget.container.removeChild(this.textDom);
}
await this.sdk.removeIncetance(this.options.id)
syncData(this.sdk, this.options.id)
}
flicker() { }