@univerjs/sheets-ui 0.6.7-experimental.20250326-6499c07 → 0.6.7-experimental.20250328-21e0bec

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -263,6 +263,7 @@ class lC {
263
263
  _(this, "_relativeSelectionColumnLength", 0);
264
264
  _(this, "_scenePointerMoveSub");
265
265
  _(this, "_scenePointerUpSub");
266
+ _(this, "_disabled", !1);
266
267
  /**
267
268
  * The shadow selection under cursor when move whole selection control(for moving normal selection)
268
269
  */
@@ -297,6 +298,9 @@ class lC {
297
298
  var e, t;
298
299
  (e = this._scrollTimer) == null || e.dispose(), this._fillControlColors = [], this._clearObserverEvent(), (t = this._helperSelection) == null || t.dispose();
299
300
  }
301
+ setDisabled(e) {
302
+ this._disabled = e;
303
+ }
300
304
  _getFreeze() {
301
305
  var t, n;
302
306
  return (n = (t = hd(
@@ -402,6 +406,8 @@ class lC {
402
406
  const I = i.getViewport(U.VIEW_MAIN), y = ri.create(i);
403
407
  this._scrollTimer = y, y.startScroll(s, l, I), i.disableObjectsEvent(), this._scenePointerMoveSub = i.onPointerMove$.subscribeEvent((M) => {
404
408
  var O;
409
+ if (this._disabled)
410
+ return;
405
411
  const { offsetX: P, offsetY: E } = M;
406
412
  if (((O = this._injector.get(lt, uc.OPTIONAL)) == null ? void 0 : O.interceptor.fetchThroughInterceptors(Ec)(!1, null)) === !1)
407
413
  return;
@@ -1013,6 +1019,9 @@ class Ld extends ae {
1013
1019
  setControlExtension(t) {
1014
1020
  this._controlExtension = new lC(this, t);
1015
1021
  }
1022
+ setControlExtensionDisable(t) {
1023
+ this._controlExtension && this._controlExtension.setDisabled(t);
1024
+ }
1016
1025
  setEvent(t) {
1017
1026
  this.leftControl.evented = t, this.rightControl.evented = t, this.topControl.evented = t, this.bottomControl.evented = t;
1018
1027
  }