@silurus/ooxml 0.80.3 → 0.82.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 +61 -85
- package/dist/assets/render-worker-7-Zr7fSw.js +10 -0
- package/dist/assets/render-worker-B5gsW6b5.js +11 -0
- package/dist/assets/render-worker-Dw_wQRIh.js +24 -0
- package/dist/{canvas-viewer-mechanics-D-r6wHY_.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
- package/dist/chart-ex.mjs +1017 -0
- package/dist/comment-occurrence-C34fWs_F.js +6 -0
- package/dist/comment-ui-runtime-BAe30Ct9.js +112 -0
- package/dist/comment-ui-runtime-BUCj4hWn.js +171 -0
- package/dist/comment-ui-runtime-F4a3te6p.js +2 -0
- package/dist/comments-Cf9W7r3M.js +241 -0
- package/dist/{document-pull-client-vxk-Aomu.js → document-pull-client-BCgmytqI.js} +4682 -4541
- package/dist/docx-wokGKYfi.js +2162 -0
- package/dist/docx.mjs +6 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
- package/dist/highlight-rect-MaCt0om0.js +13 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-Bvtp0Gt6.js → line-distribute-iXsUCIH-.js} +17 -16
- package/dist/{line-metrics-DdEJYxjx.js → line-metrics-B3syvDn2.js} +667 -7492
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +248 -247
- package/dist/plot-area-frame-DHV02PJU.js +3670 -0
- package/dist/pptx-DU8L8I2T.js +2432 -0
- package/dist/pptx.mjs +6 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
- package/dist/read-only-comment-margin-Dn2y55W6.js +189 -0
- package/dist/region-map.mjs +102 -97
- package/dist/{render-CoqMHcbF.js → render-CenWM4g1.js} +1 -1
- package/dist/{render-worker-host-IuQFpoJM.js → render-worker-host-BNENN3qP.js} +1 -1
- package/dist/{render-worker-host-CYPhmBtX.js → render-worker-host-BmH3kGSj.js} +1 -1
- package/dist/{render-worker-host-GlLR1rtF.js → render-worker-host-CmPBviYJ.js} +1 -1
- package/dist/renderer-CYr9YTXM.js +5856 -0
- package/dist/{renderer-module-contract-BNGz8HvO.js → renderer-module-contract-DLbb7zY0.js} +4 -3
- package/dist/{resource-measurement-CgMubiAI.js → resource-measurement-CsW4_eYt.js} +12 -11
- package/dist/{session-DkPblDiq.js → session-Cky_swUj.js} +8 -8
- package/dist/{slide-pull-client-m2blvngt.js → slide-pull-client-CqTVFb3W.js} +1004 -1091
- package/dist/source-key-BklvnEyQ.js +42 -0
- package/dist/three-d-7MaVzQuZ.js +1346 -0
- package/dist/three-d.mjs +1238 -797
- package/dist/types/chart-ex.d.ts +949 -0
- package/dist/types/docx.d.ts +497 -28
- package/dist/types/index.d.ts +649 -39
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +385 -22
- package/dist/types/pptx.d.ts +435 -24
- package/dist/types/region-map.d.ts +318 -6
- package/dist/types/three-d.d.ts +318 -6
- package/dist/types/xlsx.d.ts +384 -19
- package/dist/units-BzZ0gAxs.js +4 -0
- package/dist/{worksheet-pull-client-BntP6RiO.js → worksheet-pull-client-CYtwXP5D.js} +19 -19
- package/dist/{xlsx-DqMe7J2C.js → xlsx-DlV37-0j.js} +1594 -1349
- package/dist/xlsx.mjs +6 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +7 -1
- package/dist/assets/render-worker-CRaEOHkw.js +0 -9
- package/dist/assets/render-worker-DQGLj5Zv.js +0 -22
- package/dist/assets/render-worker-rnrSLmqL.js +0 -8
- package/dist/chart-number-format-qLhnk6hj.js +0 -475
- package/dist/docx-DN0PRx2f.js +0 -1733
- package/dist/highlight-rect-BuX5rWP4.js +0 -48
- package/dist/pptx-B-Laftl1.js +0 -2134
- package/dist/three-d-C28kqDym.js +0 -1086
- /package/dist/{mathjax-DgAl7Yi5.js → mathjax-DwIrafQ6.js} +0 -0
- /package/dist/{transfer-CKZ79zFw.js → transfer-R6NjgBKD.js} +0 -0
- /package/dist/{visible-index-BjesVGhg.js → visible-index-BFE3PWiY.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-B3syvDn2.js";
|
|
2
|
+
import { rn as r } from "./plot-area-frame-DHV02PJU.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-CqTVFb3W.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-B3syvDn2.js";
|
|
4
|
+
import { t as b } from "./transfer-R6NjgBKD.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
|
}
|