@silurus/ooxml 0.72.0 → 0.72.1
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/{docx-BPF-eH0O.js → docx-CM-oHSyZ.js} +1397 -1339
- package/dist/docx.mjs +2 -2
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{find-cursor-DTrEBxjE.js → find-cursor-CABDFafh.js} +1075 -1067
- package/dist/{highlight-rect-B--cPQOV.js → highlight-rect-DIReGC3z.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{pptx-BMxDfEYI.js → pptx-WoReGPPJ.js} +113 -107
- package/dist/pptx.mjs +2 -2
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/render-worker-host-BNYGV6vm.js +27 -0
- package/dist/{render-worker-host-l8yqDUfE.js → render-worker-host-CJc3E4ej.js} +1 -1
- package/dist/render-worker-host-DcfYux0W.js +27 -0
- package/dist/{segments-Da-soh2U.js → segments-2VsQNClV.js} +1 -1
- package/dist/types/docx.d.ts +12 -0
- package/dist/types/index.d.ts +26 -0
- package/dist/types/pptx.d.ts +11 -0
- package/dist/types/xlsx.d.ts +3 -0
- package/dist/{visible-index-5hdq_oAL.js → visible-index-YRawP6W8.js} +1 -1
- package/dist/{xlsx-bwQD8c1Q.js → xlsx-CHfWgWy8.js} +5 -5
- package/dist/xlsx.mjs +2 -2
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/render-worker-host-DL_kkykF.js +0 -27
- package/dist/render-worker-host-S0HOWgs0.js +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as e } from "./find-cursor-
|
|
1
|
+
import { V as e } from "./find-cursor-CABDFafh.js";
|
|
2
2
|
//#region packages/core/src/text/bidi/segments.ts
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
return t === !0 ? "rtl" : t === !1 ? "ltr" : e().computeLevels(n, "auto").paragraphLevel === 1 ? "rtl" : "ltr";
|
package/dist/types/docx.d.ts
CHANGED
|
@@ -1241,6 +1241,12 @@ export declare interface DocTableCell {
|
|
|
1241
1241
|
|
|
1242
1242
|
export declare interface DocTableRow {
|
|
1243
1243
|
cells: DocTableCell[];
|
|
1244
|
+
/** ECMA-376 §17.4.15 `<w:gridBefore>` — shared table-grid columns skipped
|
|
1245
|
+
* before placing this row's first real cell. Omitted/zero means none. */
|
|
1246
|
+
gridBefore?: number;
|
|
1247
|
+
/** ECMA-376 §17.4.14 `<w:gridAfter>` — shared table-grid columns skipped
|
|
1248
|
+
* after this row's last real cell. Omitted/zero means none. */
|
|
1249
|
+
gridAfter?: number;
|
|
1244
1250
|
rowHeight: number | null;
|
|
1245
1251
|
/** ECMA-376 §17.4.80 hRule. "auto" (default) = informational; "atLeast" =
|
|
1246
1252
|
* lower bound; "exact" = fixed clip. */
|
|
@@ -2742,6 +2748,10 @@ export declare interface ImageRun {
|
|
|
2742
2748
|
} | null;
|
|
2743
2749
|
widthPt: number;
|
|
2744
2750
|
heightPt: number;
|
|
2751
|
+
/** Effective DrawingML transform for grouped pictures. */
|
|
2752
|
+
rotation?: number;
|
|
2753
|
+
flipH?: boolean;
|
|
2754
|
+
flipV?: boolean;
|
|
2745
2755
|
/** true = wp:anchor (absolute positioned), false/undefined = wp:inline (flows with text) */
|
|
2746
2756
|
anchor?: boolean;
|
|
2747
2757
|
/** X offset in pt (anchor only) */
|
|
@@ -3690,6 +3700,8 @@ export declare interface ShapeRun {
|
|
|
3690
3700
|
strokeWidth?: number;
|
|
3691
3701
|
/** `<a:ln><a:prstDash val>` — ECMA-376 §20.1.8.48. Absent = solid. */
|
|
3692
3702
|
strokeDash?: string | null;
|
|
3703
|
+
/** Normalized line cap: `butt` | `round` | `square`. */
|
|
3704
|
+
strokeCap?: CanvasLineCap | null;
|
|
3693
3705
|
/** `<a:ln><a:headEnd>` line-start decoration (ECMA-376 §20.1.8.3). */
|
|
3694
3706
|
headEnd?: LineEnd | null;
|
|
3695
3707
|
/** `<a:ln><a:tailEnd>` line-end decoration (ECMA-376 §20.1.8.3). */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -619,6 +619,9 @@ declare interface ChartElement {
|
|
|
619
619
|
y: number;
|
|
620
620
|
width: number;
|
|
621
621
|
height: number;
|
|
622
|
+
rotation: number;
|
|
623
|
+
flipH: boolean;
|
|
624
|
+
flipV: boolean;
|
|
622
625
|
/**
|
|
623
626
|
* The chart payload, already in the canonical {@link ChartModel} shape emitted
|
|
624
627
|
* by the Rust parser (`ooxml_common::chart::ChartModel`). Passed straight to
|
|
@@ -1689,6 +1692,12 @@ declare interface DocTableCell {
|
|
|
1689
1692
|
|
|
1690
1693
|
declare interface DocTableRow {
|
|
1691
1694
|
cells: DocTableCell[];
|
|
1695
|
+
/** ECMA-376 §17.4.15 `<w:gridBefore>` — shared table-grid columns skipped
|
|
1696
|
+
* before placing this row's first real cell. Omitted/zero means none. */
|
|
1697
|
+
gridBefore?: number;
|
|
1698
|
+
/** ECMA-376 §17.4.14 `<w:gridAfter>` — shared table-grid columns skipped
|
|
1699
|
+
* after this row's last real cell. Omitted/zero means none. */
|
|
1700
|
+
gridAfter?: number;
|
|
1692
1701
|
rowHeight: number | null;
|
|
1693
1702
|
/** ECMA-376 §17.4.80 hRule. "auto" (default) = informational; "atLeast" =
|
|
1694
1703
|
* lower bound; "exact" = fixed clip. */
|
|
@@ -3480,6 +3489,10 @@ declare interface ImageRun {
|
|
|
3480
3489
|
} | null;
|
|
3481
3490
|
widthPt: number;
|
|
3482
3491
|
heightPt: number;
|
|
3492
|
+
/** Effective DrawingML transform for grouped pictures. */
|
|
3493
|
+
rotation?: number;
|
|
3494
|
+
flipH?: boolean;
|
|
3495
|
+
flipV?: boolean;
|
|
3483
3496
|
/** true = wp:anchor (absolute positioned), false/undefined = wp:inline (flows with text) */
|
|
3484
3497
|
anchor?: boolean;
|
|
3485
3498
|
/** X offset in pt (anchor only) */
|
|
@@ -3979,6 +3992,9 @@ declare interface MediaElement {
|
|
|
3979
3992
|
y: number;
|
|
3980
3993
|
width: number;
|
|
3981
3994
|
height: number;
|
|
3995
|
+
rotation: number;
|
|
3996
|
+
flipH: boolean;
|
|
3997
|
+
flipV: boolean;
|
|
3982
3998
|
/** "audio" or "video" */
|
|
3983
3999
|
mediaKind: 'audio' | 'video';
|
|
3984
4000
|
/** Poster image zip path (e.g. "ppt/media/image2.png"). Empty when no poster. */
|
|
@@ -6405,6 +6421,9 @@ declare interface ShapeInfo {
|
|
|
6405
6421
|
h: number;
|
|
6406
6422
|
/** Rotation in degrees, clockwise. */
|
|
6407
6423
|
rot: number;
|
|
6424
|
+
/** Effective DrawingML reflection after composing parent groups. */
|
|
6425
|
+
flipH?: boolean;
|
|
6426
|
+
flipV?: boolean;
|
|
6408
6427
|
fillColor?: string;
|
|
6409
6428
|
strokeColor?: string;
|
|
6410
6429
|
/** Stroke width in EMU. 0 = no stroke. */
|
|
@@ -6496,6 +6515,8 @@ declare interface ShapeRun {
|
|
|
6496
6515
|
strokeWidth?: number;
|
|
6497
6516
|
/** `<a:ln><a:prstDash val>` — ECMA-376 §20.1.8.48. Absent = solid. */
|
|
6498
6517
|
strokeDash?: string | null;
|
|
6518
|
+
/** Normalized line cap: `butt` | `round` | `square`. */
|
|
6519
|
+
strokeCap?: CanvasLineCap | null;
|
|
6499
6520
|
/** `<a:ln><a:headEnd>` line-start decoration (ECMA-376 §20.1.8.3). */
|
|
6500
6521
|
headEnd?: LineEnd | null;
|
|
6501
6522
|
/** `<a:ln><a:tailEnd>` line-end decoration (ECMA-376 §20.1.8.3). */
|
|
@@ -6930,6 +6951,8 @@ declare interface Stroke {
|
|
|
6930
6951
|
width: number;
|
|
6931
6952
|
/** OOXML prstDash value: "dash", "dot", "dashDot", "lgDash", "lgDashDot", etc. */
|
|
6932
6953
|
dashStyle?: string;
|
|
6954
|
+
/** Canvas line cap normalized from DrawingML/VML (`flat` → `butt`). */
|
|
6955
|
+
lineCap?: CanvasLineCap;
|
|
6933
6956
|
/** Arrow head at the start of the line */
|
|
6934
6957
|
headEnd?: ArrowEnd;
|
|
6935
6958
|
/** Arrow head at the end of the line */
|
|
@@ -6999,6 +7022,9 @@ declare interface TableElement {
|
|
|
6999
7022
|
y: number;
|
|
7000
7023
|
width: number;
|
|
7001
7024
|
height: number;
|
|
7025
|
+
rotation: number;
|
|
7026
|
+
flipH: boolean;
|
|
7027
|
+
flipV: boolean;
|
|
7002
7028
|
/** Column widths in EMU */
|
|
7003
7029
|
cols: number[];
|
|
7004
7030
|
rows: TableRow[];
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -251,6 +251,9 @@ export declare interface ChartElement {
|
|
|
251
251
|
y: number;
|
|
252
252
|
width: number;
|
|
253
253
|
height: number;
|
|
254
|
+
rotation: number;
|
|
255
|
+
flipH: boolean;
|
|
256
|
+
flipV: boolean;
|
|
254
257
|
/**
|
|
255
258
|
* The chart payload, already in the canonical {@link ChartModel} shape emitted
|
|
256
259
|
* by the Rust parser (`ooxml_common::chart::ChartModel`). Passed straight to
|
|
@@ -1491,6 +1494,9 @@ export declare interface MediaElement {
|
|
|
1491
1494
|
y: number;
|
|
1492
1495
|
width: number;
|
|
1493
1496
|
height: number;
|
|
1497
|
+
rotation: number;
|
|
1498
|
+
flipH: boolean;
|
|
1499
|
+
flipV: boolean;
|
|
1494
1500
|
/** "audio" or "video" */
|
|
1495
1501
|
mediaKind: 'audio' | 'video';
|
|
1496
1502
|
/** Poster image zip path (e.g. "ppt/media/image2.png"). Empty when no poster. */
|
|
@@ -3322,6 +3328,8 @@ export declare interface Stroke {
|
|
|
3322
3328
|
width: number;
|
|
3323
3329
|
/** OOXML prstDash value: "dash", "dot", "dashDot", "lgDash", "lgDashDot", etc. */
|
|
3324
3330
|
dashStyle?: string;
|
|
3331
|
+
/** Canvas line cap normalized from DrawingML/VML (`flat` → `butt`). */
|
|
3332
|
+
lineCap?: CanvasLineCap;
|
|
3325
3333
|
/** Arrow head at the start of the line */
|
|
3326
3334
|
headEnd?: ArrowEnd;
|
|
3327
3335
|
/** Arrow head at the end of the line */
|
|
@@ -3362,6 +3370,9 @@ export declare interface TableElement {
|
|
|
3362
3370
|
y: number;
|
|
3363
3371
|
width: number;
|
|
3364
3372
|
height: number;
|
|
3373
|
+
rotation: number;
|
|
3374
|
+
flipH: boolean;
|
|
3375
|
+
flipV: boolean;
|
|
3365
3376
|
/** Column widths in EMU */
|
|
3366
3377
|
cols: number[];
|
|
3367
3378
|
rows: TableRow[];
|
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -1916,6 +1916,9 @@ export declare interface ShapeInfo {
|
|
|
1916
1916
|
h: number;
|
|
1917
1917
|
/** Rotation in degrees, clockwise. */
|
|
1918
1918
|
rot: number;
|
|
1919
|
+
/** Effective DrawingML reflection after composing parent groups. */
|
|
1920
|
+
flipH?: boolean;
|
|
1921
|
+
flipV?: boolean;
|
|
1919
1922
|
fillColor?: string;
|
|
1920
1923
|
strokeColor?: string;
|
|
1921
1924
|
/** Stroke width in EMU. 0 = no stroke. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as e, at as t, et as n, rt as r } from "./find-cursor-
|
|
1
|
+
import { Y as e, at as t, et as n, rt as r } from "./find-cursor-CABDFafh.js";
|
|
2
2
|
//#region packages/core/src/image/duotone-bitmap-by-path.ts
|
|
3
3
|
function i(e, t) {
|
|
4
4
|
return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as e, At as t, B as n, Bt as r, C as i, Dt as a, E as o, Et as s, Ft as c, G as l, H as u, Ht as d, I as f, It as p, J as m, Jt as h, K as g, L as _, Lt as v, M as y, Mt as b, N as x, Nt as S, O as C, Ot as w, P as T, Pt as E, S as D, T as O, Tt as k, U as A, Ut as j, V as M, W as N, Xt as P, Yt as F, _ as ee, _t as I, b as L, bt as R, ct as z, d as B, f as V, gt as H, h as U, i as te, it as W, j as ne, jt as G, kt as re, l as ie, lt as ae, m as oe, n as se, nt as ce, o as le, p as ue, pt as K, q as de, qt as fe, r as q, t as pe, tt as me, v as he, w as J, wt as ge, x as _e, y as ve, z as ye, zt as be } from "./find-cursor-
|
|
2
|
-
import { a as xe, i as Se, n as Ce, r as we, t as Te } from "./visible-index-
|
|
1
|
+
import { $ as e, At as t, B as n, Bt as r, C as i, Dt as a, E as o, Et as s, Ft as c, G as l, H as u, Ht as d, I as f, It as p, J as m, Jt as h, K as g, L as _, Lt as v, M as y, Mt as b, N as x, Nt as S, O as C, Ot as w, P as T, Pt as E, S as D, T as O, Tt as k, U as A, Ut as j, V as M, W as N, Xt as P, Yt as F, _ as ee, _t as I, b as L, bt as R, ct as z, d as B, f as V, gt as H, h as U, i as te, it as W, j as ne, jt as G, kt as re, l as ie, lt as ae, m as oe, n as se, nt as ce, o as le, p as ue, pt as K, q as de, qt as fe, r as q, t as pe, tt as me, v as he, w as J, wt as ge, x as _e, y as ve, z as ye, zt as be } from "./find-cursor-CABDFafh.js";
|
|
2
|
+
import { a as xe, i as Se, n as Ce, r as we, t as Te } from "./visible-index-YRawP6W8.js";
|
|
3
3
|
import { t as Ee } from "./mathjax-Dk_JzbFj.js";
|
|
4
|
-
import { t as De } from "./segments-
|
|
4
|
+
import { t as De } from "./segments-2VsQNClV.js";
|
|
5
5
|
//#region packages/core/src/sparkline/renderer.ts
|
|
6
6
|
function Oe(e, t, n) {
|
|
7
7
|
let { values: r } = n;
|
|
@@ -2857,7 +2857,7 @@ function Mr(e, n, r, i, a, o, s, c, l, u, d, f) {
|
|
|
2857
2857
|
e.restore();
|
|
2858
2858
|
}
|
|
2859
2859
|
function Nr(n, r, i, a, o, s, c, l) {
|
|
2860
|
-
if (n.save(), r.rot
|
|
2860
|
+
if (n.save(), r.rot !== 0 || r.flipH || r.flipV ? (n.translate(i + o / 2, a + s / 2), n.rotate(r.rot * Math.PI / 180), n.scale(r.flipH ? -1 : 1, r.flipV ? -1 : 1), n.translate(-o / 2, -s / 2)) : n.translate(i, a), r.geom.type === "custom") for (let e of r.geom.paths) {
|
|
2861
2861
|
if (e.w <= 0 || e.h <= 0) continue;
|
|
2862
2862
|
let t = o / e.w, i = s / e.h;
|
|
2863
2863
|
n.beginPath();
|
|
@@ -3550,7 +3550,7 @@ var Ei = class e {
|
|
|
3550
3550
|
i = await e.arrayBuffer();
|
|
3551
3551
|
} else i = t;
|
|
3552
3552
|
i = h(await fe(i, n.password));
|
|
3553
|
-
let a = new e(r === "worker" ? (await import("./render-worker-host-
|
|
3553
|
+
let a = new e(r === "worker" ? (await import("./render-worker-host-CJc3E4ej.js")).createRenderWorker() : new Pe(), r, n.wasmUrl);
|
|
3554
3554
|
return await a._load(i, n), a;
|
|
3555
3555
|
}
|
|
3556
3556
|
async _load(e, t = {}) {
|
package/dist/xlsx.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Yt as e, gt as t, l as n } from "./find-cursor-
|
|
2
|
-
import { i as r, n as i, r as a } from "./xlsx-
|
|
1
|
+
import { Yt as e, gt as t, l as n } from "./find-cursor-CABDFafh.js";
|
|
2
|
+
import { i as r, n as i, r as a } from "./xlsx-CHfWgWy8.js";
|
|
3
3
|
export { e as OoxmlError, i as XlsxViewer, a as XlsxWorkbook, t as autoResize, n as openExternalHyperlink, r as resolveSharedStrings };
|
package/dist/xlsx_parser_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED