This commit is contained in:
zh
2025-09-24 17:58:22 +08:00
parent 783de5cb7a
commit ad305ae16f
6 changed files with 94 additions and 438 deletions

View File

@ -796,6 +796,10 @@ class Spout extends Base {
this.event.mouse_right(() => { })
this.event.gesture_pinck_start(() => { })
this.event.gesture_pinck_end(() => { })
if(this._positionEditingCallback) {
this._positionEditingCallback()
this._positionEditingCallback = null
}
this.positionEditing = false
})
this.event.mouse_right((movement, cartesian) => {
@ -871,6 +875,14 @@ class Spout extends Base {
get positionEditing() {
return this.operate.positionEditing
}
openPositionEditing(cd) {
this.positionEditing = true
this._positionEditingCallback = cd
}
closePositionEditing() {
this.positionEditing = false
this._positionEditingCallback = null
}
static EventBinding(that, elements) {
for (let i = 0; i < elements.length; i++) {