@univerjs/engine-formula 0.7.0 → 0.8.0-nightly.202505261607
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 +2 -2
- package/lib/es/index.js +3 -2
- package/lib/index.js +3 -2
- package/lib/umd/index.js +2 -2
- package/package.json +6 -6
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -49,6 +49,7 @@ const nn = /* @__PURE__ */ new Map([
|
|
|
49
49
|
["/", 1],
|
|
50
50
|
["*", 1],
|
|
51
51
|
["^", 0]
|
|
52
|
+
// ^
|
|
52
53
|
]), Dt = new Set(nn.keys()), Cc = /* @__PURE__ */ new Set([
|
|
53
54
|
"=",
|
|
54
55
|
"<>",
|
|
@@ -1039,7 +1040,7 @@ class ga extends Ne {
|
|
|
1039
1040
|
if (!h || h === K.OPEN_BRACKET)
|
|
1040
1041
|
break;
|
|
1041
1042
|
const d = nn.get(h), _ = nn.get(f);
|
|
1042
|
-
if (
|
|
1043
|
+
if (d === void 0 || _ === void 0)
|
|
1043
1044
|
break;
|
|
1044
1045
|
if (_ >= d)
|
|
1045
1046
|
n.push(s.pop());
|
|
@@ -4427,7 +4428,7 @@ function wf(i, a) {
|
|
|
4427
4428
|
return i <= a;
|
|
4428
4429
|
}
|
|
4429
4430
|
function yi(i, a = 15) {
|
|
4430
|
-
return Number.parseFloat(i.toPrecision(a));
|
|
4431
|
+
return Math.floor(Math.abs(i)).toString().length >= a ? i : Number.parseFloat(i.toPrecision(a));
|
|
4431
4432
|
}
|
|
4432
4433
|
function Sf(i, a, e = Number.EPSILON) {
|
|
4433
4434
|
return Math.abs(i - a) < e;
|
package/lib/index.js
CHANGED
|
@@ -49,6 +49,7 @@ const nn = /* @__PURE__ */ new Map([
|
|
|
49
49
|
["/", 1],
|
|
50
50
|
["*", 1],
|
|
51
51
|
["^", 0]
|
|
52
|
+
// ^
|
|
52
53
|
]), Dt = new Set(nn.keys()), Cc = /* @__PURE__ */ new Set([
|
|
53
54
|
"=",
|
|
54
55
|
"<>",
|
|
@@ -1039,7 +1040,7 @@ class ga extends Ne {
|
|
|
1039
1040
|
if (!h || h === K.OPEN_BRACKET)
|
|
1040
1041
|
break;
|
|
1041
1042
|
const d = nn.get(h), _ = nn.get(f);
|
|
1042
|
-
if (
|
|
1043
|
+
if (d === void 0 || _ === void 0)
|
|
1043
1044
|
break;
|
|
1044
1045
|
if (_ >= d)
|
|
1045
1046
|
n.push(s.pop());
|
|
@@ -4427,7 +4428,7 @@ function wf(i, a) {
|
|
|
4427
4428
|
return i <= a;
|
|
4428
4429
|
}
|
|
4429
4430
|
function yi(i, a = 15) {
|
|
4430
|
-
return Number.parseFloat(i.toPrecision(a));
|
|
4431
|
+
return Math.floor(Math.abs(i)).toString().length >= a ? i : Number.parseFloat(i.toPrecision(a));
|
|
4431
4432
|
}
|
|
4432
4433
|
function Sf(i, a, e = Number.EPSILON) {
|
|
4433
4434
|
return Math.abs(i - a) < e;
|