@silurus/ooxml 0.85.2 → 0.85.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/dist/assets/{render-worker-CV9Mg4j9.js → render-worker-D1O73gYW.js} +3 -3
- package/dist/assets/render-worker-V2wWYA4O.js +11 -0
- package/dist/{document-pull-client-BssAk95w.js → document-pull-client-F3ox_VXK.js} +3079 -3078
- package/dist/{docx-BY7oyoml.js → docx-BYvm3TWw.js} +6 -3
- package/dist/docx.mjs +1 -1
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +2 -2
- package/dist/node.mjs +5 -5
- package/dist/{pptx-C4z96sAA.js → pptx-BqpVTP8p.js} +6 -3
- package/dist/pptx.mjs +2 -2
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-Dxvwes39.js → render-DeZpRCfx.js} +1 -1
- package/dist/{render-worker-host-CXTCU4PO.js → render-worker-host-BKtXmlEF.js} +1 -1
- package/dist/{render-worker-host-BAXcBGq3.js → render-worker-host-CBcQXsR5.js} +1 -1
- package/dist/{session-BmP4lcEo.js → session-n2p5_jxV.js} +1 -1
- package/dist/{slide-pull-client-RTwQbJiy.js → slide-pull-client-Dwek7xW8.js} +683 -675
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-DdvOGyrn.js +0 -11
|
@@ -3,7 +3,7 @@ import { B as t, R as n, W as r, Zt as i, a, cn as o, et as s, pt as c, sn as l,
|
|
|
3
3
|
import { C as p, D as m, E as h, S as g, T as _, _ as v, a as y, b, c as x, d as ee, f as te, g as ne, h as re, i as S, l as C, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./canvas-viewer-mechanics-CDNMJ-Yz.js";
|
|
4
4
|
import { a as ge, i as _e, t as ve } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
5
|
import { c as ye, i as be, l as xe, n as Se, o as w, r as Ce, s as we, t as Te } from "./dom-interaction-boundary-CDGegIB5.js";
|
|
6
|
-
import { A as Ee, C as T, D as E, E as De, O as D, S as Oe, T as O, _ as ke, a as Ae, b as je, c as Me, d as Ne, f as Pe, g as Fe, h as Ie, j as Le, k as Re, l as ze, m as Be, n as k, o as Ve, p as He, s as Ue, t as A, v as We, w as Ge, x as Ke, y as qe } from "./document-pull-client-
|
|
6
|
+
import { A as Ee, C as T, D as E, E as De, O as D, S as Oe, T as O, _ as ke, a as Ae, b as je, c as Me, d as Ne, f as Pe, g as Fe, h as Ie, j as Le, k as Re, l as ze, m as Be, n as k, o as Ve, p as He, s as Ue, t as A, v as We, w as Ge, x as Ke, y as qe } from "./document-pull-client-F3ox_VXK.js";
|
|
7
7
|
import { l as Je, s as Ye } from "./pixel-budget-Dgjw269h.js";
|
|
8
8
|
import { a as j } from "./units-EJdC96r6.js";
|
|
9
9
|
import { i as Xe, s as Ze } from "./raster-target-ojDdQizC.js";
|
|
@@ -553,7 +553,7 @@ var J = class e {
|
|
|
553
553
|
t = await e.arrayBuffer();
|
|
554
554
|
} else t = r;
|
|
555
555
|
t = m(await h(t, i.password)), c.setSourceBytes(t.byteLength), c.checkpoint("container ready");
|
|
556
|
-
let n = s === "worker" ? (await import("./render-worker-host-
|
|
556
|
+
let n = s === "worker" ? (await import("./render-worker-host-CBcQXsR5.js")).createRenderWorker() : new at(), l = s === "worker" ? Qe(i) : void 0, u = s === "worker" && !!i.progressiveLayout, d;
|
|
557
557
|
try {
|
|
558
558
|
d = new e(n, s, o, i.wasmUrl), d._metrics = c;
|
|
559
559
|
let r = E(d), f = O(i.currentDate, r.defaultCurrentDateMs, i.showTrackedChanges === !0);
|
|
@@ -2296,7 +2296,10 @@ var cn = class e {
|
|
|
2296
2296
|
} finally {
|
|
2297
2297
|
this._bitmapInFlight.delete(e);
|
|
2298
2298
|
let n = this._slots.get(e);
|
|
2299
|
-
!u && n && (n !== t || c !== this._renderEpoch || !a.isCurrent(o)) && !this._bitmapInFlight.has(e) && !this._destroyed
|
|
2299
|
+
if (!u && n && (n !== t || c !== this._renderEpoch || !a.isCurrent(o)) && !this._bitmapInFlight.has(e) && !this._destroyed) {
|
|
2300
|
+
let t = n.dispatcher;
|
|
2301
|
+
await this._renderSlotBitmap(e, n, this._pageWidthPx(e), this._dpr(), this._scale, t, t.begin(), s);
|
|
2302
|
+
}
|
|
2300
2303
|
}
|
|
2301
2304
|
}
|
|
2302
2305
|
setScale(e) {
|
package/dist/docx.mjs
CHANGED
|
@@ -2,6 +2,6 @@ import { a as e, cn as t, sn as n } from "./line-metrics-BGtFM-ec.js";
|
|
|
2
2
|
import { T as r } from "./canvas-viewer-mechanics-CDNMJ-Yz.js";
|
|
3
3
|
import { l as i, s as a } from "./pixel-budget-Dgjw269h.js";
|
|
4
4
|
import { i as o, s } from "./raster-target-ojDdQizC.js";
|
|
5
|
-
import { a as c, c as l, i as u, l as d, n as f, o as p, r as m, s as h } from "./docx-
|
|
5
|
+
import { a as c, c as l, i as u, l as d, n as f, o as p, r as m, s as h } from "./docx-BYvm3TWw.js";
|
|
6
6
|
import { n as g, r as _ } from "./comments-Brfxa3hQ.js";
|
|
7
7
|
export { l as DocxDocument, m as DocxScrollViewer, u as DocxViewer, a as OoxmlDecodedImageLimitError, n as OoxmlError, t as OoxmlResourceLimitError, o as TiffDecodeError, r as autoResize, p as buildDocxHighlightLayer, h as buildDocxTextLayer, i as isOoxmlDecodedImageLimitError, s as isTiffDecodeError, f as noteText, e as openExternalHyperlink, c as readDocxTextSelectionContext, g as resolveCommentAnchorRuns, _ as resolveDocxCommentThreads, d as resolveRevisionAnchorRuns };
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
package/dist/node.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { t } from "./slide-pull-client-
|
|
2
|
+
import { t } from "./slide-pull-client-Dwek7xW8.js";
|
|
3
3
|
import { B as n, F as r, G as i, Gt as a, H as o, I as s, K as c, Kt as l, P as u, R as d, U as f, Zt as p, cn as m, pt as h, q as g, ut as _ } from "./line-metrics-BGtFM-ec.js";
|
|
4
4
|
import { t as ee } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
|
-
import { a as te, c as ne, i as re, l as ie, r as ae, u as oe } from "./document-pull-client-
|
|
5
|
+
import { a as te, c as ne, i as re, l as ie, r as ae, u as oe } from "./document-pull-client-F3ox_VXK.js";
|
|
6
6
|
import { l as se, s as ce } from "./pixel-budget-Dgjw269h.js";
|
|
7
7
|
import { t as le } from "./transfer-mIj7E7NB.js";
|
|
8
8
|
import { a as ue, c as de, d as fe, l as pe, o as me, r as he, s as ge, t as _e, u as ve } from "./worksheet-pull-client-C9sC36Vu.js";
|
|
9
|
-
import { a as ye, i as be, n as xe, r as Se } from "./session-
|
|
10
|
-
import { a as Ce, n as we, r as Te, t as Ee } from "./render-
|
|
9
|
+
import { a as ye, i as be, n as xe, r as Se } from "./session-n2p5_jxV.js";
|
|
10
|
+
import { a as Ce, n as we, r as Te, t as Ee } from "./render-DeZpRCfx.js";
|
|
11
11
|
import { existsSync as De, readFileSync as Oe } from "node:fs";
|
|
12
12
|
import { fileURLToPath as ke } from "node:url";
|
|
13
13
|
import { basename as Ae, dirname as je, resolve as Me } from "node:path";
|
|
@@ -134,7 +134,7 @@ var Re = class {
|
|
|
134
134
|
async renderSlide(e, t, n) {
|
|
135
135
|
return this.assertOpen(), this.enqueueRender(async () => {
|
|
136
136
|
S(this.signal);
|
|
137
|
-
let { renderSlideNode: r } = await import("./render-
|
|
137
|
+
let { renderSlideNode: r } = await import("./render-DeZpRCfx.js").then((e) => e.i);
|
|
138
138
|
await r(e, {
|
|
139
139
|
slideWidth: this.slideWidth,
|
|
140
140
|
slideHeight: this.slideHeight,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./slide-pull-client-
|
|
2
|
+
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./slide-pull-client-Dwek7xW8.js";
|
|
3
3
|
import { B as p, G as m, Jt as h, R as g, W as _, Zt as v, a as y, cn as b, et as x, pt as S, sn as C, tt as w, ut as ee, vt as te, z as ne } from "./line-metrics-BGtFM-ec.js";
|
|
4
4
|
import { C as re, D as ie, E as ae, S as oe, T as se, _ as ce, a as T, b as le, c as E, d as ue, f as de, g as fe, h as pe, i as D, l as O, m as me, n as he, o as ge, p as _e, r as ve, s as ye, t as be, v as xe, w as Se, x as Ce, y as we } from "./canvas-viewer-mechanics-CDNMJ-Yz.js";
|
|
5
5
|
import { a as Te, i as k, n as Ee, t as De } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
@@ -929,7 +929,7 @@ var J = class e {
|
|
|
929
929
|
s = await e.arrayBuffer();
|
|
930
930
|
} else s = t;
|
|
931
931
|
s = ie(await ae(s, r.password)), o.setSourceBytes(s.byteLength), o.checkpoint("container ready");
|
|
932
|
-
let c = a === "worker" ? (await import("./render-worker-host-
|
|
932
|
+
let c = a === "worker" ? (await import("./render-worker-host-BKtXmlEF.js")).createRenderWorker() : new wt(), l = a === "worker" ? Re(r) : void 0, u;
|
|
933
933
|
try {
|
|
934
934
|
u = new e(c, a, r.wasmUrl), u._metrics = o, r.math && a === "worker" && !l?.math && console.warn("[ooxml] a custom math renderer cannot cross the worker boundary; equations will be skipped in mode: 'worker'. Use the math renderer from @silurus/ooxml/math."), r.threeD && a === "worker" && !l?.threeD && console.warn("[ooxml] a custom 3-D chart renderer cannot cross the worker boundary; charts use their 2-D family fallback in mode: 'worker'. Use the renderer from @silurus/ooxml/three-d."), u._math = a === "worker" ? void 0 : r.math, u._threeD = a === "worker" ? void 0 : r.threeD, r.regionMap && a === "worker" && !l?.regionMap && console.warn("[ooxml] a custom Region Map renderer cannot cross the worker boundary; geospatial charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/region-map."), u._regionMap = a === "worker" ? void 0 : r.regionMap, r.chartEx && a === "worker" && !l?.chartEx && console.warn("[ooxml] a custom ChartEx renderer cannot cross the worker boundary; ChartEx charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/chart-ex."), u._chartEx = a === "worker" ? void 0 : r.chartEx, r.tiff && a === "worker" && !l?.tiff && console.warn("[ooxml] a custom TIFF codec cannot cross the worker boundary; recognized TIFF images will use an unavailable-image placeholder in mode: 'worker'. Use the codec from @silurus/ooxml/tiff to display them."), u._tiff = a === "worker" ? void 0 : r.tiff;
|
|
935
935
|
let t = r.progressiveLayout ? {
|
|
@@ -2531,7 +2531,10 @@ var $ = 440, Xt = 20, Zt = Symbol("PptxScrollViewer.borrowedPresentation"), Qt =
|
|
|
2531
2531
|
} finally {
|
|
2532
2532
|
this._slideInFlight.delete(e);
|
|
2533
2533
|
let n = this._slots.get(e);
|
|
2534
|
-
!d && n && (n !== t || l !== this._renderEpoch || a !== n.renderGeneration || !o.isCurrent(s)) && !this._slideInFlight.has(e) && !this._destroyed && !(this._opts.enableMediaPlayback && n.mediaInteractive)
|
|
2534
|
+
if (!d && n && (n !== t || l !== this._renderEpoch || a !== n.renderGeneration || !o.isCurrent(s)) && !this._slideInFlight.has(e) && !this._destroyed && !(this._opts.enableMediaPlayback && n.mediaInteractive)) {
|
|
2535
|
+
let t = n.dispatcher;
|
|
2536
|
+
await this._renderSlotBitmap(e, n, this._slideWidthPx(), this._dpr(), this._scale, ++n.renderGeneration, t, t.begin(), c);
|
|
2537
|
+
}
|
|
2535
2538
|
}
|
|
2536
2539
|
}
|
|
2537
2540
|
setScale(e) {
|
package/dist/pptx.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as e } from "./slide-pull-client-
|
|
1
|
+
import { u as e } from "./slide-pull-client-Dwek7xW8.js";
|
|
2
2
|
import { a as t, cn as n, sn as r } from "./line-metrics-BGtFM-ec.js";
|
|
3
3
|
import { T as i } from "./canvas-viewer-mechanics-CDNMJ-Yz.js";
|
|
4
4
|
import { l as a, s as o } from "./pixel-budget-Dgjw269h.js";
|
|
5
5
|
import { i as s, s as c } from "./raster-target-ojDdQizC.js";
|
|
6
|
-
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./pptx-
|
|
6
|
+
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./pptx-BqpVTP8p.js";
|
|
7
7
|
export { o as OoxmlDecodedImageLimitError, r as OoxmlError, n as OoxmlResourceLimitError, l as PptxPresentation, d as PptxScrollViewer, p as PptxViewer, s as TiffDecodeError, i as autoResize, f as buildPptxHighlightLayer, m as buildPptxTextLayer, a as isOoxmlDecodedImageLimitError, c as isTiffDecodeError, t as openExternalHyperlink, u as readPptxTextSelectionContext, e as renderSlide };
|
package/dist/pptx_parser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -46,7 +46,7 @@ function a(e, t) {
|
|
|
46
46
|
return n = o.then(() => void 0, () => void 0), o;
|
|
47
47
|
}
|
|
48
48
|
async function o(e, t, n, r = {}) {
|
|
49
|
-
let { renderSlide: i } = await import("./session-
|
|
49
|
+
let { renderSlide: i } = await import("./session-n2p5_jxV.js").then((e) => e.t), o = t.slides[n];
|
|
50
50
|
if (!o) throw Error(`Slide index ${n} out of range`);
|
|
51
51
|
let s = r.width ?? 960, c = r.dpr ?? 2, l = r.fetchImage ?? (async () => new Blob([])), u = async () => {
|
|
52
52
|
await i(e, o, t.slideWidth, t.slideHeight, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region packages/pptx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-V2wWYA4O.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/pptx/src/render-worker-host.ts
|
|
5
5
|
function t() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region packages/docx/src/render-worker.ts?worker&url
|
|
2
|
-
var e = "" + new URL("assets/render-worker-
|
|
2
|
+
var e = "" + new URL("assets/render-worker-D1O73gYW.js", import.meta.url).href;
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region packages/docx/src/render-worker-host.ts
|
|
5
5
|
function t() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { a as t, u as n } from "./slide-pull-client-
|
|
2
|
+
import { a as t, u as n } from "./slide-pull-client-Dwek7xW8.js";
|
|
3
3
|
import { B as r, F as i, G as a, H as o, I as s, K as c, P as l, Q as u, R as d, U as f, W as p, X as m, Xt as h, Y as g, Z as _, cn as v, q as y } from "./line-metrics-BGtFM-ec.js";
|
|
4
4
|
import { t as b } from "./transfer-mIj7E7NB.js";
|
|
5
5
|
//#region packages/pptx/src/slide-cursor-operation.ts
|