@silurus/ooxml 0.89.0 → 0.89.2
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/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/assets/render-worker-Bye3wDV9.js +35 -0
- package/dist/assets/render-worker-CyUrUidp.js +16 -0
- package/dist/assets/render-worker-D_SMt5nl.js +15 -0
- package/dist/bounded-raw-part-cache-C3daknU-.js +33925 -0
- package/dist/{canvas-viewer-mechanics-DfQqRKkD.js → canvas-viewer-mechanics-SZWSnn6j.js} +2 -2
- package/dist/{cfb-guard-9QTRTg7f.js → cfb-guard-dNeUiANF.js} +1 -1
- package/dist/chart-ex.mjs +477 -477
- package/dist/{comment-overlay-controller-B5_zGgG5.js → comment-overlay-controller-CHDxT0e7.js} +16 -16
- package/dist/{comment-ui-runtime-Jy-3goA9.js → comment-ui-runtime-BcwaRnMR.js} +3 -3
- package/dist/{comment-ui-runtime-D_sb2K6s.js → comment-ui-runtime-Dk2qrPy_.js} +3 -3
- package/dist/{document-model-source-BKNrXjAL.js → document-model-source-BD2VSd2L.js} +44 -44
- package/dist/{document-pull-client-CxONDGbk.js → document-pull-client-DhSGspvi.js} +6102 -7994
- package/dist/{document-pull-worker-AMyXYpPq.js → document-pull-worker-D-E0Iz3P.js} +18 -18
- package/dist/{docx-DhDnKEI6.js → docx-CCZBO1WQ.js} +556 -556
- package/dist/{docx-D91ER1_S.js → docx-CXfILbzI.js} +24 -24
- package/dist/{docx-model-source-CdrSt3hF.js → docx-model-source-Ci6xb487.js} +12 -12
- package/dist/docx.mjs +4 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{drawingml-shape-ChcGZNd8.js → drawingml-shape-Bp0yEZHC.js} +55 -55
- package/dist/{duotone-ekYik4ix.js → duotone-DN8P4aXe.js} +1 -1
- package/dist/{emf-UT6I8rVi.js → emf-CGFQIz6c.js} +60 -60
- package/dist/{font-preload-demand-CdJZUMCT.js → font-preload-demand-CGOB-MoE.js} +2 -2
- package/dist/{grid-geometry-uQOgViJU.js → grid-geometry-C3IG20ut.js} +1 -1
- package/dist/{host-layout-measure-CCEgaC_v.js → host-layout-measure-BAysJILu.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/{line-distribute-CPOV6csk.js → line-distribute-DhQqysA2.js} +153 -70
- package/dist/{model-source-DJGzDtGb.js → model-source-BkmyX_r-.js} +4 -4
- package/dist/{model-source-session-Bu9CHFHc.js → model-source-session-CF4iXav8.js} +18 -18
- package/dist/{model-source-session-sKpNiIJI.js → model-source-session-CJmkItIK.js} +10 -10
- package/dist/{model-source-session-CDuijwv1.js → model-source-session-CnPCTRDD.js} +2 -2
- package/dist/node.mjs +5 -5
- package/dist/{bounded-raw-part-cache-B7JoC1CD.js → plot-area-frame-Bs_j4uu7.js} +15189 -37964
- package/dist/{pptx-C_uxLVKB.js → pptx-BhmLP_Ed.js} +9 -9
- package/dist/{pptx-CDP9dZHe.js → pptx-Bo9hCGQU.js} +58 -58
- package/dist/{pptx-model-source-O7LhpOjz.js → pptx-model-source-J0SrVkO6.js} +5 -5
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{presentation-model-source-tmROzteR.js → presentation-model-source-CebYmrOD.js} +5 -5
- package/dist/region-map.mjs +53 -53
- package/dist/{render-CJVglUHl.js → render-hT2OVZUi.js} +2 -2
- package/dist/{render-worker-host-CyxPU4JU.js → render-worker-host-BmAQ-sWT.js} +1 -1
- package/dist/{render-worker-host-aF6aWkC0.js → render-worker-host-Cz224I38.js} +1 -1
- package/dist/{render-worker-host-BseIaVvm.js → render-worker-host-Desevuoc.js} +1 -1
- package/dist/renderer-BFWqhLEt.js +5833 -0
- package/dist/{renderer-CkGLj0CC.js → renderer-CvZ4JmoL.js} +696 -696
- package/dist/{resource-measurement-mXw-WjMF.js → resource-measurement-DBiUwblM.js} +162 -161
- package/dist/{session-Csv9maad.js → session-CWDKFWCh.js} +176 -176
- package/dist/{slide-pull-client-DRZYwBTu.js → slide-pull-client-BuBvXMyc.js} +1454 -1484
- package/dist/{three-d-BK5siJgJ.js → three-d-BKwNPAP4.js} +107 -107
- package/dist/three-d.mjs +625 -625
- package/dist/{wasm-runtime-generation-DX4y0Ecl.js → wasm-runtime-generation-BWGfM44b.js} +4 -4
- package/dist/{workbook-model-source-BTC4ISTS.js → workbook-model-source-Che8Zbjw.js} +6 -6
- package/dist/worker-source-DrwhR9fw.js +22 -0
- package/dist/{worksheet-pull-client-CkHgbtyM.js → worksheet-pull-client-Cxzj6uuB.js} +74 -74
- package/dist/{xlsx-D5569TPf.js → xlsx-C5BSwMUd.js} +24 -24
- package/dist/{xlsx-CpSDPAEU.js → xlsx-CUVUep5I.js} +433 -421
- package/dist/{xlsx-model-source-DPSkjFic.js → xlsx-model-source-C3_PiPBo.js} +55 -55
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +2 -2
- package/dist/assets/render-worker-CUOU6mL2.js +0 -16
- package/dist/assets/render-worker-DOqrFhSU.js +0 -15
- package/dist/assets/render-worker-DvWUdZUN.js +0 -35
- package/dist/plot-area-frame-CaJFvZ7p.js +0 -8502
- package/dist/renderer-Czw1cCC7.js +0 -5823
- package/dist/worker-source-I1cIYBel.js +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { S as l } from "./worksheet-pull-client-
|
|
1
|
+
import { vo as e } from "./plot-area-frame-Bs_j4uu7.js";
|
|
2
|
+
import { B as t, D as n, G as r, O as i, k as a, ln as o, q as s, un as c } from "./bounded-raw-part-cache-C3daknU-.js";
|
|
3
|
+
import { S as l } from "./worksheet-pull-client-Cxzj6uuB.js";
|
|
4
4
|
//#region packages/docx/src/internal/parser-errors.ts
|
|
5
5
|
var u = "OOXML_DOCX_ILVL:";
|
|
6
6
|
function d(t) {
|
|
@@ -27,12 +27,12 @@ function p(e) {
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region packages/docx/src/document-pull-worker.ts
|
|
29
29
|
function m(e) {
|
|
30
|
-
let
|
|
31
|
-
return
|
|
30
|
+
let n = e((e) => e.document_cursor_resource_usage?.());
|
|
31
|
+
return n ? t(n) : void 0;
|
|
32
32
|
}
|
|
33
|
-
var h = Math.max(
|
|
33
|
+
var h = Math.max(o, c), g = class {
|
|
34
34
|
archive;
|
|
35
|
-
coordinator = new
|
|
35
|
+
coordinator = new a();
|
|
36
36
|
host = null;
|
|
37
37
|
identity = null;
|
|
38
38
|
executeArchive;
|
|
@@ -44,18 +44,18 @@ var h = Math.max(i, n), g = class {
|
|
|
44
44
|
this.executeArchive((t) => {
|
|
45
45
|
t.open_document_cursor(e.operationId, e.generation);
|
|
46
46
|
});
|
|
47
|
-
let
|
|
48
|
-
this.identity = e, this.host = new
|
|
47
|
+
let t = 0;
|
|
48
|
+
this.identity = e, this.host = new i({
|
|
49
49
|
...e,
|
|
50
50
|
maxByteCredit: h,
|
|
51
51
|
coordinator: this.coordinator,
|
|
52
52
|
driver: {
|
|
53
|
-
pull: (
|
|
53
|
+
pull: (n) => {
|
|
54
54
|
let r;
|
|
55
55
|
try {
|
|
56
|
-
r = this.executeArchive((r) => r.pull_document_chunk(
|
|
56
|
+
r = this.executeArchive((r) => r.pull_document_chunk(t, e.operationId, e.generation, n));
|
|
57
57
|
} catch (e) {
|
|
58
|
-
throw
|
|
58
|
+
throw s(e, n, h) || e;
|
|
59
59
|
}
|
|
60
60
|
let i = l(r);
|
|
61
61
|
return {
|
|
@@ -66,9 +66,9 @@ var h = Math.max(i, n), g = class {
|
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
68
|
measureChunk: ({ payload: e }) => e.byteLength,
|
|
69
|
-
acknowledge: (
|
|
70
|
-
if (
|
|
71
|
-
this.executeArchive((
|
|
69
|
+
acknowledge: (n) => {
|
|
70
|
+
if (n !== t) throw Error("DOCX document acknowledgement sequence mismatch");
|
|
71
|
+
this.executeArchive((n) => n.acknowledge_document_chunk(t, e.operationId, e.generation)), t += 1;
|
|
72
72
|
},
|
|
73
73
|
cancel: () => this.executeArchive((e) => e.cancel_document_cursor()),
|
|
74
74
|
close: () => this.executeArchive((e) => e.close_document_session()),
|
|
@@ -78,20 +78,20 @@ var h = Math.max(i, n), g = class {
|
|
|
78
78
|
}
|
|
79
79
|
dispatch(e, t) {
|
|
80
80
|
return !this.host || !this.identity ? (t({
|
|
81
|
-
protocol:
|
|
81
|
+
protocol: n,
|
|
82
82
|
kind: "error",
|
|
83
83
|
sessionId: e.sessionId,
|
|
84
84
|
operationId: e.operationId,
|
|
85
85
|
generation: e.generation,
|
|
86
86
|
requestId: e.requestId,
|
|
87
|
-
error:
|
|
87
|
+
error: r(/* @__PURE__ */ Error("DOCX document pull session is not open"))
|
|
88
88
|
}), Promise.resolve()) : this.host.dispatch(e, t);
|
|
89
89
|
}
|
|
90
90
|
async reset() {
|
|
91
91
|
if (this.host) try {
|
|
92
92
|
this.archive() && this.executeArchive((e) => e.close_document_session());
|
|
93
93
|
} finally {
|
|
94
|
-
this.host = null, this.identity = null, this.coordinator = new
|
|
94
|
+
this.host = null, this.identity = null, this.coordinator = new a();
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
requireArchive() {
|