@fileverse-dev/fortune-core 1.1.11-patch-5 → 1.1.11
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/es/api/common.d.ts +0 -1
- package/es/canvas.js +9 -43
- package/es/events/paste.js +313 -474
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/es/types.d.ts +0 -13
- package/lib/api/common.d.ts +0 -1
- package/lib/canvas.js +9 -43
- package/lib/events/paste.js +313 -474
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -12
- package/lib/types.d.ts +0 -13
- package/package.json +1 -1
- package/es/animate.d.ts +0 -14
- package/es/animate.js +0 -53
- package/lib/animate.d.ts +0 -14
- package/lib/animate.js +0 -60
package/es/api/common.d.ts
CHANGED
package/es/canvas.js
CHANGED
|
@@ -6,7 +6,6 @@ import { isInlineStringCell } from "./modules/inline-string";
|
|
|
6
6
|
import { getSheetIndex, indexToColumnChar } from "./utils";
|
|
7
7
|
import { getBorderInfoComputeRange } from "./modules/border";
|
|
8
8
|
import { checkCF, getComputeMap, validateCellData } from "./modules";
|
|
9
|
-
import { cellFadeAnimator } from "./animate";
|
|
10
9
|
export var defaultStyle = {
|
|
11
10
|
fillStyle: "#000000",
|
|
12
11
|
textBaseline: "middle",
|
|
@@ -761,16 +760,7 @@ var Canvas = function () {
|
|
|
761
760
|
var horizonAlignPos = startX + 4 + offsetLeft;
|
|
762
761
|
var verticalAlignPos = endY + offsetTop - 2;
|
|
763
762
|
renderCtx.textBaseline = "bottom";
|
|
764
|
-
|
|
765
|
-
var opacity = cellFadeAnimator.getOpacity(sheetId, r, c);
|
|
766
|
-
if (opacity < 0.999) {
|
|
767
|
-
renderCtx.save();
|
|
768
|
-
renderCtx.globalAlpha = opacity;
|
|
769
|
-
renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos, verticalAlignPos);
|
|
770
|
-
renderCtx.restore();
|
|
771
|
-
} else {
|
|
772
|
-
renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos, verticalAlignPos);
|
|
773
|
-
}
|
|
763
|
+
renderCtx.fillText(_.isNil(value) ? "" : value, horizonAlignPos, verticalAlignPos);
|
|
774
764
|
}
|
|
775
765
|
if ((_d = (_c = flowdata === null || flowdata === void 0 ? void 0 : flowdata[r]) === null || _c === void 0 ? void 0 : _c[c]) === null || _d === void 0 ? void 0 : _d.ps) {
|
|
776
766
|
var ps_w = 12 * this.sheetCtx.zoomRatio;
|
|
@@ -1075,22 +1065,10 @@ var Canvas = function () {
|
|
|
1075
1065
|
if (((_j = (_h = (_g = cell === null || cell === void 0 ? void 0 : cell.ct) === null || _g === void 0 ? void 0 : _g.fa) === null || _h === void 0 ? void 0 : _h.indexOf("[Red]")) !== null && _j !== void 0 ? _j : -1) > -1 && ((_k = cell === null || cell === void 0 ? void 0 : cell.ct) === null || _k === void 0 ? void 0 : _k.t) === "n" && (cell === null || cell === void 0 ? void 0 : cell.v) < 0) {
|
|
1076
1066
|
renderCtx.fillStyle = "#ff0000";
|
|
1077
1067
|
}
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
renderCtx.globalAlpha = opacity;
|
|
1083
|
-
this.cellTextRender(textInfo, renderCtx, {
|
|
1084
|
-
pos_x: pos_x,
|
|
1085
|
-
pos_y: pos_y
|
|
1086
|
-
});
|
|
1087
|
-
renderCtx.restore();
|
|
1088
|
-
} else {
|
|
1089
|
-
this.cellTextRender(textInfo, renderCtx, {
|
|
1090
|
-
pos_x: pos_x,
|
|
1091
|
-
pos_y: pos_y
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1068
|
+
this.cellTextRender(textInfo, renderCtx, {
|
|
1069
|
+
pos_x: pos_x,
|
|
1070
|
+
pos_y: pos_y
|
|
1071
|
+
});
|
|
1094
1072
|
renderCtx.restore();
|
|
1095
1073
|
}
|
|
1096
1074
|
if (cellOverflow_bd_r_render) {
|
|
@@ -1172,22 +1150,10 @@ var Canvas = function () {
|
|
|
1172
1150
|
if (checksCF === null || checksCF === void 0 ? void 0 : checksCF.textColor) {
|
|
1173
1151
|
renderCtx.fillStyle = checksCF.textColor;
|
|
1174
1152
|
}
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
renderCtx.globalAlpha = opacity;
|
|
1180
|
-
this.cellTextRender(textInfo, renderCtx, {
|
|
1181
|
-
pos_x: pos_x,
|
|
1182
|
-
pos_y: pos_y
|
|
1183
|
-
});
|
|
1184
|
-
renderCtx.restore();
|
|
1185
|
-
} else {
|
|
1186
|
-
this.cellTextRender(textInfo, renderCtx, {
|
|
1187
|
-
pos_x: pos_x,
|
|
1188
|
-
pos_y: pos_y
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1153
|
+
this.cellTextRender(textInfo, renderCtx, {
|
|
1154
|
+
pos_x: pos_x,
|
|
1155
|
+
pos_y: pos_y
|
|
1156
|
+
});
|
|
1191
1157
|
renderCtx.restore();
|
|
1192
1158
|
};
|
|
1193
1159
|
Canvas.prototype.cellOverflow_trace = function (r, curC, traceC, traceDir, horizonAlign, textMetrics) {
|