@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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Io as e, Po as t } from "./plot-area-frame-DNYMd9Pf.js";
|
|
2
|
+
import { Bt as n, Vt as r, cn as i, in as a, sn as o, un as s } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
3
3
|
var c = /^\p{Cf}$/u, l = /^\s$/u, u = /^\p{M}$/u, d = /^\p{Script_Extensions=Arabic}$/u, f = /^(?=\p{Script=Arabic})\p{L}$/u;
|
|
4
4
|
function p(e, t) {
|
|
5
5
|
for (let n of t) if (!(l.test(n) || c.test(n))) switch (e) {
|
|
@@ -10,7 +10,7 @@ function p(e, t) {
|
|
|
10
10
|
function m(e, t, n) {
|
|
11
11
|
let r = [...new Set([
|
|
12
12
|
0,
|
|
13
|
-
...
|
|
13
|
+
...a(t),
|
|
14
14
|
t.length
|
|
15
15
|
])].sort((e, t) => e - t), i = r.slice(0, -1).map((i, a) => {
|
|
16
16
|
let o = r[a + 1], s = p(e, t.slice(i, o));
|
|
@@ -19,28 +19,28 @@ function m(e, t, n) {
|
|
|
19
19
|
end: o,
|
|
20
20
|
cls: s !== "neutral" && s !== "other" && n && !n(i, o) ? "other" : s
|
|
21
21
|
};
|
|
22
|
-
}),
|
|
23
|
-
for (;
|
|
24
|
-
if (i[
|
|
25
|
-
|
|
26
|
-
...i[
|
|
22
|
+
}), o = [], s = 0;
|
|
23
|
+
for (; s < i.length;) {
|
|
24
|
+
if (i[s].cls === "other") {
|
|
25
|
+
o.push({
|
|
26
|
+
...i[s],
|
|
27
27
|
inScope: !1
|
|
28
|
-
}),
|
|
28
|
+
}), s += 1;
|
|
29
29
|
continue;
|
|
30
30
|
}
|
|
31
|
-
let e =
|
|
31
|
+
let e = s;
|
|
32
32
|
for (; e < i.length && i[e].cls !== "other";) e += 1;
|
|
33
|
-
let t = i.slice(
|
|
34
|
-
for (let r =
|
|
35
|
-
let e = i[r],
|
|
36
|
-
|
|
33
|
+
let t = i.slice(s, e).some((e) => e.cls === "proof"), n = !1;
|
|
34
|
+
for (let r = s; r < e; r += 1) {
|
|
35
|
+
let e = i[r], a = t && (e.cls === "neutral" ? n : !0);
|
|
36
|
+
o.push({
|
|
37
37
|
...e,
|
|
38
|
-
inScope:
|
|
39
|
-
}), n =
|
|
38
|
+
inScope: a
|
|
39
|
+
}), n = a;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
s = e;
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return o;
|
|
44
44
|
}
|
|
45
45
|
function h(e, t, n) {
|
|
46
46
|
let r = m(e, t), i = r.some((e) => e.cls === "proof");
|
|
@@ -2701,7 +2701,7 @@ function q(e, t = {}) {
|
|
|
2701
2701
|
pendingLastWidth: 0,
|
|
2702
2702
|
naturalGapSum: 0,
|
|
2703
2703
|
gapCount: 0
|
|
2704
|
-
}, r = [], c = [], l = t.collect !== !1, u = t.segmentOffset ?? 0, d = t.lastDrawnSi ?? e.length - 1, f = t.isWhitespace ?? K, p = t.isGapChar ??
|
|
2704
|
+
}, r = [], c = [], l = t.collect !== !1, u = t.segmentOffset ?? 0, d = t.lastDrawnSi ?? e.length - 1, f = t.isWhitespace ?? K, p = t.isGapChar ?? s, m = (e) => t.gapWidth?.(e.si, e.off, e.cp ?? 0) ?? 1, h = (e, t = "space") => ({
|
|
2705
2705
|
kind: t,
|
|
2706
2706
|
codePoint: e.cp,
|
|
2707
2707
|
segIndex: e.si,
|
|
@@ -2709,18 +2709,24 @@ function q(e, t = {}) {
|
|
|
2709
2709
|
naturalPx: m(e),
|
|
2710
2710
|
trailing: e.off === e.len - 1
|
|
2711
2711
|
}), g = (e) => {
|
|
2712
|
-
let
|
|
2713
|
-
if (f > 0 && n.hasContent && n.pendingCount === 0 && u(
|
|
2714
|
-
...h(
|
|
2712
|
+
let s = n.last, u = (e) => e?.cp !== void 0 && e.cp !== 9, f = e.off === 0 && !e.ws && t.leadingGapWidth ? t.leadingGapWidth(e.si) : 0;
|
|
2713
|
+
if (f > 0 && n.hasContent && n.pendingCount === 0 && u(s) && u(e) && s.si !== d && (n.naturalGapSum += f, n.gapCount += 1, l && r.push({
|
|
2714
|
+
...h(s, "leading"),
|
|
2715
2715
|
naturalPx: f
|
|
2716
2716
|
})), e.ws) {
|
|
2717
|
-
n.hasContent && e.si !== d
|
|
2717
|
+
if (n.hasContent && e.si !== d) {
|
|
2718
|
+
if (t.seaClusterSpaceGaps && t.seaClusterGaps && n.pendingCount === 0 && s?.cp !== void 0 && i(s.cp) && s.si !== d) {
|
|
2719
|
+
let e = m(s);
|
|
2720
|
+
n.pendingWidth += e, n.pendingCount += 1, l && c.push(h(s, "boundary"));
|
|
2721
|
+
}
|
|
2722
|
+
n.pendingLastWidth = m(e), n.pendingWidth += n.pendingLastWidth, n.pendingCount += 1, l && c.push(h(e));
|
|
2723
|
+
}
|
|
2718
2724
|
return;
|
|
2719
2725
|
}
|
|
2720
2726
|
if (n.pendingCount > 0) {
|
|
2721
|
-
if (t.atomicSpaceGaps && e.cp !== void 0 && !
|
|
2727
|
+
if (t.atomicSpaceGaps && e.cp !== void 0 && !a(` ${String.fromCodePoint(e.cp)}`).includes(1) && (n.pendingWidth -= n.pendingLastWidth, --n.pendingCount, l && c.pop()), (!t.textCellSpaceGaps || u(s) && u(e)) && (n.naturalGapSum += n.pendingWidth, n.gapCount += n.pendingCount, l)) for (let e of c) r.push(e);
|
|
2722
2728
|
n.pendingWidth = 0, n.pendingCount = 0, n.pendingLastWidth = 0, c = [];
|
|
2723
|
-
} else
|
|
2729
|
+
} else s && s.si !== d && n.hasContent && !_ && (s.cp !== void 0 && p(s.cp) || e.cp !== void 0 && p(e.cp) || t.seaClusterGaps && s.cp !== void 0 && e.cp !== void 0 && i(s.cp) && i(e.cp) && !o(e.cp)) && (n.naturalGapSum += m(s), n.gapCount += 1, l && r.push(h(s, "boundary")));
|
|
2724
2730
|
n.hasContent = !0, n.last = e;
|
|
2725
2731
|
}, _ = (t.prefix?.pendingCount ?? 0) > 0;
|
|
2726
2732
|
for (let n = t.firstContentSi ?? 0; n < e.length; n++) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./cfb-guard-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./cfb-guard-DzYlucez.js";
|
|
2
|
+
import { K as t } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
3
3
|
import { i as n, n as r, o as i } from "./model-source-COXegBNA.js";
|
|
4
4
|
async function a(a, s, c, l, u = (e) => t(e) ?? e) {
|
|
5
5
|
let d = a instanceof Uint8Array ? a : new Uint8Array(a), f = c.source === void 0 ? void 0 : i([c.source], s, d);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as e, K as t, P as n, U as r } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
2
2
|
import { n as i } from "./abort-JztSoyw2.js";
|
|
3
|
-
import { b as a } from "./worksheet-pull-client-
|
|
3
|
+
import { b as a } from "./worksheet-pull-client-BudfclVl.js";
|
|
4
4
|
import { a as o } from "./model-source-COXegBNA.js";
|
|
5
5
|
import { t as s } from "./host-layout-Cz_lCuTZ.js";
|
|
6
6
|
var c = [
|
|
@@ -21,45 +21,45 @@ function u(e) {
|
|
|
21
21
|
let [t] = Object.keys(e);
|
|
22
22
|
if (t !== void 0) throw TypeError(`unsupported XLSX model source view default: ${t}`);
|
|
23
23
|
}
|
|
24
|
-
function d(
|
|
25
|
-
let
|
|
24
|
+
function d(e, t) {
|
|
25
|
+
let n = e(), i = t();
|
|
26
26
|
return {
|
|
27
|
-
workbook:
|
|
28
|
-
usage: i === void 0 ? void 0 :
|
|
27
|
+
workbook: n,
|
|
28
|
+
usage: i === void 0 ? void 0 : r(i)
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
var f = "XLSX workbook session was aborted";
|
|
32
|
-
function p(
|
|
32
|
+
function p(r, o = {}) {
|
|
33
33
|
let s;
|
|
34
34
|
try {
|
|
35
|
-
let
|
|
36
|
-
if (!Number.isSafeInteger(
|
|
37
|
-
let c =
|
|
38
|
-
s = new
|
|
35
|
+
let t = a(o);
|
|
36
|
+
if (!Number.isSafeInteger(r.sourceByteLength) || r.sourceByteLength < 0) throw RangeError("XLSX sourceByteLength must be a non-negative safe integer");
|
|
37
|
+
let c = e(o);
|
|
38
|
+
s = new n({
|
|
39
39
|
enabled: c.debug || c.onResourceMetrics !== void 0,
|
|
40
40
|
format: "xlsx",
|
|
41
41
|
mode: "node",
|
|
42
42
|
scope: "session",
|
|
43
43
|
policy: c.policy,
|
|
44
|
-
formatLimits: { xlsxWorksheetLimits: { ...
|
|
44
|
+
formatLimits: { xlsxWorksheetLimits: { ...t.worksheet } },
|
|
45
45
|
onMetrics: c.onResourceMetrics,
|
|
46
46
|
emitToConsole: c.debug
|
|
47
|
-
}), s.setSourceBytes(
|
|
48
|
-
let l =
|
|
49
|
-
return
|
|
47
|
+
}), s.setSourceBytes(r.sourceByteLength), i(o.signal, f);
|
|
48
|
+
let l = r.archive, { workbook: u, usage: p } = d(() => JSON.parse(new TextDecoder().decode(l.parse())), () => l.resource_usage?.());
|
|
49
|
+
return r.layoutMetrics && (u.layoutMetrics = { maximumDigitWidth: r.layoutMetrics.maximumDigitWidth }), s.observeUsage(p), s.checkpoint("workbook index ready"), {
|
|
50
50
|
archive: l,
|
|
51
51
|
workbookIndex: u,
|
|
52
52
|
usage: p,
|
|
53
53
|
metrics: s,
|
|
54
|
-
worksheetPolicy:
|
|
55
|
-
closeArchive: () =>
|
|
54
|
+
worksheetPolicy: t,
|
|
55
|
+
closeArchive: () => r.closeArchive()
|
|
56
56
|
};
|
|
57
|
-
} catch (
|
|
57
|
+
} catch (e) {
|
|
58
58
|
try {
|
|
59
|
-
|
|
59
|
+
r.closeArchive();
|
|
60
60
|
} catch {}
|
|
61
|
-
let
|
|
62
|
-
throw s?.fail(
|
|
61
|
+
let n = t(e) ?? e;
|
|
62
|
+
throw s?.fail(n), n;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
export { p as acquireXlsxSessionFromArchive, s as configureHostLayout, l as validateXlsxModelSourceArchive, u as validateXlsxModelSourceViewDefaults };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e } from "./slide-pull-client-
|
|
2
|
-
import {
|
|
1
|
+
import { a as e } from "./slide-pull-client-3g6TxaKa.js";
|
|
2
|
+
import { G as t, I as n, P as r } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
3
3
|
import { n as i } from "./abort-JztSoyw2.js";
|
|
4
4
|
import { a } from "./model-source-COXegBNA.js";
|
|
5
5
|
var o = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as e, K as t, P as n } from "./bounded-raw-part-cache-B5a6cGKO.js";
|
|
2
2
|
import { n as r } from "./abort-JztSoyw2.js";
|
|
3
3
|
import { a as i } from "./model-source-COXegBNA.js";
|
|
4
4
|
import { t as a } from "./in-process-pull-transport-BPJ7M0uC.js";
|
|
5
|
-
import { n as o, r as s, t as c } from "./document-pull-worker-
|
|
5
|
+
import { n as o, r as s, t as c } from "./document-pull-worker-hMKJ5RdB.js";
|
|
6
6
|
var l = [
|
|
7
7
|
"open_document_cursor",
|
|
8
8
|
"pull_document_chunk",
|
package/dist/node.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Co as e, wo as t } from "./plot-area-frame-DNYMd9Pf.js";
|
|
2
2
|
import { f as n, u as r } from "./pixel-budget-DI82Hn3R.js";
|
|
3
|
-
import { n as i, r as a } from "./pptx-
|
|
4
|
-
import { n as o, r as s } from "./docx-
|
|
5
|
-
import { n as c, r as l, t as u } from "./render-
|
|
6
|
-
import { a as d, i as f, n as p, r as m } from "./xlsx-
|
|
3
|
+
import { n as i, r as a } from "./pptx-C1CiFW1D.js";
|
|
4
|
+
import { n as o, r as s } from "./docx-DE-Di6SH.js";
|
|
5
|
+
import { n as c, r as l, t as u } from "./render-Bf_Gywxw.js";
|
|
6
|
+
import { a as d, i as f, n as p, r as m } from "./xlsx-DA0uR1B1.js";
|
|
7
7
|
export { r as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, u as installImageBitmapShim, c as installOffscreenCanvasShim, n as isOoxmlDecodedImageLimitError, o as materializeDocxDocument, i as materializePptxPresentation, p as materializeXlsxWorkbook, m as materializeXlsxWorkbookIndex, f as materializeXlsxWorksheet, s as openDocxDocument, a as openPptxPresentation, d as openXlsxWorkbook, l as renderSlideNode };
|