@silurus/ooxml 0.85.3 → 0.86.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 +39 -7
- package/dist/assets/render-worker-D21h5TGR.js +10 -0
- package/dist/assets/render-worker-Dsfekaht.js +11 -0
- package/dist/assets/render-worker-DxU7IrKo.js +31 -0
- package/dist/bounded-raw-part-cache-BfbSxRIL.js +119 -0
- package/dist/{canvas-viewer-mechanics-CDNMJ-Yz.js → canvas-viewer-mechanics-DN5SqWGS.js} +329 -192
- package/dist/{comment-ui-runtime-DAKBCpsM.js → comment-ui-runtime-DEtgcmj7.js} +5 -5
- package/dist/comment-ui-runtime-TLHustXJ.js +2 -0
- package/dist/{comment-ui-runtime-CAbpuWi_.js → comment-ui-runtime-lXwVOgjW.js} +4 -4
- package/dist/{comments-Brfxa3hQ.js → comments-CAn2A_Xh.js} +1 -1
- package/dist/delimited-text-worker-host-DcHj_JZt.js +27 -0
- package/dist/{document-pull-client-F3ox_VXK.js → document-pull-client-uopDjRde.js} +4477 -4431
- package/dist/{docx-BYvm3TWw.js → docx-wPzeF76A.js} +519 -334
- package/dist/docx.mjs +7 -7
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{dom-interaction-boundary-CDGegIB5.js → dom-interaction-boundary-CswB9Tzi.js} +60 -57
- package/dist/{line-metrics-BGtFM-ec.js → hyperlink-BR1NCO7S.js} +954 -935
- package/dist/index.mjs +4 -4
- package/dist/{line-distribute-BsV4MVZ2.js → line-distribute-IsUGfHXm.js} +10 -10
- package/dist/line-metrics-CBbw80Ko.js +60 -0
- package/dist/node.mjs +266 -266
- package/dist/{pptx-BqpVTP8p.js → pptx-BxJ_RBSY.js} +173 -165
- package/dist/pptx.mjs +5 -5
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/{render-DeZpRCfx.js → render-DEiun_AH.js} +1 -1
- package/dist/{render-worker-host-BKtXmlEF.js → render-worker-host-BEfLZvSL.js} +1 -1
- package/dist/{render-worker-host-CNKQ76tu.js → render-worker-host-Ba6Fchqr.js} +1 -1
- package/dist/{render-worker-host-CBcQXsR5.js → render-worker-host-C3xwtHnv.js} +1 -1
- package/dist/{resource-measurement-D41R-0Bl.js → resource-measurement-CclArDRs.js} +10 -10
- package/dist/{session-n2p5_jxV.js → session-BuJL_xcp.js} +87 -87
- package/dist/{slide-pull-client-Dwek7xW8.js → slide-pull-client-Ck8wfRT_.js} +1239 -1165
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +10 -11
- package/dist/types/index.d.ts +38 -19
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +6 -5
- package/dist/types/pptx.d.ts +10 -10
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/tiff.d.ts +1 -1
- package/dist/types/xlsx.d.ts +34 -14
- package/dist/{worksheet-pull-client-C9sC36Vu.js → worksheet-pull-client-CAvuf22q.js} +72 -69
- package/dist/{xlsx-DSU6pV1O.js → xlsx-Bblm5r1h.js} +1752 -1592
- package/dist/xlsx.mjs +5 -5
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-D1O73gYW.js +0 -10
- package/dist/assets/render-worker-DHP0rgcW.js +0 -24
- package/dist/assets/render-worker-V2wWYA4O.js +0 -11
- package/dist/bounded-raw-part-cache-C6ro6Ezf.js +0 -254
- package/dist/comment-ui-runtime-DTaaZdXC.js +0 -2
- /package/dist/{comment-occurrence-tj54AXXB.js → comment-occurrence-CqejEuts.js} +0 -0
- /package/dist/{highlight-rect-DBcYVJDv.js → highlight-rect-FuUSmL3a.js} +0 -0
- /package/dist/{read-only-comment-decoration-Mv_SAiHy.js → read-only-comment-decoration-BTnWEeo5.js} +0 -0
- /package/dist/{read-only-comment-margin-Cqu-Ir0C.js → read-only-comment-margin-plStyGfE.js} +0 -0
- /package/dist/{source-key-BkBB3X82.js → source-key-Ktb1GRE5.js} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
export {
|
|
1
|
+
import { t as e } from "./docx-wPzeF76A.js";
|
|
2
|
+
import { t } from "./xlsx-Bblm5r1h.js";
|
|
3
|
+
import { t as n } from "./pptx-BxJ_RBSY.js";
|
|
4
|
+
export { e as docx, n as pptx, t as xlsx };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as e, Ot as t, v as n, y as r } from "./hyperlink-BR1NCO7S.js";
|
|
2
2
|
import { _ as i } from "./plot-area-frame-D5hEOgkJ.js";
|
|
3
3
|
//#region packages/core/src/fonts/symbol-font.ts
|
|
4
4
|
var a = {
|
|
@@ -958,7 +958,7 @@ function z(e, t, n, r, i, a, o) {
|
|
|
958
958
|
var B = (e) => e === 32 || e === 12288;
|
|
959
959
|
function V(t, i, a = {}) {
|
|
960
960
|
if (Math.abs(i) <= .5) return null;
|
|
961
|
-
let o = a.firstContentSi ?? 0, s = a.lastDrawnSi ?? t.length - 1, c = a.minPerGap ?? -Infinity, l = a.isGapChar ??
|
|
961
|
+
let o = a.firstContentSi ?? 0, s = a.lastDrawnSi ?? t.length - 1, c = a.minPerGap ?? -Infinity, l = a.isGapChar ?? e, u = a.isWhitespace ?? B, d = a.seaClusterGaps ?? !1, f = [];
|
|
962
962
|
for (let e = o; e < t.length; e++) {
|
|
963
963
|
let n = t[e];
|
|
964
964
|
if (n === void 0) continue;
|
|
@@ -985,17 +985,17 @@ function V(t, i, a = {}) {
|
|
|
985
985
|
for (let e = 0; e < f.length; e++) f[e].ws || (p === -1 && (p = e), m = e);
|
|
986
986
|
if (p === -1 || p === m) return null;
|
|
987
987
|
let h = Array(f.length).fill(!1), g = 0;
|
|
988
|
-
for (let
|
|
989
|
-
let
|
|
990
|
-
if (
|
|
991
|
-
if (
|
|
992
|
-
h[
|
|
988
|
+
for (let e = p; e < m; e++) {
|
|
989
|
+
let t = f[e];
|
|
990
|
+
if (t.si === s) continue;
|
|
991
|
+
if (t.ws) {
|
|
992
|
+
h[e] = !0, g++;
|
|
993
993
|
continue;
|
|
994
994
|
}
|
|
995
|
-
let i = f[
|
|
995
|
+
let i = f[e + 1];
|
|
996
996
|
if (i.ws) continue;
|
|
997
|
-
let a =
|
|
998
|
-
(a !== void 0 && l(a) || o !== void 0 && l(o) || d && a !== void 0 && o !== void 0 && r(a) && r(o) && !
|
|
997
|
+
let a = t.cp, o = i.cp;
|
|
998
|
+
(a !== void 0 && l(a) || o !== void 0 && l(o) || d && a !== void 0 && o !== void 0 && r(a) && r(o) && !n(o)) && (h[e] = !0, g++);
|
|
999
999
|
}
|
|
1000
1000
|
if (g === 0) return null;
|
|
1001
1001
|
let _ = i / g;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region packages/core/src/text/line-metrics.ts
|
|
2
|
+
var e = [
|
|
3
|
+
[(e) => e.includes("meiryo ui") || e.includes("meiryoui") || e.includes("メイリオ") && e.includes("ui"), {
|
|
4
|
+
asc: 2171 * 1.3 / 2048,
|
|
5
|
+
desc: 430 * 1.3 / 2048,
|
|
6
|
+
eaOnly: !0
|
|
7
|
+
}],
|
|
8
|
+
[(e) => e.includes("meiryo") || e.includes("メイリオ"), {
|
|
9
|
+
asc: 2210 / 2048,
|
|
10
|
+
desc: 1059 / 2048
|
|
11
|
+
}],
|
|
12
|
+
[(e) => !e.includes("ui") && (e.includes("yu mincho") || e.includes("yumincho") || e.includes("游明朝") || e.includes("yu gothic") || e.includes("yugothic") || e.includes("游ゴシック")), {
|
|
13
|
+
asc: 1802 * 1.3 / 2048,
|
|
14
|
+
desc: 455 * 1.3 / 2048,
|
|
15
|
+
eaOnly: !0
|
|
16
|
+
}],
|
|
17
|
+
[(e) => e.includes("sakkal majalla") || e.includes("majalla"), {
|
|
18
|
+
asc: 1810 / 2048,
|
|
19
|
+
desc: 1050 / 2048
|
|
20
|
+
}],
|
|
21
|
+
[(e) => e === "times new roman", {
|
|
22
|
+
asc: 1825 / 2048,
|
|
23
|
+
desc: 530 / 2048
|
|
24
|
+
}],
|
|
25
|
+
[(e) => e === "arial", {
|
|
26
|
+
asc: 1854 / 2048,
|
|
27
|
+
desc: 501 / 2048
|
|
28
|
+
}]
|
|
29
|
+
];
|
|
30
|
+
function t(t, n) {
|
|
31
|
+
if (!t) return null;
|
|
32
|
+
let r = t.toLowerCase();
|
|
33
|
+
for (let [t, i] of e) if (t(r) && (n || !i.eaOnly)) return i;
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
function n(e, n = !1) {
|
|
37
|
+
let r = t(e, n);
|
|
38
|
+
return r === null ? null : r.asc + r.desc;
|
|
39
|
+
}
|
|
40
|
+
function r(e, t, r = !1) {
|
|
41
|
+
let i = n(e, r);
|
|
42
|
+
return i === null ? 0 : i * t;
|
|
43
|
+
}
|
|
44
|
+
function i(e, n, r, i, a = !1) {
|
|
45
|
+
let o = t(e, a);
|
|
46
|
+
if (o === null) return {
|
|
47
|
+
ascent: r,
|
|
48
|
+
descent: i
|
|
49
|
+
};
|
|
50
|
+
let s = (o.asc + o.desc) * n;
|
|
51
|
+
return r + i <= s ? {
|
|
52
|
+
ascent: r,
|
|
53
|
+
descent: i
|
|
54
|
+
} : {
|
|
55
|
+
ascent: o.asc * n,
|
|
56
|
+
descent: o.desc * n
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { r as n, i as t };
|