@silurus/ooxml 0.89.7 → 0.89.9
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 +9 -3
- package/dist/assets/render-worker-CSJJ7vFD.js +15 -0
- package/dist/assets/render-worker-Ck21oePL.js +16 -0
- package/dist/assets/render-worker-jGsxSIGb.js +35 -0
- package/dist/{bounded-raw-part-cache-B8t03tSP.js → bounded-raw-part-cache-B5a6cGKO.js} +1713 -1515
- package/dist/{canvas-viewer-mechanics-DI38gHNV.js → canvas-viewer-mechanics-BsqaoYgK.js} +2 -2
- package/dist/{cfb-guard-BIaHdonq.js → cfb-guard-DzYlucez.js} +1 -1
- package/dist/chart-ex.mjs +367 -367
- package/dist/{comment-overlay-controller-Crm5Syhx.js → comment-overlay-controller-b3tKmzMa.js} +29 -25
- package/dist/{comment-ui-runtime-DKlEfBPp.js → comment-ui-runtime-BlgDzQx_.js} +3 -3
- package/dist/{comment-ui-runtime-BfEPgl5r.js → comment-ui-runtime-Bp37ytDC.js} +3 -3
- package/dist/{document-model-source-xnkMoTZ_.js → document-model-source-BlMfm6po.js} +37 -37
- package/dist/{document-pull-client-CzhPbnY_.js → document-pull-client-_G-DIh2T.js} +17071 -13819
- package/dist/{document-pull-worker-Bkewz-So.js → document-pull-worker-hMKJ5RdB.js} +14 -14
- package/dist/{docx-BWyACb-n.js → docx-DE-Di6SH.js} +33 -33
- package/dist/{docx-BgCQiuuN.js → docx-Do90Z4L7.js} +593 -593
- package/dist/{docx-model-source-DCRFgO7-.js → docx-model-source-zYIufUjR.js} +6 -6
- package/dist/docx.mjs +4 -4
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{drawingml-shape-BcXkRayC.js → drawingml-shape-B1_kg4BV.js} +55 -55
- package/dist/{duotone-BI7CoghW.js → duotone-GK4Hqn7f.js} +1 -1
- package/dist/{emf-DgUBx9BU.js → emf--QWY-UlT.js} +50 -50
- package/dist/{font-preload-demand-B6HPFxDp.js → font-preload-demand-NqcVKIpX.js} +2 -2
- package/dist/{grid-geometry-CqTDvpDr.js → grid-geometry-DpMAiSZb.js} +1 -1
- package/dist/{host-layout-measure-CXKOWA5J.js → host-layout-measure-IFLllYwV.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/{line-distribute-DR9Qwd3u.js → line-distribute-CwtditQo.js} +31 -25
- package/dist/{model-source-DcI3vC00.js → model-source-Cch44xsb.js} +2 -2
- package/dist/{model-source-session-BlQWNyj2.js → model-source-session-ClNCRDOg.js} +21 -21
- package/dist/{model-source-session-D0LF49Ve.js → model-source-session-DRcqFGfM.js} +2 -2
- package/dist/{model-source-session-BCteVilS.js → model-source-session-DSABX94B.js} +2 -2
- package/dist/node.mjs +5 -5
- package/dist/{plot-area-frame-D3JtHvov.js → plot-area-frame-DNYMd9Pf.js} +1914 -1890
- package/dist/{pptx-SmjDGyub.js → pptx-C1CiFW1D.js} +35 -33
- package/dist/{pptx-CfCiVlNB.js → pptx-DbjWegUB.js} +283 -266
- package/dist/{pptx-model-source-B2Irk68a.js → pptx-model-source-C9TuBisH.js} +18 -12
- package/dist/pptx-parsed-slides-BMGr4khe.js +8 -0
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{presentation-model-source-DL6duh5l.js → presentation-model-source-DLNioq7T.js} +6 -6
- package/dist/region-map.mjs +39 -39
- package/dist/{render-CMUEAeHp.js → render-Bf_Gywxw.js} +32 -30
- package/dist/{render-worker-host-CZHIKTtZ.js → render-worker-host-CVr53kg0.js} +1 -1
- package/dist/{render-worker-host-CtlBbau5.js → render-worker-host-EgUrirnQ.js} +1 -1
- package/dist/{render-worker-host-G1fnymI8.js → render-worker-host-pKls3F_t.js} +1 -1
- package/dist/renderer-DpTePxGq.js +5887 -0
- package/dist/{renderer-B4KIpz-2.js → renderer-DuYC3xXi.js} +1336 -1224
- package/dist/{resource-measurement-D2bu0Qfx.js → resource-measurement-CfJtbwiR.js} +129 -129
- package/dist/{session-KIWcCCP2.js → session-DPXK_lpI.js} +64 -64
- package/dist/{slide-pull-client-BUuJQQVE.js → slide-pull-client-3g6TxaKa.js} +1421 -1421
- package/dist/{three-d-ByHGsYrX.js → three-d-BfMZVR0w.js} +98 -98
- package/dist/three-d.mjs +678 -678
- package/dist/types/chart-ex.d.ts +5 -2
- package/dist/types/docx.d.ts +30 -8
- package/dist/types/index.d.ts +37 -12
- package/dist/types/node.d.ts +28 -6
- package/dist/types/pptx.d.ts +13 -7
- package/dist/types/region-map.d.ts +5 -2
- package/dist/types/three-d.d.ts +5 -2
- package/dist/types/xlsx.d.ts +10 -7
- package/dist/{wasm-runtime-generation-BLweKv8r.js → wasm-runtime-generation-D97yoAXz.js} +17 -17
- package/dist/{workbook-model-source-J9ir5Kov.js → workbook-model-source-D1dmkDMP.js} +6 -6
- package/dist/{worksheet-pull-client-Du0MuIro.js → worksheet-pull-client-BudfclVl.js} +84 -84
- package/dist/{xlsx-BbQ7RcNc.js → xlsx-DA0uR1B1.js} +44 -44
- package/dist/{xlsx-ClQiNSrr.js → xlsx-DBhYlJKp.js} +728 -716
- package/dist/{xlsx-model-source-C-Riw89p.js → xlsx-model-source-zemVDAfl.js} +36 -36
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-B3hF7Akg.js +0 -35
- package/dist/assets/render-worker-B5HWxkbU.js +0 -16
- package/dist/assets/render-worker-DNGf06QT.js +0 -15
- package/dist/renderer-xdugdcMd.js +0 -5769
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { S as o, b as s, c, d as l, f as u, g as d, i as f, p, u as m, y as h } from "./worksheet-pull-client-
|
|
4
|
-
import { t as g } from "./grid-geometry-
|
|
5
|
-
import { o as _, t as v } from "./xlsx-
|
|
6
|
-
import { t as y } from "./model-source-
|
|
1
|
+
import { wo as e } from "./plot-area-frame-DNYMd9Pf.js";
|
|
2
|
+
import { A as t, J as n, M as r, U as i, j as a } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
3
|
+
import { S as o, b as s, c, d as l, f as u, g as d, i as f, p, u as m, y as h } from "./worksheet-pull-client-BudfclVl.js";
|
|
4
|
+
import { t as g } from "./grid-geometry-DpMAiSZb.js";
|
|
5
|
+
import { o as _, t as v } from "./xlsx-DA0uR1B1.js";
|
|
6
|
+
import { t as y } from "./model-source-Cch44xsb.js";
|
|
7
7
|
var b = 64 * 1024 * 1024, x = class {
|
|
8
8
|
archive;
|
|
9
9
|
acceptWorksheet;
|
|
@@ -11,7 +11,7 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
11
11
|
prepareRows;
|
|
12
12
|
provisional;
|
|
13
13
|
worksheetPolicy;
|
|
14
|
-
coordinator = new
|
|
14
|
+
coordinator = new r();
|
|
15
15
|
sessions = /* @__PURE__ */ new Map();
|
|
16
16
|
operationTail = Promise.resolve();
|
|
17
17
|
pendingOpens = /* @__PURE__ */ new Map();
|
|
@@ -43,18 +43,18 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
43
43
|
}
|
|
44
44
|
async open(t, n, r) {
|
|
45
45
|
if (this.resourceFailure) throw this.resourceFailure;
|
|
46
|
-
let
|
|
47
|
-
if (!
|
|
46
|
+
let i = this.pendingOpens.get(r.sessionId);
|
|
47
|
+
if (!i || i.identity.operationId !== r.operationId || i.identity.generation !== r.generation) throw Error("worksheet pull session open reservation is stale or missing");
|
|
48
48
|
let s = this.worksheetPolicy(), h, g = new Promise((e) => {
|
|
49
49
|
h = e;
|
|
50
50
|
}), _ = this.operationTail.then(() => this.coordinator.enqueue(async () => {
|
|
51
|
-
if (
|
|
51
|
+
if (i.canceled) throw Error("worksheet pull session open was canceled");
|
|
52
52
|
this.executeArchive((e) => e.open_sheet_cursor(t, n));
|
|
53
53
|
let g = [], _ = {
|
|
54
54
|
rows: 0,
|
|
55
55
|
cells: 0,
|
|
56
56
|
ownedUtf8Bytes: 0
|
|
57
|
-
}, v, y = !1, x = new
|
|
57
|
+
}, v, y = !1, x = new a({
|
|
58
58
|
...r,
|
|
59
59
|
maxByteCredit: b,
|
|
60
60
|
coordinator: this.coordinator,
|
|
@@ -144,14 +144,14 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
144
144
|
} catch {}
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
dispatch(e,
|
|
147
|
+
dispatch(e, r) {
|
|
148
148
|
let i = this.sessions.get(e.sessionId);
|
|
149
|
-
if (i) return i.host.dispatch(e,
|
|
149
|
+
if (i) return i.host.dispatch(e, r);
|
|
150
150
|
let a = this.pendingOpens.get(e.sessionId);
|
|
151
151
|
if (a && (e.kind === "cancel" || e.kind === "close")) {
|
|
152
|
-
let
|
|
153
|
-
return
|
|
154
|
-
protocol:
|
|
152
|
+
let n = a.identity.operationId === e.operationId && a.identity.generation === e.generation;
|
|
153
|
+
return n && (a.canceled = !0), r(n ? {
|
|
154
|
+
protocol: t,
|
|
155
155
|
kind: "accepted",
|
|
156
156
|
sessionId: e.sessionId,
|
|
157
157
|
operationId: e.operationId,
|
|
@@ -159,7 +159,7 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
159
159
|
requestId: e.requestId,
|
|
160
160
|
command: e.kind
|
|
161
161
|
} : {
|
|
162
|
-
protocol:
|
|
162
|
+
protocol: t,
|
|
163
163
|
kind: "error",
|
|
164
164
|
sessionId: e.sessionId,
|
|
165
165
|
operationId: e.operationId,
|
|
@@ -172,37 +172,37 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
172
172
|
}
|
|
173
173
|
}), Promise.resolve();
|
|
174
174
|
}
|
|
175
|
-
return e.kind === "cancel" || e.kind === "close" ? (
|
|
176
|
-
protocol:
|
|
175
|
+
return e.kind === "cancel" || e.kind === "close" ? (r({
|
|
176
|
+
protocol: t,
|
|
177
177
|
kind: "accepted",
|
|
178
178
|
sessionId: e.sessionId,
|
|
179
179
|
operationId: e.operationId,
|
|
180
180
|
generation: e.generation,
|
|
181
181
|
requestId: e.requestId,
|
|
182
182
|
command: e.kind
|
|
183
|
-
}), Promise.resolve()) : (
|
|
184
|
-
protocol:
|
|
183
|
+
}), Promise.resolve()) : (r({
|
|
184
|
+
protocol: t,
|
|
185
185
|
kind: "error",
|
|
186
186
|
sessionId: e.sessionId,
|
|
187
187
|
operationId: e.operationId,
|
|
188
188
|
generation: e.generation,
|
|
189
189
|
requestId: e.requestId,
|
|
190
|
-
error:
|
|
190
|
+
error: n(/* @__PURE__ */ Error("worksheet pull session is not open"))
|
|
191
191
|
}), Promise.resolve());
|
|
192
192
|
}
|
|
193
|
-
async dispatchSafely(e,
|
|
193
|
+
async dispatchSafely(e, r) {
|
|
194
194
|
try {
|
|
195
|
-
await this.dispatch(e,
|
|
195
|
+
await this.dispatch(e, r);
|
|
196
196
|
} catch (i) {
|
|
197
197
|
try {
|
|
198
|
-
|
|
199
|
-
protocol:
|
|
198
|
+
r({
|
|
199
|
+
protocol: t,
|
|
200
200
|
kind: "error",
|
|
201
201
|
sessionId: e.sessionId,
|
|
202
202
|
operationId: e.operationId,
|
|
203
203
|
generation: e.generation,
|
|
204
204
|
requestId: e.requestId,
|
|
205
|
-
error:
|
|
205
|
+
error: n(i)
|
|
206
206
|
});
|
|
207
207
|
} catch {}
|
|
208
208
|
}
|
|
@@ -219,8 +219,8 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
219
219
|
async reset() {
|
|
220
220
|
for (let e of this.pendingOpens.values()) e.canceled = !0;
|
|
221
221
|
let e = 1;
|
|
222
|
-
for (let { host:
|
|
223
|
-
protocol:
|
|
222
|
+
for (let { host: n, identity: r } of [...this.sessions.values()]) await n.dispatch({
|
|
223
|
+
protocol: t,
|
|
224
224
|
kind: "close",
|
|
225
225
|
...r,
|
|
226
226
|
requestId: e++
|
|
@@ -233,10 +233,10 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
233
233
|
return e;
|
|
234
234
|
}
|
|
235
235
|
async closeIdentity(e) {
|
|
236
|
-
let
|
|
237
|
-
if (
|
|
238
|
-
await
|
|
239
|
-
protocol:
|
|
236
|
+
let n = this.sessions.get(e.sessionId);
|
|
237
|
+
if (n) {
|
|
238
|
+
await n.host.dispatch({
|
|
239
|
+
protocol: t,
|
|
240
240
|
kind: "close",
|
|
241
241
|
...e,
|
|
242
242
|
requestId: 1
|
|
@@ -248,7 +248,7 @@ var b = 64 * 1024 * 1024, x = class {
|
|
|
248
248
|
}
|
|
249
249
|
readResourceUsage() {
|
|
250
250
|
let e = this.executeArchive((e) => e.sheet_cursor_resource_usage?.());
|
|
251
|
-
return e === void 0 ? void 0 :
|
|
251
|
+
return e === void 0 ? void 0 : i(e);
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
async function S(e, t, n) {
|
|
@@ -274,7 +274,7 @@ async function w(e, t, n) {
|
|
|
274
274
|
let r = s(t), i = {
|
|
275
275
|
...t,
|
|
276
276
|
xlsxWorksheetLimits: r.worksheet
|
|
277
|
-
}, { acquireXlsxSessionFromArchive: a, configureHostLayout: o, validateXlsxModelSourceArchive: c, validateXlsxModelSourceViewDefaults: l } = await import("./model-source-session-
|
|
277
|
+
}, { acquireXlsxSessionFromArchive: a, configureHostLayout: o, validateXlsxModelSourceArchive: c, validateXlsxModelSourceViewDefaults: l } = await import("./model-source-session-ClNCRDOg.js"), u = await y(e, "xlsx", {
|
|
278
278
|
...i,
|
|
279
279
|
source: i.legacyXls
|
|
280
280
|
}, c);
|
|
@@ -283,7 +283,7 @@ async function w(e, t, n) {
|
|
|
283
283
|
try {
|
|
284
284
|
if (l(d.viewDefaults), f = await o(d.archive, async (e) => {
|
|
285
285
|
if (!t.factory) return;
|
|
286
|
-
let { measureHostLayoutFont: n } = await import("./host-layout-measure-
|
|
286
|
+
let { measureHostLayoutFont: n } = await import("./host-layout-measure-IFLllYwV.js"), r = t.factory.createCanvas(1, 1).getContext("2d");
|
|
287
287
|
return r ? n(e, r) : void 0;
|
|
288
288
|
}), t.signal?.aborted) {
|
|
289
289
|
let e = /* @__PURE__ */ Error("XLSX workbook session was aborted");
|
package/dist/xlsx.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Co as e, wo as t } from "./plot-area-frame-DNYMd9Pf.js";
|
|
2
|
+
import { p as n } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
3
3
|
import { f as r, u as i } from "./pixel-budget-DI82Hn3R.js";
|
|
4
4
|
import { i as a, t as o } from "./tiff-contract-DEd8CGuz.js";
|
|
5
|
-
import { D as s } from "./canvas-viewer-mechanics-
|
|
6
|
-
import { a as c } from "./worksheet-pull-client-
|
|
7
|
-
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./xlsx-
|
|
5
|
+
import { D as s } from "./canvas-viewer-mechanics-BsqaoYgK.js";
|
|
6
|
+
import { a as c } from "./worksheet-pull-client-BudfclVl.js";
|
|
7
|
+
import { a as l, i as u, n as d, o as f, r as p, s as m } from "./xlsx-DBhYlJKp.js";
|
|
8
8
|
export { u as MAX_SELECTION_AREAS, l as MAX_SELECTION_CONTEXT_CELLS, f as MAX_SELECTION_CONTEXT_TEXT_CHARACTERS, i as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, o as TiffDecodeError, d as XlsxSheetViewer, p as XlsxViewer, m as XlsxWorkbook, s as autoResize, r as isOoxmlDecodedImageLimitError, a as isTiffDecodeError, n as openExternalHyperlink, c as resolveSharedStrings };
|
package/dist/xlsx_parser_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED