@fileverse-dev/fortune-core 1.0.2-mod-14 → 1.0.2-mod-16
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/dist/index.esm.js +9 -9
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -72875,8 +72875,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72875
72875
|
renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos, verticalAlignPos);
|
|
72876
72876
|
}
|
|
72877
72877
|
if (flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : (_flowdata$r2$c = _flowdata$r2[c]) === null || _flowdata$r2$c === void 0 ? void 0 : _flowdata$r2$c.ps) {
|
|
72878
|
-
var ps_w =
|
|
72879
|
-
var ps_h =
|
|
72878
|
+
var ps_w = 12 * this.sheetCtx.zoomRatio;
|
|
72879
|
+
var ps_h = 12 * this.sheetCtx.zoomRatio;
|
|
72880
72880
|
renderCtx.beginPath();
|
|
72881
72881
|
renderCtx.moveTo(endX + offsetLeft - 1 - ps_w, startY + offsetTop);
|
|
72882
72882
|
renderCtx.lineTo(endX + offsetLeft - 1, startY + offsetTop);
|
|
@@ -72961,8 +72961,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72961
72961
|
var index = getSheetIndex(this.sheetCtx, this.sheetCtx.currentSheetId);
|
|
72962
72962
|
var dataVerification = this.sheetCtx.luckysheetfile[index].dataVerification;
|
|
72963
72963
|
if ((dataVerification === null || dataVerification === void 0 ? void 0 : dataVerification["".concat(r, "_").concat(c)]) && !validateCellData(this.sheetCtx, dataVerification["".concat(r, "_").concat(c)], value)) {
|
|
72964
|
-
var dv_w =
|
|
72965
|
-
var dv_h =
|
|
72964
|
+
var dv_w = 9 * this.sheetCtx.zoomRatio;
|
|
72965
|
+
var dv_h = 9 * this.sheetCtx.zoomRatio;
|
|
72966
72966
|
renderCtx.beginPath();
|
|
72967
72967
|
renderCtx.moveTo(startX + offsetLeft, startY + offsetTop);
|
|
72968
72968
|
renderCtx.lineTo(startX + offsetLeft + dv_w, startY + offsetTop);
|
|
@@ -72972,8 +72972,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72972
72972
|
renderCtx.closePath();
|
|
72973
72973
|
}
|
|
72974
72974
|
if (cell === null || cell === void 0 ? void 0 : cell.ps) {
|
|
72975
|
-
var ps_w =
|
|
72976
|
-
var ps_h =
|
|
72975
|
+
var ps_w = 12 * this.sheetCtx.zoomRatio;
|
|
72976
|
+
var ps_h = 12 * this.sheetCtx.zoomRatio;
|
|
72977
72977
|
renderCtx.beginPath();
|
|
72978
72978
|
renderCtx.moveTo(endX + offsetLeft - ps_w, startY + offsetTop);
|
|
72979
72979
|
renderCtx.lineTo(endX + offsetLeft, startY + offsetTop);
|
|
@@ -72983,8 +72983,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72983
72983
|
renderCtx.closePath();
|
|
72984
72984
|
}
|
|
72985
72985
|
if ((cell === null || cell === void 0 ? void 0 : cell.qp) === 1 && isRealNum$1(cell === null || cell === void 0 ? void 0 : cell.v)) {
|
|
72986
|
-
var _ps_w =
|
|
72987
|
-
var _ps_h =
|
|
72986
|
+
var _ps_w = 10 * this.sheetCtx.zoomRatio;
|
|
72987
|
+
var _ps_h = 10 * this.sheetCtx.zoomRatio;
|
|
72988
72988
|
renderCtx.beginPath();
|
|
72989
72989
|
renderCtx.moveTo(startX + offsetLeft + _ps_w - 1, startY + offsetTop);
|
|
72990
72990
|
renderCtx.lineTo(startX + offsetLeft - 1, startY + offsetTop);
|
|
@@ -76724,6 +76724,7 @@ var mouseWheelUniqueTimeout;
|
|
|
76724
76724
|
var scrollLockTimeout;
|
|
76725
76725
|
function handleGlobalWheel(ctx, e, cache, scrollbarX, scrollbarY) {
|
|
76726
76726
|
var _cache$searchDialog;
|
|
76727
|
+
removeEditingComment(ctx, cache);
|
|
76727
76728
|
if (((_cache$searchDialog = cache.searchDialog) === null || _cache$searchDialog === void 0 ? void 0 : _cache$searchDialog.mouseEnter) && ctx.showSearch && ctx.showReplace) return;
|
|
76728
76729
|
if (ctx.filterContextMenu != null) return;
|
|
76729
76730
|
var scrollLeft = scrollbarX.scrollLeft;
|
|
@@ -77640,7 +77641,6 @@ function handleOverlayMouseMove(ctx, globalCache, e, cellInput, scrollX, scrollY
|
|
|
77640
77641
|
if (onImageMove(ctx, globalCache, e)) return;
|
|
77641
77642
|
if (onImageResize(ctx, globalCache, e)) return;
|
|
77642
77643
|
onCellsMove(ctx, globalCache, e, scrollX, scrollY, container);
|
|
77643
|
-
var inputBoxContainer = document.getElementsByClassName("luckysheet-input-box")[0];
|
|
77644
77644
|
overShowComment(ctx, e, scrollX, scrollY, container);
|
|
77645
77645
|
onSearchDialogMove(globalCache, e);
|
|
77646
77646
|
onRangeSelectionModalMove(globalCache, e);
|
package/dist/index.js
CHANGED
|
@@ -72885,8 +72885,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72885
72885
|
renderCtx.fillText(___default['default'].isNil(value) ? "" : value, horizonAlignPos, verticalAlignPos);
|
|
72886
72886
|
}
|
|
72887
72887
|
if (flowdata === null || flowdata === void 0 ? void 0 : (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : (_flowdata$r2$c = _flowdata$r2[c]) === null || _flowdata$r2$c === void 0 ? void 0 : _flowdata$r2$c.ps) {
|
|
72888
|
-
var ps_w =
|
|
72889
|
-
var ps_h =
|
|
72888
|
+
var ps_w = 12 * this.sheetCtx.zoomRatio;
|
|
72889
|
+
var ps_h = 12 * this.sheetCtx.zoomRatio;
|
|
72890
72890
|
renderCtx.beginPath();
|
|
72891
72891
|
renderCtx.moveTo(endX + offsetLeft - 1 - ps_w, startY + offsetTop);
|
|
72892
72892
|
renderCtx.lineTo(endX + offsetLeft - 1, startY + offsetTop);
|
|
@@ -72971,8 +72971,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72971
72971
|
var index = getSheetIndex(this.sheetCtx, this.sheetCtx.currentSheetId);
|
|
72972
72972
|
var dataVerification = this.sheetCtx.luckysheetfile[index].dataVerification;
|
|
72973
72973
|
if ((dataVerification === null || dataVerification === void 0 ? void 0 : dataVerification["".concat(r, "_").concat(c)]) && !validateCellData(this.sheetCtx, dataVerification["".concat(r, "_").concat(c)], value)) {
|
|
72974
|
-
var dv_w =
|
|
72975
|
-
var dv_h =
|
|
72974
|
+
var dv_w = 9 * this.sheetCtx.zoomRatio;
|
|
72975
|
+
var dv_h = 9 * this.sheetCtx.zoomRatio;
|
|
72976
72976
|
renderCtx.beginPath();
|
|
72977
72977
|
renderCtx.moveTo(startX + offsetLeft, startY + offsetTop);
|
|
72978
72978
|
renderCtx.lineTo(startX + offsetLeft + dv_w, startY + offsetTop);
|
|
@@ -72982,8 +72982,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72982
72982
|
renderCtx.closePath();
|
|
72983
72983
|
}
|
|
72984
72984
|
if (cell === null || cell === void 0 ? void 0 : cell.ps) {
|
|
72985
|
-
var ps_w =
|
|
72986
|
-
var ps_h =
|
|
72985
|
+
var ps_w = 12 * this.sheetCtx.zoomRatio;
|
|
72986
|
+
var ps_h = 12 * this.sheetCtx.zoomRatio;
|
|
72987
72987
|
renderCtx.beginPath();
|
|
72988
72988
|
renderCtx.moveTo(endX + offsetLeft - ps_w, startY + offsetTop);
|
|
72989
72989
|
renderCtx.lineTo(endX + offsetLeft, startY + offsetTop);
|
|
@@ -72993,8 +72993,8 @@ var Canvas = /*#__PURE__*/function () {
|
|
|
72993
72993
|
renderCtx.closePath();
|
|
72994
72994
|
}
|
|
72995
72995
|
if ((cell === null || cell === void 0 ? void 0 : cell.qp) === 1 && isRealNum$1(cell === null || cell === void 0 ? void 0 : cell.v)) {
|
|
72996
|
-
var _ps_w =
|
|
72997
|
-
var _ps_h =
|
|
72996
|
+
var _ps_w = 10 * this.sheetCtx.zoomRatio;
|
|
72997
|
+
var _ps_h = 10 * this.sheetCtx.zoomRatio;
|
|
72998
72998
|
renderCtx.beginPath();
|
|
72999
72999
|
renderCtx.moveTo(startX + offsetLeft + _ps_w - 1, startY + offsetTop);
|
|
73000
73000
|
renderCtx.lineTo(startX + offsetLeft - 1, startY + offsetTop);
|
|
@@ -76734,6 +76734,7 @@ var mouseWheelUniqueTimeout;
|
|
|
76734
76734
|
var scrollLockTimeout;
|
|
76735
76735
|
function handleGlobalWheel(ctx, e, cache, scrollbarX, scrollbarY) {
|
|
76736
76736
|
var _cache$searchDialog;
|
|
76737
|
+
removeEditingComment(ctx, cache);
|
|
76737
76738
|
if (((_cache$searchDialog = cache.searchDialog) === null || _cache$searchDialog === void 0 ? void 0 : _cache$searchDialog.mouseEnter) && ctx.showSearch && ctx.showReplace) return;
|
|
76738
76739
|
if (ctx.filterContextMenu != null) return;
|
|
76739
76740
|
var scrollLeft = scrollbarX.scrollLeft;
|
|
@@ -77650,7 +77651,6 @@ function handleOverlayMouseMove(ctx, globalCache, e, cellInput, scrollX, scrollY
|
|
|
77650
77651
|
if (onImageMove(ctx, globalCache, e)) return;
|
|
77651
77652
|
if (onImageResize(ctx, globalCache, e)) return;
|
|
77652
77653
|
onCellsMove(ctx, globalCache, e, scrollX, scrollY, container);
|
|
77653
|
-
var inputBoxContainer = document.getElementsByClassName("luckysheet-input-box")[0];
|
|
77654
77654
|
overShowComment(ctx, e, scrollX, scrollY, container);
|
|
77655
77655
|
onSearchDialogMove(globalCache, e);
|
|
77656
77656
|
onRangeSelectionModalMove(globalCache, e);
|