@silurus/ooxml 0.74.6 → 0.75.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 +105 -6
- package/dist/bounded-raw-part-cache-BTfZD_Sz.js +1248 -0
- package/dist/{docx-DftZMp7R.js → document-pull-client-H80_E10V.js} +11165 -11517
- package/dist/docx-BX0mJqS1.js +1274 -0
- package/dist/docx.mjs +6 -3
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/duotone-bitmap-by-path-Dv5Ikbzl.js +28 -0
- package/dist/find-cursor-Dc5iM6s7.js +815 -0
- package/dist/highlight-rect-cCvVU-MW.js +48 -0
- package/dist/hyperlink-D85FexTa.js +27 -0
- package/dist/index.mjs +4 -4
- package/dist/{highlight-rect-IjFkGg4X.js → line-distribute-DkLgIa7B.js} +37 -84
- package/dist/{find-cursor-DtgyGs5V.js → line-metrics-qwIyTk7Q.js} +1169 -3641
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +998 -0
- package/dist/pptx-BEYjiTnZ.js +822 -0
- package/dist/pptx-CXgyi7wu.js +1705 -0
- package/dist/pptx.mjs +7 -3
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/preload-BEouWnlI.js +132 -0
- package/dist/render-C0wMf5eT.js +71 -0
- package/dist/render-worker-host-CLdOlxFu.js +27 -0
- package/dist/render-worker-host-DZ4u0RFs.js +27 -0
- package/dist/render-worker-host-s3J-mWBP.js +27 -0
- package/dist/renderer-CwzTv9hH.js +5225 -0
- package/dist/resource-measurement-6aReN3K0.js +93 -0
- package/dist/slide-pull-client-D_T0AIoX.js +175 -0
- package/dist/svg-image-by-path-C1M3N2pT.js +1623 -0
- package/dist/transfer-3QEJrsJa.js +6 -0
- package/dist/types/docx.d.ts +290 -105
- package/dist/types/index.d.ts +399 -142
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +4855 -0
- package/dist/types/pptx.d.ts +431 -245
- package/dist/types/xlsx.d.ts +320 -120
- package/dist/visible-index-CKvgpUrf.js +17 -0
- package/dist/worksheet-pull-worker-DCei8u-4.js +347 -0
- package/dist/{xlsx-BqMHvfsE.js → xlsx-DJyPlzjB.js} +1499 -1284
- package/dist/xlsx.mjs +7 -3
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +12 -2
- package/dist/pptx-qbadwIv4.js +0 -6761
- package/dist/render-worker-host-Bcm9j4-H.js +0 -27
- package/dist/render-worker-host-BqSTDaYt.js +0 -27
- package/dist/render-worker-host-C523QxVw.js +0 -27
- package/dist/visible-index-C3_3gBg-.js +0 -50
- /package/dist/{mathjax-BPjQ2C_j.js → mathjax-Dqo857oC.js} +0 -0
package/dist/docx.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { M as e, N as t } from "./bounded-raw-part-cache-BTfZD_Sz.js";
|
|
2
|
+
import { p as n } from "./find-cursor-Dc5iM6s7.js";
|
|
3
|
+
import { a as r, i, n as a, o, r as s, s as c } from "./docx-BX0mJqS1.js";
|
|
4
|
+
import { f as l, p as u } from "./svg-image-by-path-C1M3N2pT.js";
|
|
5
|
+
import { r as d } from "./hyperlink-D85FexTa.js";
|
|
6
|
+
export { c as DocxDocument, s as DocxScrollViewer, i as DocxViewer, l as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, n as autoResize, r as buildDocxHighlightLayer, o as buildDocxTextLayer, u as isOoxmlDecodedImageLimitError, a as noteText, d as openExternalHyperlink };
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { a as e, s as t } from "./svg-image-by-path-C1M3N2pT.js";
|
|
2
|
+
import { I as n, V as r } from "./line-metrics-qwIyTk7Q.js";
|
|
3
|
+
//#region packages/core/src/image/duotone-bitmap-by-path.ts
|
|
4
|
+
function i(e, t) {
|
|
5
|
+
return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
|
|
6
|
+
}
|
|
7
|
+
var a = "duotone";
|
|
8
|
+
async function o(o, s, c, l, u = {}) {
|
|
9
|
+
let { offscreenFactory: d, ...f } = u, p = await e(o, s, l, f);
|
|
10
|
+
return !c || !p ? p : t(a, i(o, c), l, async () => {
|
|
11
|
+
let { w: e, h: t } = r(p);
|
|
12
|
+
if (e <= 0 || t <= 0) return {
|
|
13
|
+
bitmap: p,
|
|
14
|
+
owned: !1
|
|
15
|
+
};
|
|
16
|
+
let i = await n(p, c, {
|
|
17
|
+
width: e,
|
|
18
|
+
height: t,
|
|
19
|
+
offscreenFactory: d
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
bitmap: i,
|
|
23
|
+
owned: i !== p
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as t };
|