@silurus/ooxml 0.75.5 → 0.76.1
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 +66 -28
- package/dist/bounded-raw-part-cache-C6ro6Ezf.js +254 -0
- package/dist/{find-cursor-Dc5iM6s7.js → canvas-viewer-mechanics-CwVSOYke.js} +192 -64
- package/dist/{document-pull-client-BcNYhoAG.js → document-pull-client-AAnwzlig.js} +3625 -3601
- package/dist/docx-CCksIXd5.js +1301 -0
- package/dist/docx.mjs +4 -6
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-B8sqT8kC.js → line-distribute-C1r2zvji.js} +141 -141
- package/dist/{line-metrics-D9gqQWHl.js → line-metrics-BdCACYlq.js} +4026 -1170
- package/dist/math.mjs +1 -1
- package/dist/node.mjs +779 -465
- package/dist/pptx-CKAk5e-J.js +1735 -0
- package/dist/pptx.mjs +5 -7
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-CalC7GX4.js → render-CLcpSi0m.js} +11 -18
- package/dist/render-worker-host-B8HAb_sK.js +27 -0
- package/dist/render-worker-host-Bkf1jUcW.js +27 -0
- package/dist/render-worker-host-CKOmXdyr.js +27 -0
- package/dist/resource-measurement-E_S_iau4.js +119 -0
- package/dist/session-B4Y54cbT.js +730 -0
- package/dist/{renderer-B9R6F_QY.js → slide-pull-client-WCuYCjio.js} +973 -820
- package/dist/types/docx.d.ts +1181 -3994
- package/dist/types/index.d.ts +2733 -8171
- package/dist/types/math.d.ts +8 -33
- package/dist/types/node.d.ts +1852 -4433
- package/dist/types/pptx.d.ts +1030 -3678
- package/dist/types/xlsx.d.ts +1291 -3262
- package/dist/worksheet-pull-client-YzjJMOns.js +455 -0
- package/dist/xlsx-BBmmZNQn.js +6362 -0
- package/dist/xlsx.mjs +5 -7
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +14 -7
- package/dist/bounded-raw-part-cache-BTfZD_Sz.js +0 -1248
- package/dist/docx-DjF8FgoP.js +0 -1274
- package/dist/duotone-bitmap-by-path-CWsSJkJu.js +0 -28
- package/dist/hyperlink-D85FexTa.js +0 -27
- package/dist/pptx-C17xP8AV.js +0 -1705
- package/dist/pptx-Dl8tOSmP.js +0 -822
- package/dist/preload-BEouWnlI.js +0 -132
- package/dist/render-worker-host-BG3a7brz.js +0 -27
- package/dist/render-worker-host-CsB-dPJv.js +0 -27
- package/dist/render-worker-host-Cyv5Hkbh.js +0 -27
- package/dist/resource-measurement-6aReN3K0.js +0 -93
- package/dist/slide-pull-client-D_T0AIoX.js +0 -175
- package/dist/svg-image-by-path-C1M3N2pT.js +0 -1623
- package/dist/worksheet-pull-worker-DCei8u-4.js +0 -347
- package/dist/xlsx-BaH9irS0.js +0 -5515
- /package/dist/{highlight-rect-cCvVU-MW.js → highlight-rect-CAkCWJ37.js} +0 -0
- /package/dist/{mathjax-Dqo857oC.js → mathjax-CMjda8Ip.js} +0 -0
- /package/dist/{transfer-3QEJrsJa.js → transfer-DCu4c2BL.js} +0 -0
- /package/dist/{visible-index-CKvgpUrf.js → visible-index-CgyJLAS_.js} +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
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-D9gqQWHl.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 };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region packages/core/src/interaction/hyperlink.ts
|
|
2
|
-
var e = [
|
|
3
|
-
"http",
|
|
4
|
-
"https",
|
|
5
|
-
"mailto",
|
|
6
|
-
"tel"
|
|
7
|
-
];
|
|
8
|
-
function t(e) {
|
|
9
|
-
let t = "";
|
|
10
|
-
for (let n of e) {
|
|
11
|
-
let e = n.codePointAt(0);
|
|
12
|
-
e !== void 0 && e > 32 && (t += n);
|
|
13
|
-
}
|
|
14
|
-
let n = /^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);
|
|
15
|
-
return n ? n[1].toLowerCase() : null;
|
|
16
|
-
}
|
|
17
|
-
function n(n, r = e) {
|
|
18
|
-
if (n === "") return null;
|
|
19
|
-
let i = t(n);
|
|
20
|
-
return i === null || r.includes(i) ? n : null;
|
|
21
|
-
}
|
|
22
|
-
function r(t, r = e, i = typeof window < "u" ? window : void 0) {
|
|
23
|
-
let a = n(t, r);
|
|
24
|
-
return a === null || !i ? !1 : (i.open(a, "_blank", "noopener,noreferrer"), !0);
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { t as n, r, e as t };
|