@univerjs/engine-render 0.14.0 → 0.15.0-insiders.20251227-dafc157
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/cjs/index.js +1 -1
- package/lib/es/index.js +18 -14
- package/lib/index.js +18 -14
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -57030,17 +57030,21 @@ let Z5 = class extends Z8 {
|
|
|
57030
57030
|
startColumn: 0,
|
|
57031
57031
|
endColumn: i - 1
|
|
57032
57032
|
};
|
|
57033
|
-
const o = Se(t, Math.round(a.top) - this.columnHeaderHeightAndMarginTop), l =
|
|
57034
|
-
|
|
57033
|
+
const o = Se(t, Math.round(a.top) - this.columnHeaderHeightAndMarginTop), l = Math.round(a.bottom) - this.columnHeaderHeightAndMarginTop;
|
|
57034
|
+
let u = Se(t, l);
|
|
57035
|
+
u < n && t[u - 1] === l && (u -= 1);
|
|
57036
|
+
const d = Se(e, Math.round(a.left) - this.rowHeaderWidthAndMarginLeft), c = Math.round(a.right) - this.rowHeaderWidthAndMarginLeft;
|
|
57037
|
+
let g = Se(e, c);
|
|
57038
|
+
return g < i && e[g - 1] === c && (g -= 1), s ? {
|
|
57035
57039
|
startRow: o,
|
|
57036
|
-
endRow:
|
|
57037
|
-
startColumn:
|
|
57038
|
-
endColumn:
|
|
57040
|
+
endRow: u === n - 1 ? u : u - 1,
|
|
57041
|
+
startColumn: d,
|
|
57042
|
+
endColumn: g === i - 1 ? g : g - 1
|
|
57039
57043
|
} : {
|
|
57040
57044
|
startRow: o,
|
|
57041
|
-
endRow:
|
|
57042
|
-
startColumn:
|
|
57043
|
-
endColumn:
|
|
57045
|
+
endRow: u,
|
|
57046
|
+
startColumn: d,
|
|
57047
|
+
endColumn: g
|
|
57044
57048
|
};
|
|
57045
57049
|
}
|
|
57046
57050
|
/**
|
|
@@ -61906,17 +61910,17 @@ const ME = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
|
|
|
61906
61910
|
e.pointerId === void 0 && (e.pointerId = 0), this._clickCount++, this._clickTimeout || (this._clickTimeout = setTimeout(() => {
|
|
61907
61911
|
if (this._clickCount === 1) {
|
|
61908
61912
|
const n = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61909
|
-
!(n
|
|
61913
|
+
!(n != null && n.triggerSingleClick(e)) && this._shouldDispatchEventToScene(n) && this._scene.onPointerDown$.emitEvent(e);
|
|
61910
61914
|
} else this._clickCount;
|
|
61911
61915
|
clearTimeout(this._clickTimeout), this._clickTimeout = null, this._clickCount = 0;
|
|
61912
61916
|
}, 300));
|
|
61913
61917
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61914
|
-
!(a
|
|
61918
|
+
!(a != null && a.triggerClick(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerDown$.emitEvent(e);
|
|
61915
61919
|
}
|
|
61916
61920
|
_onDblClick(e) {
|
|
61917
61921
|
e.pointerId === void 0 && (e.pointerId = 0);
|
|
61918
61922
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61919
|
-
!(a
|
|
61923
|
+
!(a != null && a.triggerDblclick(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerDown$.emitEvent(e);
|
|
61920
61924
|
}
|
|
61921
61925
|
_onPointerEnter(e) {
|
|
61922
61926
|
e.pointerId === void 0 && (e.pointerId = 0), this._currentObject = this._getObjectAtPos(e.offsetX, e.offsetY), this.mouseLeaveEnterHandler(e);
|
|
@@ -61933,12 +61937,12 @@ const ME = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
|
|
|
61933
61937
|
_onPointerDown(e) {
|
|
61934
61938
|
e.pointerId === void 0 && (e.pointerId = 0);
|
|
61935
61939
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61936
|
-
!(a
|
|
61940
|
+
!(a != null && a.triggerPointerDown(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerDown$.emitEvent(e);
|
|
61937
61941
|
}
|
|
61938
61942
|
_onPointerUp(e) {
|
|
61939
61943
|
e.pointerId === void 0 && (e.pointerId = 0);
|
|
61940
61944
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61941
|
-
!(a
|
|
61945
|
+
!(a != null && a.triggerPointerUp(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerUp$.emitEvent(e), this._prePointerDoubleOrTripleClick(e);
|
|
61942
61946
|
}
|
|
61943
61947
|
_onPointerCancel(e) {
|
|
61944
61948
|
this._scene.onPointerCancel$.emitEvent(e);
|
|
@@ -61975,7 +61979,7 @@ const ME = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
|
|
|
61975
61979
|
}
|
|
61976
61980
|
_onDrop(e) {
|
|
61977
61981
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61978
|
-
!(a
|
|
61982
|
+
!(a != null && a.triggerDrop(e)) && this._shouldDispatchEventToScene(a) && this._scene.onDrop$.emitEvent(e);
|
|
61979
61983
|
}
|
|
61980
61984
|
// eslint-disable-next-line max-lines-per-function
|
|
61981
61985
|
attachControl(e) {
|
package/lib/index.js
CHANGED
|
@@ -57030,17 +57030,21 @@ let Z5 = class extends Z8 {
|
|
|
57030
57030
|
startColumn: 0,
|
|
57031
57031
|
endColumn: i - 1
|
|
57032
57032
|
};
|
|
57033
|
-
const o = Se(t, Math.round(a.top) - this.columnHeaderHeightAndMarginTop), l =
|
|
57034
|
-
|
|
57033
|
+
const o = Se(t, Math.round(a.top) - this.columnHeaderHeightAndMarginTop), l = Math.round(a.bottom) - this.columnHeaderHeightAndMarginTop;
|
|
57034
|
+
let u = Se(t, l);
|
|
57035
|
+
u < n && t[u - 1] === l && (u -= 1);
|
|
57036
|
+
const d = Se(e, Math.round(a.left) - this.rowHeaderWidthAndMarginLeft), c = Math.round(a.right) - this.rowHeaderWidthAndMarginLeft;
|
|
57037
|
+
let g = Se(e, c);
|
|
57038
|
+
return g < i && e[g - 1] === c && (g -= 1), s ? {
|
|
57035
57039
|
startRow: o,
|
|
57036
|
-
endRow:
|
|
57037
|
-
startColumn:
|
|
57038
|
-
endColumn:
|
|
57040
|
+
endRow: u === n - 1 ? u : u - 1,
|
|
57041
|
+
startColumn: d,
|
|
57042
|
+
endColumn: g === i - 1 ? g : g - 1
|
|
57039
57043
|
} : {
|
|
57040
57044
|
startRow: o,
|
|
57041
|
-
endRow:
|
|
57042
|
-
startColumn:
|
|
57043
|
-
endColumn:
|
|
57045
|
+
endRow: u,
|
|
57046
|
+
startColumn: d,
|
|
57047
|
+
endColumn: g
|
|
57044
57048
|
};
|
|
57045
57049
|
}
|
|
57046
57050
|
/**
|
|
@@ -61906,17 +61910,17 @@ const ME = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
|
|
|
61906
61910
|
e.pointerId === void 0 && (e.pointerId = 0), this._clickCount++, this._clickTimeout || (this._clickTimeout = setTimeout(() => {
|
|
61907
61911
|
if (this._clickCount === 1) {
|
|
61908
61912
|
const n = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61909
|
-
!(n
|
|
61913
|
+
!(n != null && n.triggerSingleClick(e)) && this._shouldDispatchEventToScene(n) && this._scene.onPointerDown$.emitEvent(e);
|
|
61910
61914
|
} else this._clickCount;
|
|
61911
61915
|
clearTimeout(this._clickTimeout), this._clickTimeout = null, this._clickCount = 0;
|
|
61912
61916
|
}, 300));
|
|
61913
61917
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61914
|
-
!(a
|
|
61918
|
+
!(a != null && a.triggerClick(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerDown$.emitEvent(e);
|
|
61915
61919
|
}
|
|
61916
61920
|
_onDblClick(e) {
|
|
61917
61921
|
e.pointerId === void 0 && (e.pointerId = 0);
|
|
61918
61922
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61919
|
-
!(a
|
|
61923
|
+
!(a != null && a.triggerDblclick(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerDown$.emitEvent(e);
|
|
61920
61924
|
}
|
|
61921
61925
|
_onPointerEnter(e) {
|
|
61922
61926
|
e.pointerId === void 0 && (e.pointerId = 0), this._currentObject = this._getObjectAtPos(e.offsetX, e.offsetY), this.mouseLeaveEnterHandler(e);
|
|
@@ -61933,12 +61937,12 @@ const ME = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
|
|
|
61933
61937
|
_onPointerDown(e) {
|
|
61934
61938
|
e.pointerId === void 0 && (e.pointerId = 0);
|
|
61935
61939
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61936
|
-
!(a
|
|
61940
|
+
!(a != null && a.triggerPointerDown(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerDown$.emitEvent(e);
|
|
61937
61941
|
}
|
|
61938
61942
|
_onPointerUp(e) {
|
|
61939
61943
|
e.pointerId === void 0 && (e.pointerId = 0);
|
|
61940
61944
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61941
|
-
!(a
|
|
61945
|
+
!(a != null && a.triggerPointerUp(e)) && this._shouldDispatchEventToScene(a) && this._scene.onPointerUp$.emitEvent(e), this._prePointerDoubleOrTripleClick(e);
|
|
61942
61946
|
}
|
|
61943
61947
|
_onPointerCancel(e) {
|
|
61944
61948
|
this._scene.onPointerCancel$.emitEvent(e);
|
|
@@ -61975,7 +61979,7 @@ const ME = "engine-render.config", n7 = {}, b2 = class b2 extends D2 {
|
|
|
61975
61979
|
}
|
|
61976
61980
|
_onDrop(e) {
|
|
61977
61981
|
const a = this._getObjectAtPos(e.offsetX, e.offsetY);
|
|
61978
|
-
!(a
|
|
61982
|
+
!(a != null && a.triggerDrop(e)) && this._shouldDispatchEventToScene(a) && this._scene.onDrop$.emitEvent(e);
|
|
61979
61983
|
}
|
|
61980
61984
|
// eslint-disable-next-line max-lines-per-function
|
|
61981
61985
|
attachControl(e) {
|