This commit is contained in:
2025-08-26 14:27:41 +08:00
parent 0c4c956868
commit f5d915bd58
3 changed files with 13 additions and 4 deletions

View File

@ -2,6 +2,7 @@
* 文本框
*/
import Base from "../index";
import { syncData } from '../../../Global/MultiViewportMode'
import { setActiveViewer, closeRotateAround, closeViewFollow } from '../../../Global/global'
class TextBox extends Base {
/**
@ -30,6 +31,9 @@ class TextBox extends Base {
this.create(this)
this.sdk.addIncetance(this.options.id, this)
this.callback = callback
// syncData(this.sdk, this.options.id)
}
get type() {
@ -129,6 +133,7 @@ class TextBox extends Base {
async getwords(words) {
this.options.text = words
this.callback(this.options)
syncData(this.sdk, this.options.id)
}
async returnFun() {
return this.handler
@ -149,6 +154,7 @@ class TextBox extends Base {
set show(v) {
this.options.show = v
this.textDom && (this.textDom.style.display = v ? 'block' : 'none');
// syncData(this.sdk, this.options.id)
}
get position() {
return this.options.position