@fileverse-dev/dsheet 1.1.8-live-query-v4 → 1.1.8-live-query-v5
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.es.js +8 -8
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -87495,14 +87495,14 @@ function C0e(e, r, t) {
|
|
|
87495
87495
|
}
|
|
87496
87496
|
var T0e = function() {
|
|
87497
87497
|
function e(r) {
|
|
87498
|
-
r === void 0 && (r = 350), this.durationMs = r, this.active = /* @__PURE__ */ new Map(), this.
|
|
87498
|
+
r === void 0 && (r = 350), this.durationMs = r, this.active = /* @__PURE__ */ new Map(), this.animationFrameId = null, this.onTick = null, this.durationMs = r;
|
|
87499
87499
|
}
|
|
87500
87500
|
return e.prototype.markChanged = function(r, t, a) {
|
|
87501
87501
|
this.active.set("".concat(r, ":").concat(t, ":").concat(a), {
|
|
87502
87502
|
start: performance.now(),
|
|
87503
87503
|
dur: this.durationMs
|
|
87504
87504
|
}), this.ensureTicking();
|
|
87505
|
-
}, e.prototype.
|
|
87505
|
+
}, e.prototype.getOpacity = function(r, t, a) {
|
|
87506
87506
|
var n = this.active.get("".concat(r, ":").concat(t, ":").concat(a));
|
|
87507
87507
|
if (!n) return 1;
|
|
87508
87508
|
var i = Math.min(1, (performance.now() - n.start) / n.dur);
|
|
@@ -87511,12 +87511,12 @@ var T0e = function() {
|
|
|
87511
87511
|
this.onTick = r, this.ensureTicking();
|
|
87512
87512
|
}, e.prototype.ensureTicking = function() {
|
|
87513
87513
|
var r = this;
|
|
87514
|
-
if (this.
|
|
87514
|
+
if (this.animationFrameId === null && this.active.size !== 0) {
|
|
87515
87515
|
var t = function() {
|
|
87516
87516
|
var n;
|
|
87517
|
-
r.
|
|
87517
|
+
r.animationFrameId = null, r.active.size !== 0 && ((n = r.onTick) === null || n === void 0 || n.call(r), r.animationFrameId = requestAnimationFrame(t));
|
|
87518
87518
|
};
|
|
87519
|
-
this.
|
|
87519
|
+
this.animationFrameId = requestAnimationFrame(t);
|
|
87520
87520
|
}
|
|
87521
87521
|
}, e;
|
|
87522
87522
|
}(), Sd = new T0e(4e3);
|
|
@@ -87811,7 +87811,7 @@ var DI = function() {
|
|
|
87811
87811
|
c.font = k;
|
|
87812
87812
|
var E = n + 4 + l, A = i + u - 2;
|
|
87813
87813
|
c.textBaseline = "bottom";
|
|
87814
|
-
var C = this.sheetCtx.currentSheetId, j = Sd.
|
|
87814
|
+
var C = this.sheetCtx.currentSheetId, j = Sd.getOpacity(C, r, t);
|
|
87815
87815
|
j < 0.999 ? (c.save(), c.globalAlpha = j, c.fillText(te.isNil(_) ? "" : _, E, A), c.restore()) : c.fillText(te.isNil(_) ? "" : _, E, A);
|
|
87816
87816
|
}
|
|
87817
87817
|
if (!((S = (M = N == null ? void 0 : N[r]) === null || M === void 0 ? void 0 : M[t]) === null || S === void 0) && S.ps) {
|
|
@@ -87917,7 +87917,7 @@ var DI = function() {
|
|
|
87917
87917
|
J === 0 ? Ze = de + V / 2 - He.textHeightAll / 2 : J === 1 ? Ze = de : J === 2 && (Ze -= He.desc), Ze /= this.sheetCtx.zoomRatio, f.drawImage(A0e(), et * 42, lt * 32, 32, 32, ge / this.sheetCtx.zoomRatio, Ze, He.textHeightAll / this.sheetCtx.zoomRatio, He.textHeightAll / this.sheetCtx.zoomRatio);
|
|
87918
87918
|
}
|
|
87919
87919
|
f.fillStyle = ol(A, r, t, "fc"), B != null && B.textColor && (f.fillStyle = B.textColor), ((L = (R = (N = C == null ? void 0 : C.ct) === null || N === void 0 ? void 0 : N.fa) === null || R === void 0 ? void 0 : R.indexOf("[Red]")) !== null && L !== void 0 ? L : -1) > -1 && ((O = C == null ? void 0 : C.ct) === null || O === void 0 ? void 0 : O.t) === "n" && (C == null ? void 0 : C.v) < 0 && (f.fillStyle = "#ff0000");
|
|
87920
|
-
var Ce = this.sheetCtx.currentSheetId, Pe = Sd.
|
|
87920
|
+
var Ce = this.sheetCtx.currentSheetId, Pe = Sd.getOpacity(Ce, r, t);
|
|
87921
87921
|
Pe < 0.999 ? (f.save(), f.globalAlpha = Pe, this.cellTextRender(He, f, {
|
|
87922
87922
|
pos_x: ge,
|
|
87923
87923
|
pos_y: de
|
|
@@ -87954,7 +87954,7 @@ var DI = function() {
|
|
|
87954
87954
|
c: t
|
|
87955
87955
|
}, this.sheetCtx) : void 0, D = Ed(r, t, u);
|
|
87956
87956
|
i.fillStyle = ol(v, r, t, "fc"), D != null && D.textColor && (i.fillStyle = D.textColor);
|
|
87957
|
-
var N = this.sheetCtx.currentSheetId, R = Sd.
|
|
87957
|
+
var N = this.sheetCtx.currentSheetId, R = Sd.getOpacity(N, r, t);
|
|
87958
87958
|
R < 0.999 ? (i.save(), i.globalAlpha = R, this.cellTextRender(I, i, {
|
|
87959
87959
|
pos_x: M,
|
|
87960
87960
|
pos_y: S
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fileverse-dev/dsheet",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "DSheet",
|
|
5
|
-
"version": "1.1.8-live-query-
|
|
5
|
+
"version": "1.1.8-live-query-v5",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@fileverse-dev/dsheets-templates": "^0.0.18",
|
|
37
37
|
"@fileverse-dev/formulajs": "^4.4.12-mod-2",
|
|
38
|
-
"@fileverse-dev/fortune-react": "^1.1.5-live-query-
|
|
38
|
+
"@fileverse-dev/fortune-react": "^1.1.5-live-query-4",
|
|
39
39
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
40
40
|
"classnames": "^2.5.1",
|
|
41
41
|
"exceljs": "^4.4.0",
|