@silurus/ooxml 0.52.0 → 0.54.0
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/README.md +2 -2
- package/dist/index.mjs +2 -2
- package/dist/pptx-CFkdpZJb.js +23527 -0
- package/dist/pptx.mjs +1 -1
- package/dist/{renderer-Brm7AGnm.js → renderer-C25pbJro.js} +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/pptx.d.ts +2 -0
- package/dist/{xlsx-DjYv5qgM.js → xlsx-Bz2w8zCX.js} +2 -1
- package/dist/xlsx.mjs +1 -1
- package/package.json +1 -1
- package/dist/pptx-DkGdfRmP.js +0 -23520
package/dist/pptx.mjs
CHANGED
|
@@ -21,7 +21,7 @@ function a(e) {
|
|
|
21
21
|
return Number.isInteger(e) ? String(e) : e.toFixed(6).replace(/\.?0+$/, "");
|
|
22
22
|
}
|
|
23
23
|
function o(e, t) {
|
|
24
|
-
if (!t) return a(e);
|
|
24
|
+
if (!t || t.trim().toLowerCase() === "general") return a(e);
|
|
25
25
|
if (s(t)) return c(e, t);
|
|
26
26
|
let n = l(t), r;
|
|
27
27
|
return r = e > 0 ? n[0] ?? t : e < 0 ? n[1] ?? n[0] ?? t : n[2] ?? n[0] ?? t, r === "" ? "" : (e < 0 && n.length < 2 ? "-" : "") + u(Math.abs(e), r);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2393,6 +2393,8 @@ declare interface TableBorders {
|
|
|
2393
2393
|
declare interface TableCell {
|
|
2394
2394
|
textBody: TextBody | null;
|
|
2395
2395
|
fill: Fill | null;
|
|
2396
|
+
/** Default run text colour inherited from the table style (`<a:tcTxStyle>`); hex, no `#`. */
|
|
2397
|
+
textColor?: string;
|
|
2396
2398
|
borderL: Stroke | null;
|
|
2397
2399
|
borderR: Stroke | null;
|
|
2398
2400
|
borderT: Stroke | null;
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1006,6 +1006,8 @@ export declare interface Stroke {
|
|
|
1006
1006
|
declare interface TableCell {
|
|
1007
1007
|
textBody: TextBody | null;
|
|
1008
1008
|
fill: Fill | null;
|
|
1009
|
+
/** Default run text colour inherited from the table style (`<a:tcTxStyle>`); hex, no `#`. */
|
|
1010
|
+
textColor?: string;
|
|
1009
1011
|
borderL: Stroke | null;
|
|
1010
1012
|
borderR: Stroke | null;
|
|
1011
1013
|
borderT: Stroke | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, c as t, n, o as r, r as i, s as a, t as o } from "./bridge-BFwyMqvY.js";
|
|
2
|
-
import { t as s } from "./renderer-
|
|
2
|
+
import { t as s } from "./renderer-C25pbJro.js";
|
|
3
3
|
import { t as c } from "./mathjax-DWYWI9GF.js";
|
|
4
4
|
//#region packages/core/src/sparkline/renderer.ts
|
|
5
5
|
function l(e, t, n) {
|
|
@@ -856,6 +856,7 @@ function be(e) {
|
|
|
856
856
|
function xe(e, t, n) {
|
|
857
857
|
let r = de[t];
|
|
858
858
|
if (r) return ye(e, r);
|
|
859
|
+
if (n && n.trim().toLowerCase() === "general") return String(e);
|
|
859
860
|
if (n) return be(n) ? ye(e, n) : Ee(e, n);
|
|
860
861
|
switch (t) {
|
|
861
862
|
case 0: return String(e);
|
package/dist/xlsx.mjs
CHANGED
package/package.json
CHANGED