@silurus/ooxml 0.80.2 → 0.81.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 +57 -77
- package/dist/assets/render-worker-C2ACcLes.js +11 -0
- package/dist/assets/render-worker-Cx5uR77k.js +10 -0
- package/dist/assets/render-worker-DtU8oQZ7.js +24 -0
- package/dist/{canvas-viewer-mechanics-D-r6wHY_.js → canvas-viewer-mechanics-CqxKRGCp.js} +1 -1
- package/dist/chart-ex.mjs +1017 -0
- package/dist/{document-pull-client-Cukkyojh.js → document-pull-client-Ux4a_ax8.js} +4540 -4412
- package/dist/{docx-BlELeDNF.js → docx-SEyQ4gS-.js} +79 -75
- package/dist/docx.mjs +5 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-Bvtp0Gt6.js → line-distribute-BBGvvwLt.js} +17 -16
- package/dist/{line-metrics-DdEJYxjx.js → line-metrics-Baz31mML.js} +663 -7488
- package/dist/math.mjs +29 -24
- package/dist/node.mjs +248 -247
- package/dist/plot-area-frame-Dg1VIpUU.js +3669 -0
- package/dist/{pptx-JBkXh6Cy.js → pptx-5lQrMvMR.js} +236 -232
- package/dist/pptx.mjs +6 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +102 -97
- package/dist/{render-CoqMHcbF.js → render-DEHjijQD.js} +1 -1
- package/dist/{render-worker-host-CM1JXVqg.js → render-worker-host-B1nbV_k7.js} +1 -1
- package/dist/{render-worker-host-DFtd9Z-J.js → render-worker-host-Bze5M6k5.js} +1 -1
- package/dist/{render-worker-host-Br7ZDyGE.js → render-worker-host-Dg_74V64.js} +1 -1
- package/dist/renderer-DuopJE1K.js +5855 -0
- package/dist/{renderer-module-contract-BNGz8HvO.js → renderer-module-contract-0bO_5SC0.js} +4 -3
- package/dist/{resource-measurement-CgMubiAI.js → resource-measurement-DRLp4nFt.js} +12 -11
- package/dist/{session-DkPblDiq.js → session-CNVc3VJ4.js} +8 -8
- package/dist/{slide-pull-client-m2blvngt.js → slide-pull-client-CzutXnGc.js} +888 -1082
- package/dist/three-d-BYiWCNlz.js +1345 -0
- package/dist/three-d.mjs +1238 -798
- package/dist/types/chart-ex.d.ts +949 -0
- package/dist/types/docx.d.ts +325 -18
- package/dist/types/index.d.ts +325 -26
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +303 -14
- package/dist/types/pptx.d.ts +314 -22
- package/dist/types/region-map.d.ts +318 -6
- package/dist/types/three-d.d.ts +318 -6
- package/dist/types/xlsx.d.ts +317 -18
- package/dist/{worksheet-pull-client-BntP6RiO.js → worksheet-pull-client-Cxj3Ej0s.js} +19 -19
- package/dist/{xlsx-dhsUXUpX.js → xlsx-Bl3TIEVu.js} +1313 -1279
- package/dist/xlsx.mjs +6 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +7 -1
- package/dist/assets/render-worker-BD1_LaFD.js +0 -9
- package/dist/assets/render-worker-BIqMQFkZ.js +0 -8
- package/dist/assets/render-worker-DuvX4_li.js +0 -22
- package/dist/chart-number-format-qLhnk6hj.js +0 -475
- package/dist/three-d-C28kqDym.js +0 -1086
- /package/dist/{highlight-rect-BuX5rWP4.js → highlight-rect-BqcZMHUE.js} +0 -0
- /package/dist/{mathjax-DgAl7Yi5.js → mathjax-DJa-Q93p.js} +0 -0
- /package/dist/{transfer-CKZ79zFw.js → transfer-D0U6Uhn4.js} +0 -0
- /package/dist/{visible-index-BjesVGhg.js → visible-index-DbDuGMCE.js} +0 -0
|
@@ -19,12 +19,13 @@ function r(e, r, i) {
|
|
|
19
19
|
return t.set(e, a), e;
|
|
20
20
|
}
|
|
21
21
|
function i(e) {
|
|
22
|
-
let n = e.math ? t.get(e.math) : void 0, r = e.threeD ? t.get(e.threeD) : void 0, i = e.regionMap ? t.get(e.regionMap) : void 0, a = {
|
|
22
|
+
let n = e.math ? t.get(e.math) : void 0, r = e.threeD ? t.get(e.threeD) : void 0, i = e.regionMap ? t.get(e.regionMap) : void 0, a = e.chartEx ? t.get(e.chartEx) : void 0, o = {
|
|
23
23
|
...n ? { math: n } : {},
|
|
24
24
|
...r ? { threeD: r } : {},
|
|
25
|
-
...i ? { regionMap: i } : {}
|
|
25
|
+
...i ? { regionMap: i } : {},
|
|
26
|
+
...a ? { chartEx: a } : {}
|
|
26
27
|
};
|
|
27
|
-
return Object.keys(
|
|
28
|
+
return Object.keys(o).length > 0 ? Object.freeze(o) : void 0;
|
|
28
29
|
}
|
|
29
30
|
//#endregion
|
|
30
31
|
export { i as n, r as t };
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as e, bt as t, kt as n } from "./line-metrics-Baz31mML.js";
|
|
2
|
+
import { cn as r } from "./plot-area-frame-Dg1VIpUU.js";
|
|
2
3
|
//#region packages/core/src/image/duotone-bitmap-by-path.ts
|
|
3
4
|
function i(e, t) {
|
|
4
5
|
return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
|
|
5
6
|
}
|
|
6
7
|
var a = "duotone";
|
|
7
8
|
async function o(o, s, c, l, u = {}) {
|
|
8
|
-
let { offscreenFactory: d,
|
|
9
|
-
return !c || !
|
|
10
|
-
let { w:
|
|
11
|
-
if (
|
|
12
|
-
bitmap:
|
|
9
|
+
let { offscreenFactory: d, failClosedOnDuotoneFailure: f = !1, ...p } = u, m = await e(o, s, l, p);
|
|
10
|
+
return !c || !m ? m : n(a, `${i(o, c)}${f ? "|strict" : ""}`, l, async () => {
|
|
11
|
+
let { w: e, h: n } = r(m);
|
|
12
|
+
if (e <= 0 || n <= 0) return {
|
|
13
|
+
bitmap: f ? null : m,
|
|
13
14
|
owned: !1
|
|
14
15
|
};
|
|
15
|
-
let i = await
|
|
16
|
-
width:
|
|
16
|
+
let i = await t(m, c, {
|
|
17
|
+
width: e,
|
|
17
18
|
height: n,
|
|
18
19
|
offscreenFactory: d
|
|
19
|
-
});
|
|
20
|
+
}), a = f && i === m ? null : i;
|
|
20
21
|
return {
|
|
21
|
-
bitmap:
|
|
22
|
-
owned:
|
|
22
|
+
bitmap: a,
|
|
23
|
+
owned: a !== m
|
|
23
24
|
};
|
|
24
25
|
});
|
|
25
26
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { c as t, i as n } from "./slide-pull-client-
|
|
3
|
-
import { B as r, F as i, H as a, I as o, K as s, P as c, R as l,
|
|
4
|
-
import { t as b } from "./transfer-
|
|
2
|
+
import { c as t, i as n } from "./slide-pull-client-CzutXnGc.js";
|
|
3
|
+
import { B as r, F as i, H as a, I as o, K as s, P as c, R as l, Yt as u, at as d, dt as f, ft as p, it as m, lt as h, ot as g, rt as _, st as v, ut as y } from "./line-metrics-Baz31mML.js";
|
|
4
|
+
import { t as b } from "./transfer-D0U6Uhn4.js";
|
|
5
5
|
//#region packages/pptx/src/slide-cursor-operation.ts
|
|
6
6
|
function x(e) {
|
|
7
7
|
try {
|
|
@@ -232,7 +232,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
232
232
|
...n,
|
|
233
233
|
requestId: e++
|
|
234
234
|
}, (e) => {
|
|
235
|
-
e.kind === "error" && (r =
|
|
235
|
+
e.kind === "error" && (r = m(e.error));
|
|
236
236
|
}), r) throw r;
|
|
237
237
|
}
|
|
238
238
|
this.sessions.clear(), await this.operationTail, this.pendingOpens.clear(), this.archive() && await this.executeArchive((e) => e.close_presentation_session()), this.coordinatorGeneration = new o(), this.resourceFailure = void 0;
|
|
@@ -295,7 +295,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
295
295
|
return x(this.executeArchive);
|
|
296
296
|
}
|
|
297
297
|
latchResourceFailure(e) {
|
|
298
|
-
let t = e instanceof
|
|
298
|
+
let t = e instanceof u ? e : d(e);
|
|
299
299
|
t && (this.resourceFailure ??= t);
|
|
300
300
|
}
|
|
301
301
|
staleLifecycleResponse(e) {
|
|
@@ -325,13 +325,13 @@ function C(e, t) {
|
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region packages/core/src/internal/wasm-runtime-generation.ts
|
|
327
327
|
function ie(e) {
|
|
328
|
-
return
|
|
328
|
+
return f(e) ? new h(`WASM parser trapped and was recycled: ${e instanceof Error ? e.message : String(e)}`) : null;
|
|
329
329
|
}
|
|
330
330
|
var w = class {
|
|
331
331
|
realm;
|
|
332
332
|
live = /* @__PURE__ */ new Set();
|
|
333
333
|
constructor(e, t) {
|
|
334
|
-
this.realm = new
|
|
334
|
+
this.realm = new p(() => e.initSync({ module: t }), () => e.reinit({ module_or_path: t }), ie), this.realm.onPoison((e) => {
|
|
335
335
|
for (let t of this.live) t.poison(e);
|
|
336
336
|
this.live.clear();
|
|
337
337
|
});
|
|
@@ -712,7 +712,7 @@ async function fe(e, t, i = {}) {
|
|
|
712
712
|
try {
|
|
713
713
|
c?.close((e) => e.free());
|
|
714
714
|
} catch {}
|
|
715
|
-
let t =
|
|
715
|
+
let t = d(e) ?? e;
|
|
716
716
|
throw s.fail(t), t;
|
|
717
717
|
}
|
|
718
718
|
}
|