@silurus/ooxml 0.89.2 → 0.89.3
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 +4 -3
- package/dist/{abort-VrnK7mdP.js → abort-JztSoyw2.js} +0 -2
- package/dist/assets/render-worker-BUa1gyCE.js +15 -0
- package/dist/{bounded-raw-part-cache-C3daknU-.js → bounded-raw-part-cache-Bi_VqXmg.js} +7 -115
- package/dist/{bundled-asset-url-E2nXURF9.js → bundled-asset-url-BMJ8vNHP.js} +0 -2
- package/dist/{canvas-viewer-mechanics-SZWSnn6j.js → canvas-viewer-mechanics-ycCX6v-z.js} +3 -25
- package/dist/{cfb-guard-dNeUiANF.js → cfb-guard-BIaHdonq.js} +1 -13
- package/dist/chart-ex.mjs +4 -7
- package/dist/{chunk-Dy4uBu1J.js → chunk-D5OxutzX.js} +0 -2
- package/dist/{comment-overlay-controller-CHDxT0e7.js → comment-overlay-controller-CR5ySvki.js} +2 -22
- package/dist/{comment-ui-runtime-Dk2qrPy_.js → comment-ui-runtime-BWhLz4gq.js} +5 -7
- package/dist/comment-ui-runtime-BtP_TpvT.js +2 -0
- package/dist/{comment-ui-runtime-BcwaRnMR.js → comment-ui-runtime-CwTOCwA8.js} +5 -7
- package/dist/{delimited-text-worker-host-CikWU6_m.js → delimited-text-worker-host-RwvuSsP2.js} +0 -4
- package/dist/{document-model-source-BD2VSd2L.js → document-model-source-Csow9uxO.js} +9 -11
- package/dist/{document-pull-client-DhSGspvi.js → document-pull-client-CHpz0Q1p.js} +7572 -7285
- package/dist/{document-pull-worker-D-E0Iz3P.js → document-pull-worker-1ZJv9f9W.js} +3 -7
- package/dist/{docx-CXfILbzI.js → docx-D9E0vCq-.js} +12 -18
- package/dist/{docx-CCZBO1WQ.js → docx-GXxH0AwW.js} +13 -65
- package/dist/{docx-model-source-Ci6xb487.js → docx-model-source-aKx2gZH9.js} +7 -9
- package/dist/docx.mjs +6 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{drawingml-shape-Bp0yEZHC.js → drawingml-shape-BwELUfNW.js} +2 -6
- package/dist/{duotone-DN8P4aXe.js → duotone-BI7CoghW.js} +2 -6
- package/dist/{emf-CGFQIz6c.js → emf-DgUBx9BU.js} +2 -4
- package/dist/{font-preload-demand-CGOB-MoE.js → font-preload-demand-BuMy4iJ1.js} +2 -8
- package/dist/{grid-geometry-C3IG20ut.js → grid-geometry-CqTDvpDr.js} +1 -6
- package/dist/{host-layout-DVMw8hDY.js → host-layout-Cz_lCuTZ.js} +0 -1
- package/dist/{host-layout-measure-BAysJILu.js → host-layout-measure-GU0oJ4Me.js} +1 -3
- package/dist/{in-process-pull-transport-DuXcPZng.js → in-process-pull-transport-BPJ7M0uC.js} +0 -2
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +3 -5
- package/dist/{line-distribute-DhQqysA2.js → line-distribute-C_CJisnJ.js} +2 -18
- package/dist/math.mjs +2 -8
- package/dist/{mathjax-BhwN6ilc.js → mathjax-DvwccQ8e.js} +0 -2
- package/dist/{model-source-kz_NkZqT.js → model-source-COXegBNA.js} +1 -3
- package/dist/{model-source-BkmyX_r-.js → model-source-DLXFe4_2.js} +3 -5
- package/dist/{model-source-session-CnPCTRDD.js → model-source-session-B3WVQCM5.js} +5 -9
- package/dist/{model-source-session-CF4iXav8.js → model-source-session-BVZBHZ04.js} +5 -11
- package/dist/{model-source-session-CJmkItIK.js → model-source-session-DfUgVpr1.js} +4 -8
- package/dist/node.mjs +6 -6
- package/dist/{pixel-budget-BpTYrepD.js → pixel-budget-DI82Hn3R.js} +0 -2
- package/dist/{plot-area-frame-Bs_j4uu7.js → plot-area-frame-D3JtHvov.js} +1 -167
- package/dist/{pptx-BhmLP_Ed.js → pptx-BD0jwWs6.js} +9 -11
- package/dist/{pptx-Bo9hCGQU.js → pptx-CLyebeF_.js} +16 -62
- package/dist/{pptx-model-source-J0SrVkO6.js → pptx-model-source-D_2mnSxI.js} +5 -7
- package/dist/pptx.mjs +7 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{presentation-model-source-CebYmrOD.js → presentation-model-source-rWZ3Y-S_.js} +8 -10
- package/dist/{raster-target-YQ4G6rxo.js → raster-target-Ca3tyA0L.js} +0 -2
- package/dist/{read-only-comment-decoration-PidH0wnP.js → read-only-comment-decoration-B06YO2zk.js} +0 -4
- package/dist/{read-only-comment-margin-B52rDVKo.js → read-only-comment-margin-Ee9Y6vPg.js} +0 -2
- package/dist/region-map.mjs +4 -7
- package/dist/{render-hT2OVZUi.js → render-Cs1bgbEm.js} +3 -5
- package/dist/{render-worker-host-Desevuoc.js → render-worker-host-BR7n4xKy.js} +0 -4
- package/dist/render-worker-host-BxsA-yJo.js +5 -0
- package/dist/{render-worker-host-BmAQ-sWT.js → render-worker-host-CZC0WOn8.js} +0 -4
- package/dist/{renderer-CvZ4JmoL.js → renderer-DFDF48zw.js} +7 -55
- package/dist/{renderer-module-contract-CWM7jv6d.js → renderer-module-contract-BuTx2FWJ.js} +0 -2
- package/dist/{renderer-BFWqhLEt.js → renderer-xdugdcMd.js} +6 -70
- package/dist/{resource-measurement-DBiUwblM.js → resource-measurement-CTGrNAsD.js} +2 -18
- package/dist/{session-CWDKFWCh.js → session-B5CgMc2N.js} +7 -17
- package/dist/{slide-pull-client-BuBvXMyc.js → slide-pull-client-43mS9T70.js} +9 -63
- package/dist/{three-d-BKwNPAP4.js → three-d-ByHGsYrX.js} +1 -11
- package/dist/three-d.mjs +4 -17
- package/dist/{tiff-contract-C6M3QcPp.js → tiff-contract-DEd8CGuz.js} +0 -2
- package/dist/tiff.mjs +5 -8
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +12 -11
- package/dist/types/index.d.ts +16 -15
- package/dist/types/internal-companion.d.ts +1 -1
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +7 -6
- package/dist/types/pptx.d.ts +11 -11
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/tiff.d.ts +1 -1
- package/dist/types/xlsx.d.ts +11 -11
- package/dist/{visible-index-FeVA0mGE.js → visible-index-vN-4BNn7.js} +0 -2
- package/dist/{wasm-loader-rlgHmcSv.js → wasm-loader-KAOyLXzf.js} +0 -4
- package/dist/{wasm-runtime-generation-BWGfM44b.js → wasm-runtime-generation-BsWKRY7U.js} +1 -3
- package/dist/{workbook-model-source-Che8Zbjw.js → workbook-model-source-ChIQjX9a.js} +9 -11
- package/dist/{worker-source-UAi3GNcM.js → worker-source-C29EQNUj.js} +0 -2
- package/dist/{worker-source-SbudzjYL.js → worker-source-D3NwPe6l.js} +0 -2
- package/dist/{worker-source-DrwhR9fw.js → worker-source-ZQE9C1j6.js} +0 -2
- package/dist/{worksheet-pull-client-Cxzj6uuB.js → worksheet-pull-client-D5zAevQv.js} +4 -18
- package/dist/{xlsx-CUVUep5I.js → xlsx-DelYm4VZ.js} +17 -61
- package/dist/{xlsx-C5BSwMUd.js → xlsx-S6orTmKI.js} +8 -16
- package/dist/{xlsx-model-source-C3_PiPBo.js → xlsx-model-source-Cm9ocDgT.js} +8 -12
- package/dist/xlsx.mjs +7 -7
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +2 -2
- package/dist/assets/render-worker-D_SMt5nl.js +0 -15
- package/dist/comment-ui-runtime-B7ZvovcS.js +0 -2
- package/dist/render-worker-host-Cz224I38.js +0 -9
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { t as e } from "./model-source-
|
|
2
|
-
|
|
3
|
-
var t = "0.89.2", n = class extends Error {
|
|
1
|
+
import { t as e } from "./model-source-COXegBNA.js";
|
|
2
|
+
var t = "0.89.3", n = class extends Error {
|
|
4
3
|
constructor(n, r) {
|
|
5
4
|
super(`Companion requires @silurus/ooxml ${n} (${r}); installed runtime is ${t} (${e})`), this.code = "companion-runtime-mismatch", this.name = "CompanionRuntimeMismatchError";
|
|
6
5
|
}
|
|
7
6
|
};
|
|
8
7
|
function r(e, t) {
|
|
9
|
-
if (e !== "0.89.
|
|
8
|
+
if (e !== "0.89.3" || t !== "ooxml-model-source-module/v2") throw new n(e, t);
|
|
10
9
|
}
|
|
11
|
-
//#endregion
|
|
12
10
|
export { n as CompanionRuntimeMismatchError, e as MODEL_SOURCE_MODULE_PROTOCOL, r as assertCompanionRuntime };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Ao as e, ko as t } from "./plot-area-frame-
|
|
2
|
-
import { Lt as n, Rt as r, an as i, in as a, sn as o, tn as s } from "./bounded-raw-part-cache-
|
|
3
|
-
//#region packages/core/src/fonts/substitute-script.ts
|
|
1
|
+
import { Ao as e, ko as t } from "./plot-area-frame-D3JtHvov.js";
|
|
2
|
+
import { Lt as n, Rt as r, an as i, in as a, sn as o, tn as s } from "./bounded-raw-part-cache-Bi_VqXmg.js";
|
|
4
3
|
var c = /^\p{Cf}$/u, l = /^\s$/u, u = /^\p{M}$/u, d = /^\p{Script_Extensions=Arabic}$/u, f = /^(?=\p{Script=Arabic})\p{L}$/u;
|
|
5
4
|
function p(e, t) {
|
|
6
5
|
for (let n of t) if (!(l.test(n) || c.test(n))) switch (e) {
|
|
@@ -50,8 +49,6 @@ function h(e, t, n) {
|
|
|
50
49
|
function g(e, t, n) {
|
|
51
50
|
return !e?.script || h(e.script, t, n);
|
|
52
51
|
}
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region packages/core/src/fonts/symbol-font.ts
|
|
55
52
|
var _ = {
|
|
56
53
|
167: "♣",
|
|
57
54
|
168: "♦",
|
|
@@ -133,8 +130,6 @@ function w(e, t) {
|
|
|
133
130
|
mapped: i ?? !1
|
|
134
131
|
}), n;
|
|
135
132
|
}
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region packages/core/src/text/em-box-center.ts
|
|
138
133
|
var T = .38;
|
|
139
134
|
function E(e, t, n) {
|
|
140
135
|
let r = e.textBaseline;
|
|
@@ -144,8 +139,6 @@ function E(e, t, n) {
|
|
|
144
139
|
let a = i.fontBoundingBoxAscent, o = i.fontBoundingBoxDescent;
|
|
145
140
|
return typeof a == "number" && typeof o == "number" && (a !== 0 || o !== 0) ? (a - o) / 2 : T * n;
|
|
146
141
|
}
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region packages/core/src/text/synthetic-em-box.ts
|
|
149
142
|
var D = .8, O = .2, k = {
|
|
150
143
|
textarchdown: {
|
|
151
144
|
adj: [["adj", "val 0"]],
|
|
@@ -2673,8 +2666,6 @@ function H(e, t, n, r) {
|
|
|
2673
2666
|
shear: g === 0 ? 0 : h / g
|
|
2674
2667
|
};
|
|
2675
2668
|
}
|
|
2676
|
-
//#endregion
|
|
2677
|
-
//#region packages/core/src/draw/double-border.ts
|
|
2678
2669
|
function U(e, t) {
|
|
2679
2670
|
let n = Math.max(1, Math.round(e * t / 3)), r = Math.max(1, Math.round(e * t / 3));
|
|
2680
2671
|
return {
|
|
@@ -2693,8 +2684,6 @@ function W(e, t, n, r, i, a, o) {
|
|
|
2693
2684
|
e.fillRect(r / o, n, s / o, i - n), e.fillRect((r + s + c) / o, n, s / o, i - n);
|
|
2694
2685
|
}
|
|
2695
2686
|
}
|
|
2696
|
-
//#endregion
|
|
2697
|
-
//#region packages/core/src/text/vertical-glyph-metrics.ts
|
|
2698
2687
|
function G(e, t) {
|
|
2699
2688
|
let n = e.textAlign, r = e.textBaseline;
|
|
2700
2689
|
e.textAlign = "center", e.textBaseline = "middle";
|
|
@@ -2703,8 +2692,6 @@ function G(e, t) {
|
|
|
2703
2692
|
let a = i.actualBoundingBoxAscent, o = i.actualBoundingBoxDescent;
|
|
2704
2693
|
return typeof a == "number" && typeof o == "number" ? (a - o) / 2 : 0;
|
|
2705
2694
|
}
|
|
2706
|
-
//#endregion
|
|
2707
|
-
//#region packages/core/src/text/line-gaps.ts
|
|
2708
2695
|
var K = (e) => e === 32 || e === 12288;
|
|
2709
2696
|
function q(e, t = {}) {
|
|
2710
2697
|
let n = t.prefix ? { ...t.prefix } : {
|
|
@@ -2764,8 +2751,6 @@ function q(e, t = {}) {
|
|
|
2764
2751
|
state: n
|
|
2765
2752
|
};
|
|
2766
2753
|
}
|
|
2767
|
-
//#endregion
|
|
2768
|
-
//#region packages/core/src/text/line-distribute.ts
|
|
2769
2754
|
function J(e, t, n = {}) {
|
|
2770
2755
|
let r = n.proportional ?? n.gapWidth !== void 0, { gaps: i, state: a } = n.gapModel ?? q(e, n), o = n.unweightedExpansion, s = t > 0 && o?.gaps.some((e) => e.kind === "boundary" || e.codePoint !== 32);
|
|
2771
2756
|
if (s && o && (i = o.gaps, a = {
|
|
@@ -2795,5 +2780,4 @@ function J(e, t, n = {}) {
|
|
|
2795
2780
|
...s ? { usedUnweightedExpansion: !0 } : {}
|
|
2796
2781
|
};
|
|
2797
2782
|
}
|
|
2798
|
-
//#endregion
|
|
2799
2783
|
export { h as _, W as a, N as c, D as d, O as f, w as g, S as h, U as i, z as l, C as m, q as n, R as o, E as p, G as r, V as s, J as t, H as u, m as v, g as y };
|
package/dist/math.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./renderer-module-contract-
|
|
2
|
-
import { n as t } from "./mathjax-
|
|
3
|
-
//#region packages/core/assets/mathjax-stix2.js?url
|
|
1
|
+
import { t as e } from "./renderer-module-contract-BuTx2FWJ.js";
|
|
2
|
+
import { n as t } from "./mathjax-DvwccQ8e.js";
|
|
4
3
|
var n = new URL("mathjax-stix2.js", import.meta.url).href, r = null;
|
|
5
4
|
function i(e) {
|
|
6
5
|
return new Promise((t, n) => {
|
|
@@ -35,8 +34,6 @@ async function c(e, n) {
|
|
|
35
34
|
...t(r)
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region packages/core/src/math/engine.ts
|
|
40
37
|
function l() {
|
|
41
38
|
return new URL(n, import.meta.url).href;
|
|
42
39
|
}
|
|
@@ -46,11 +43,8 @@ async function u() {
|
|
|
46
43
|
async function d(e) {
|
|
47
44
|
return c(e, l());
|
|
48
45
|
}
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/math.ts
|
|
51
46
|
var f = e({
|
|
52
47
|
loadMathJax: u,
|
|
53
48
|
mathMLToSvg: d
|
|
54
49
|
}, "math", { engineAssetUrl: l() });
|
|
55
|
-
//#endregion
|
|
56
50
|
export { f as math };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region packages/core/src/math/mathjax.ts
|
|
2
1
|
var e = 1e3;
|
|
3
2
|
function t(t) {
|
|
4
3
|
let n = /viewBox="([-\d.]+) ([-\d.]+) ([-\d.]+) ([-\d.]+)"/.exec(t);
|
|
@@ -17,5 +16,4 @@ function t(t) {
|
|
|
17
16
|
function n(e, t) {
|
|
18
17
|
return e.replace(/currentColor/g, t);
|
|
19
18
|
}
|
|
20
|
-
//#endregion
|
|
21
19
|
export { t as n, n as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./abort-
|
|
2
|
-
//#region packages/core/src/source/model-source.ts
|
|
1
|
+
import { n as e } from "./abort-JztSoyw2.js";
|
|
3
2
|
var t = "model source load was aborted", n = "ooxml-model-source-module/v2", r = new Set([
|
|
4
3
|
"docx",
|
|
5
4
|
"xlsx",
|
|
@@ -175,5 +174,4 @@ function x(e) {
|
|
|
175
174
|
let t = Object.getPrototypeOf(e);
|
|
176
175
|
return t === Object.prototype || t === null;
|
|
177
176
|
}
|
|
178
|
-
//#endregion
|
|
179
177
|
export { b as a, v as i, m as n, p as o, h as r, n as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./cfb-guard-
|
|
2
|
-
import { U as t } from "./bounded-raw-part-cache-
|
|
3
|
-
import { i as n, n as r, o as i } from "./model-source-
|
|
4
|
-
//#region packages/node/src/model-source.ts
|
|
1
|
+
import { t as e } from "./cfb-guard-BIaHdonq.js";
|
|
2
|
+
import { U as t } from "./bounded-raw-part-cache-Bi_VqXmg.js";
|
|
3
|
+
import { i as n, n as r, o as i } from "./model-source-COXegBNA.js";
|
|
5
4
|
async function a(a, s, c, l, u = (e) => t(e) ?? e) {
|
|
6
5
|
let d = a instanceof Uint8Array ? a : new Uint8Array(a), f = c.source === void 0 ? void 0 : i([c.source], s, d);
|
|
7
6
|
if (!f) return {
|
|
@@ -57,5 +56,4 @@ function o(e, t) {
|
|
|
57
56
|
}
|
|
58
57
|
} });
|
|
59
58
|
}
|
|
60
|
-
//#endregion
|
|
61
59
|
export { a as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { N as e, U as t, j as n } from "./bounded-raw-part-cache-
|
|
2
|
-
import { n as r } from "./abort-
|
|
3
|
-
import { a as i } from "./model-source-
|
|
4
|
-
import { t as a } from "./in-process-pull-transport-
|
|
5
|
-
import { n as o, r as s, t as c } from "./document-pull-worker-
|
|
6
|
-
//#region packages/docx/src/internal/worker-document-source.ts
|
|
1
|
+
import { N as e, U as t, j as n } from "./bounded-raw-part-cache-Bi_VqXmg.js";
|
|
2
|
+
import { n as r } from "./abort-JztSoyw2.js";
|
|
3
|
+
import { a as i } from "./model-source-COXegBNA.js";
|
|
4
|
+
import { t as a } from "./in-process-pull-transport-BPJ7M0uC.js";
|
|
5
|
+
import { n as o, r as s, t as c } from "./document-pull-worker-1ZJv9f9W.js";
|
|
7
6
|
var l = [
|
|
8
7
|
"open_document_cursor",
|
|
9
8
|
"pull_document_chunk",
|
|
@@ -21,8 +20,6 @@ function d(e) {
|
|
|
21
20
|
for (let t of Object.keys(e)) if (t !== "showTrackedChanges") throw TypeError(`unsupported DOCX model source view default: ${t}`);
|
|
22
21
|
return e.showTrackedChanges === void 0 ? {} : { showTrackedChanges: e.showTrackedChanges };
|
|
23
22
|
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region packages/docx/src/internal/node-model-source-acquisition.ts
|
|
26
23
|
var f = "DOCX document session was aborted";
|
|
27
24
|
async function p(i, a, o) {
|
|
28
25
|
let c = !1, l = () => {
|
|
@@ -81,5 +78,4 @@ async function m(e, n, r, i, l) {
|
|
|
81
78
|
throw r.fail(i), i;
|
|
82
79
|
}
|
|
83
80
|
}
|
|
84
|
-
//#endregion
|
|
85
81
|
export { p as acquireDocxSessionFromArchive, u as validateDocxModelSourceArchive, d as validateDocxModelSourceViewDefaults };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { B as e, N as t, U as n, j as r } from "./bounded-raw-part-cache-
|
|
2
|
-
import { n as i } from "./abort-
|
|
3
|
-
import { b as a } from "./worksheet-pull-client-
|
|
4
|
-
import { a as o } from "./model-source-
|
|
5
|
-
import { t as s } from "./host-layout-
|
|
6
|
-
//#region packages/xlsx/src/internal/worker-worksheet-source.ts
|
|
1
|
+
import { B as e, N as t, U as n, j as r } from "./bounded-raw-part-cache-Bi_VqXmg.js";
|
|
2
|
+
import { n as i } from "./abort-JztSoyw2.js";
|
|
3
|
+
import { b as a } from "./worksheet-pull-client-D5zAevQv.js";
|
|
4
|
+
import { a as o } from "./model-source-COXegBNA.js";
|
|
5
|
+
import { t as s } from "./host-layout-Cz_lCuTZ.js";
|
|
7
6
|
var c = [
|
|
8
7
|
"open_sheet_cursor",
|
|
9
8
|
"pull_sheet_cursor",
|
|
@@ -22,8 +21,6 @@ function u(e) {
|
|
|
22
21
|
let [t] = Object.keys(e);
|
|
23
22
|
if (t !== void 0) throw TypeError(`unsupported XLSX model source view default: ${t}`);
|
|
24
23
|
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region packages/xlsx/src/internal/archive-bootstrap-source.ts
|
|
27
24
|
function d(t, n) {
|
|
28
25
|
let r = t(), i = n();
|
|
29
26
|
return {
|
|
@@ -31,8 +28,6 @@ function d(t, n) {
|
|
|
31
28
|
usage: i === void 0 ? void 0 : e(i)
|
|
32
29
|
};
|
|
33
30
|
}
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region packages/xlsx/src/internal/node-model-source-acquisition.ts
|
|
36
31
|
var f = "XLSX workbook session was aborted";
|
|
37
32
|
function p(e, o = {}) {
|
|
38
33
|
let s;
|
|
@@ -67,5 +62,4 @@ function p(e, o = {}) {
|
|
|
67
62
|
throw s?.fail(r), r;
|
|
68
63
|
}
|
|
69
64
|
}
|
|
70
|
-
//#endregion
|
|
71
65
|
export { p as acquireXlsxSessionFromArchive, s as configureHostLayout, l as validateXlsxModelSourceArchive, u as validateXlsxModelSourceViewDefaults };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { a as e } from "./slide-pull-client-
|
|
2
|
-
import { H as t, N as n, j as r } from "./bounded-raw-part-cache-
|
|
3
|
-
import { n as i } from "./abort-
|
|
4
|
-
import { a } from "./model-source-
|
|
5
|
-
//#region packages/pptx/src/internal/worker-presentation-source.ts
|
|
1
|
+
import { a as e } from "./slide-pull-client-43mS9T70.js";
|
|
2
|
+
import { H as t, N as n, j as r } from "./bounded-raw-part-cache-Bi_VqXmg.js";
|
|
3
|
+
import { n as i } from "./abort-JztSoyw2.js";
|
|
4
|
+
import { a } from "./model-source-COXegBNA.js";
|
|
6
5
|
var o = [
|
|
7
6
|
"pull_slide",
|
|
8
7
|
"slide_cursor_resource_usage",
|
|
@@ -20,8 +19,6 @@ function c(e) {
|
|
|
20
19
|
let [t] = Object.keys(e);
|
|
21
20
|
if (t !== void 0) throw TypeError(`unsupported PPTX model source view default: ${t}`);
|
|
22
21
|
}
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region packages/pptx/src/internal/node-session-acquisition.ts
|
|
25
22
|
var l = "PPTX presentation session was aborted";
|
|
26
23
|
function u(a, o = {}, s) {
|
|
27
24
|
let c = !1, u = () => {
|
|
@@ -54,5 +51,4 @@ function u(a, o = {}, s) {
|
|
|
54
51
|
throw d?.fail(n), n;
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
|
-
//#endregion
|
|
58
54
|
export { u as acquirePptxSessionFromArchive, s as validatePptxModelSourceArchive, c as validatePptxModelSourceViewDefaults };
|
package/dist/node.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vo as e, yo as t } from "./plot-area-frame-
|
|
2
|
-
import { f as n, u as r } from "./pixel-budget-
|
|
3
|
-
import { n as i, r as a } from "./pptx-
|
|
4
|
-
import { n as o, r as s } from "./docx-
|
|
5
|
-
import { n as c, r as l, t as u } from "./render-
|
|
6
|
-
import { a as d, i as f, n as p, r as m } from "./xlsx-
|
|
1
|
+
import { vo as e, yo as t } from "./plot-area-frame-D3JtHvov.js";
|
|
2
|
+
import { f as n, u as r } from "./pixel-budget-DI82Hn3R.js";
|
|
3
|
+
import { n as i, r as a } from "./pptx-BD0jwWs6.js";
|
|
4
|
+
import { n as o, r as s } from "./docx-D9E0vCq-.js";
|
|
5
|
+
import { n as c, r as l, t as u } from "./render-Cs1bgbEm.js";
|
|
6
|
+
import { a as d, i as f, n as p, r as m } from "./xlsx-S6orTmKI.js";
|
|
7
7
|
export { r as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, u as installImageBitmapShim, c as installOffscreenCanvasShim, n as isOoxmlDecodedImageLimitError, o as materializeDocxDocument, i as materializePptxPresentation, p as materializeXlsxWorkbook, m as materializeXlsxWorkbookIndex, f as materializeXlsxWorksheet, s as openDocxDocument, a as openPptxPresentation, d as openXlsxWorkbook, l as renderSlideNode };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region packages/core/src/image/pixel-budget.ts
|
|
2
1
|
var e = 32767, t = 1 << 25, n = 1 << 27, r = n, i = t * 4, a = n * 4, o = Math.floor(t / 4), s = n, c = s / o;
|
|
3
2
|
function l(e) {
|
|
4
3
|
return e === "image-dimension" || e === "image-pixels" || e === "active-decoded-bytes" || e === "image-effect-count" || e === "image-effect-work" || e === "tiff-lzw-work" || e === "metafile-path-commands" || e === "metafile-record-points" || e === "metafile-record-polygons" || e === "metafile-record-rectangles" || e === "metafile-record-text-units";
|
|
@@ -36,5 +35,4 @@ function p(e) {
|
|
|
36
35
|
return !1;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
//#endregion
|
|
40
38
|
export { s as a, r as c, f as d, p as f, c as i, n as l, i as n, e as o, o as r, t as s, a as t, d as u };
|