@sia.soul/sia-react-ui 0.1.95 → 0.1.96
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/chart.cjs +4 -2
- package/dist/chart.js +1 -1
- package/dist/{chunk-ZHQ7PCCF.js → chunk-T3EGAN7O.js} +4 -2
- package/dist/index.cjs +4 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/chart.cjs
CHANGED
|
@@ -2554,7 +2554,8 @@ function transferPieValue(series, source, target, connector = " & ") {
|
|
|
2554
2554
|
return { integer: BigInt(m.replace(".", "")), scale: (m.split(".")[1]?.length ?? 0) - Number(e) };
|
|
2555
2555
|
};
|
|
2556
2556
|
const a = parts(value), b = parts(origin.value), scale = Math.max(a.scale, b.scale);
|
|
2557
|
-
const
|
|
2557
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2558
|
+
const merged = Number(`${a.integer * factor(scale - a.scale) + b.integer * factor(scale - b.scale)}e${-scale}`);
|
|
2558
2559
|
if (!Number.isFinite(merged)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2559
2560
|
next[target.series].data[target.index] = { ...destination, value: merged, name: destination.name + connector + origin.name };
|
|
2560
2561
|
} else if (target) {
|
|
@@ -2577,7 +2578,8 @@ function addValues(a, b) {
|
|
|
2577
2578
|
return { integer: BigInt(mantissa.replace(".", "")), scale: fraction - Number(exponent) };
|
|
2578
2579
|
};
|
|
2579
2580
|
const left = parts(a), right = parts(b), scale = Math.max(left.scale, right.scale);
|
|
2580
|
-
const
|
|
2581
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2582
|
+
const integer = left.integer * factor(scale - left.scale) + right.integer * factor(scale - right.scale);
|
|
2581
2583
|
const value = Number(`${integer}e${-scale}`);
|
|
2582
2584
|
if (!Number.isFinite(value)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2583
2585
|
return value;
|
package/dist/chart.js
CHANGED
|
@@ -2230,7 +2230,8 @@ function transferPieValue(series, source, target, connector = " & ") {
|
|
|
2230
2230
|
return { integer: BigInt(m.replace(".", "")), scale: (m.split(".")[1]?.length ?? 0) - Number(e) };
|
|
2231
2231
|
};
|
|
2232
2232
|
const a = parts(value), b = parts(origin.value), scale = Math.max(a.scale, b.scale);
|
|
2233
|
-
const
|
|
2233
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2234
|
+
const merged = Number(`${a.integer * factor(scale - a.scale) + b.integer * factor(scale - b.scale)}e${-scale}`);
|
|
2234
2235
|
if (!Number.isFinite(merged)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2235
2236
|
next[target.series].data[target.index] = { ...destination, value: merged, name: destination.name + connector + origin.name };
|
|
2236
2237
|
} else if (target) {
|
|
@@ -2253,7 +2254,8 @@ function addValues(a, b) {
|
|
|
2253
2254
|
return { integer: BigInt(mantissa.replace(".", "")), scale: fraction - Number(exponent) };
|
|
2254
2255
|
};
|
|
2255
2256
|
const left = parts(a), right = parts(b), scale = Math.max(left.scale, right.scale);
|
|
2256
|
-
const
|
|
2257
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
2258
|
+
const integer = left.integer * factor(scale - left.scale) + right.integer * factor(scale - right.scale);
|
|
2257
2259
|
const value = Number(`${integer}e${-scale}`);
|
|
2258
2260
|
if (!Number.isFinite(value)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
2259
2261
|
return value;
|
package/dist/index.cjs
CHANGED
|
@@ -19101,7 +19101,8 @@ function transferPieValue(series, source, target, connector = " & ") {
|
|
|
19101
19101
|
return { integer: BigInt(m.replace(".", "")), scale: (m.split(".")[1]?.length ?? 0) - Number(e) };
|
|
19102
19102
|
};
|
|
19103
19103
|
const a = parts(value), b = parts(origin.value), scale = Math.max(a.scale, b.scale);
|
|
19104
|
-
const
|
|
19104
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
19105
|
+
const merged = Number(`${a.integer * factor(scale - a.scale) + b.integer * factor(scale - b.scale)}e${-scale}`);
|
|
19105
19106
|
if (!Number.isFinite(merged)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
19106
19107
|
next[target.series].data[target.index] = { ...destination, value: merged, name: destination.name + connector + origin.name };
|
|
19107
19108
|
} else if (target) {
|
|
@@ -19124,7 +19125,8 @@ function addValues(a, b) {
|
|
|
19124
19125
|
return { integer: BigInt(mantissa.replace(".", "")), scale: fraction - Number(exponent) };
|
|
19125
19126
|
};
|
|
19126
19127
|
const left = parts(a), right = parts(b), scale = Math.max(left.scale, right.scale);
|
|
19127
|
-
const
|
|
19128
|
+
const factor = (digits) => BigInt(`1${"0".repeat(digits)}`);
|
|
19129
|
+
const integer = left.integer * factor(scale - left.scale) + right.integer * factor(scale - right.scale);
|
|
19128
19130
|
const value = Number(`${integer}e${-scale}`);
|
|
19129
19131
|
if (!Number.isFinite(value)) throw new RangeError("\u5408\u5E76\u503C\u8D85\u51FA\u6709\u9650\u6570\u503C\u8303\u56F4");
|
|
19130
19132
|
return value;
|
package/dist/index.js
CHANGED