@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.
@@ -68,5 +68,4 @@ export declare function getSheetWithLatestCelldata(ctx: Context, options?: Commo
68
68
  column_focus: number;
69
69
  } | undefined;
70
70
  } | undefined;
71
- liveQueryList?: Record<string, import("../types").LiveQueryData> | undefined;
72
71
  };
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
- var sheetId = this.sheetCtx.currentSheetId;
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
- var sheetId = this.sheetCtx.currentSheetId;
1079
- var opacity = cellFadeAnimator.getOpacity(sheetId, r, c);
1080
- if (opacity < 0.999) {
1081
- renderCtx.save();
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
- var sheetId = this.sheetCtx.currentSheetId;
1176
- var opacity = cellFadeAnimator.getOpacity(sheetId, r, c);
1177
- if (opacity < 0.999) {
1178
- renderCtx.save();
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) {