@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/dist/pptx.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { r as e } from "./bridge-BFwyMqvY.js";
2
- import { i as t, n, r } from "./pptx-DkGdfRmP.js";
2
+ import { i as t, n, r } from "./pptx-CFkdpZJb.js";
3
3
  export { r as PptxPresentation, n as PptxViewer, e as autoResize, t as renderSlide };
@@ -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);
@@ -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;
@@ -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-Brm7AGnm.js";
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
@@ -1,3 +1,3 @@
1
1
  import { r as e } from "./bridge-BFwyMqvY.js";
2
- import { n as t, r as n } from "./xlsx-DjYv5qgM.js";
2
+ import { n as t, r as n } from "./xlsx-Bz2w8zCX.js";
3
3
  export { t as XlsxViewer, n as XlsxWorkbook, e as autoResize };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silurus/ooxml",
3
- "version": "0.52.0",
3
+ "version": "0.54.0",
4
4
  "description": "Browser-based OOXML viewer (docx/xlsx/pptx) — Rust/WASM parser + Canvas renderer",
5
5
  "license": "MIT",
6
6
  "author": "Yuki Yokotani <silurus.dev@gmail.com>",