@silurus/ooxml 0.78.1 → 0.79.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 +39 -1
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/{canvas-viewer-mechanics-B4K_t5X_.js → canvas-viewer-mechanics-D9tsuHnG.js} +1 -1
- package/dist/chart-number-format-tjYUR9eS.js +435 -0
- package/dist/dash-Cyc-sevN.js +786 -0
- package/dist/{document-pull-client-5AakVD6e.js → document-pull-client-YiU8M4LO.js} +2119 -2113
- package/dist/{docx-bjhRwb2u.js → docx-a1UpmRf8.js} +65 -56
- package/dist/docx.mjs +4 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-BVFW1-Hs.js → line-distribute-pDqovJpT.js} +1 -1
- package/dist/{line-metrics-DS0NS2Iq.js → line-metrics-DjKxiIUD.js} +4089 -3210
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +322 -322
- package/dist/{pptx-D1rCrHGR.js → pptx-t5ABdzfd.js} +192 -183
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/region-map.mjs +12708 -0
- package/dist/{render-DhlT5jxZ.js → render-BjIEuFIG.js} +1 -1
- package/dist/render-worker-host-BB320snY.js +27 -0
- package/dist/render-worker-host-BjEPZBwf.js +27 -0
- package/dist/render-worker-host-hZ0o4OD7.js +27 -0
- package/dist/{resource-measurement-BA-4Q-II.js → resource-measurement-D8EiTm_E.js} +1 -1
- package/dist/{session-C_HGxbRD.js → session-Bhe_eY-s.js} +10 -10
- package/dist/{slide-pull-client-BiC4sVGi.js → slide-pull-client-BQ8gJPTq.js} +584 -583
- package/dist/three-d.mjs +2158 -0
- package/dist/types/docx.d.ts +185 -16
- package/dist/types/index.d.ts +196 -20
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +157 -1
- package/dist/types/pptx.d.ts +187 -16
- package/dist/types/region-map.d.ts +520 -0
- package/dist/types/three-d.d.ts +520 -0
- package/dist/types/xlsx.d.ts +186 -16
- package/dist/{worksheet-pull-client-BnvgeqfG.js → worksheet-pull-client-T0EzdEEQ.js} +13 -13
- package/dist/{xlsx-BG_WYSc0.js → xlsx-CsDDMJIK.js} +442 -414
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +13 -1
- package/dist/render-worker-host-CtJo7hc9.js +0 -27
- package/dist/render-worker-host-D8vv-Asx.js +0 -27
- package/dist/render-worker-host-DAjG9nmw.js +0 -27
- /package/dist/{highlight-rect-CAkCWJ37.js → highlight-rect-cCvVU-MW.js} +0 -0
- /package/dist/{mathjax-CMjda8Ip.js → mathjax-Dqo857oC.js} +0 -0
- /package/dist/{transfer-DCu4c2BL.js → transfer-3QEJrsJa.js} +0 -0
- /package/dist/{visible-index-CgyJLAS_.js → visible-index-CKvgpUrf.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as e, Mt as t, wt as n, yt as r } from "./line-metrics-
|
|
1
|
+
import { At as e, Mt as t, wt as n, yt as r } from "./line-metrics-DjKxiIUD.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,11 +1,11 @@
|
|
|
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, at as u, dt as d, ft as f,
|
|
4
|
-
import { t as b } from "./transfer-
|
|
2
|
+
import { c as t, i as n } from "./slide-pull-client-BQ8gJPTq.js";
|
|
3
|
+
import { B as r, F as i, H as a, I as o, K as s, P as c, R as l, at as u, dt as d, ft as f, it as p, lt as m, ot as h, rt as g, sn as _, st as v, ut as y } from "./line-metrics-DjKxiIUD.js";
|
|
4
|
+
import { t as b } from "./transfer-3QEJrsJa.js";
|
|
5
5
|
//#region packages/pptx/src/slide-cursor-operation.ts
|
|
6
6
|
function x(e) {
|
|
7
7
|
try {
|
|
8
|
-
return
|
|
8
|
+
return g(e((e) => e.slide_cursor_resource_usage()));
|
|
9
9
|
} catch (e) {
|
|
10
10
|
if (String(e).includes("slide cursor usage is unavailable")) return;
|
|
11
11
|
throw e;
|
|
@@ -179,7 +179,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
179
179
|
operationId: e.operationId,
|
|
180
180
|
generation: e.generation,
|
|
181
181
|
requestId: e.requestId,
|
|
182
|
-
error:
|
|
182
|
+
error: h(/* @__PURE__ */ Error("slide pull session is not open"))
|
|
183
183
|
}), Promise.resolve());
|
|
184
184
|
}
|
|
185
185
|
async dispatchSafely(e, t) {
|
|
@@ -194,7 +194,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
194
194
|
operationId: e.operationId,
|
|
195
195
|
generation: e.generation,
|
|
196
196
|
requestId: e.requestId,
|
|
197
|
-
error:
|
|
197
|
+
error: h(n)
|
|
198
198
|
});
|
|
199
199
|
} catch {}
|
|
200
200
|
}
|
|
@@ -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 = p(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;
|
|
@@ -268,7 +268,7 @@ var te = "ooxml-pull-resetting", S = "ooxml-pull-reset-failed", ne = class {
|
|
|
268
268
|
operationId: e.operationId,
|
|
269
269
|
generation: e.generation,
|
|
270
270
|
requestId: e.requestId,
|
|
271
|
-
error:
|
|
271
|
+
error: h(this.lifecycleError())
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
requireArchive() {
|
|
@@ -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 _ ? e : u(e);
|
|
299
299
|
t && (this.resourceFailure ??= t);
|
|
300
300
|
}
|
|
301
301
|
staleLifecycleResponse(e) {
|
|
@@ -325,7 +325,7 @@ 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 d(e) ? new
|
|
328
|
+
return d(e) ? new m(`WASM parser trapped and was recycled: ${e instanceof Error ? e.message : String(e)}`) : null;
|
|
329
329
|
}
|
|
330
330
|
var w = class {
|
|
331
331
|
realm;
|