@epam/ai-dial-attachment-canvas 1.2.0-dev.3 → 1.2.0-dev.34
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/{LazyContentBoundary-CRXN6PG3.js → LazyContentBoundary-Cxx8J-Bl.js} +2 -1
- package/{PdfContent-D71LPAe3.js → PdfContent-DN_j6BCb.js} +1 -1
- package/PdfContent.css +1 -1
- package/{attachment-canvas-nvhW3tKV.js → attachment-canvas-BNu9KfEu.js} +1 -1
- package/components/AttachmentCanvas/AttachmentCanvas.d.ts.map +1 -1
- package/components/AttachmentCanvasBody/AttachmentCanvasBody.d.ts.map +1 -1
- package/components/AttachmentCanvasContainer/AttachmentCanvasContainer.d.ts.map +1 -1
- package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts +36 -0
- package/components/InlineGroupedVisualizer/InlineGroupedVisualizer.d.ts.map +1 -0
- package/components/PdfContent/PdfContent.d.ts.map +1 -1
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts +5 -3
- package/components/VisualizerCanvasRenderer/VisualizerCanvasRenderer.d.ts.map +1 -1
- package/context/AttachmentCanvasContext.d.ts.map +1 -1
- package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts +14 -1
- package/hooks/useOpenAttachmentCanvas/useOpenAttachmentCanvas.d.ts.map +1 -1
- package/index.css +2 -1
- package/index.d.ts +6 -3
- package/index.d.ts.map +1 -1
- package/index.js +567 -496
- package/models/attachment-canvas.d.ts +20 -9
- package/models/attachment-canvas.d.ts.map +1 -1
- package/{ooxml-highlight-surfaces-CaMjx8u-.js → ooxml-highlight-surfaces-vLEREQkr.js} +1 -1
- package/package.json +3 -3
- package/types/attachment-canvas.d.ts +2 -1
- package/types/attachment-canvas.d.ts.map +1 -1
- package/utils/content.d.ts +16 -2
- package/utils/content.d.ts.map +1 -1
- package/utils/download.d.ts.map +1 -1
- package/utils/visualizer.d.ts +29 -1
- package/utils/visualizer.d.ts.map +1 -1
- package/utils/vite-external-matcher.d.ts +5 -5
- package/utils/vite-external-matcher.d.ts.map +1 -1
- package/bounded-raw-part-cache-Cg1BsSZQ-DN8p45IK.js +0 -37900
- package/chart-ex-DsESBs97.js +0 -1009
- package/comment-occurrence-C8Y2uoVr-C1cxz2TU.js +0 -6
- package/comment-ui-runtime-BfE7MJZn-DhQ_eg15.js +0 -112
- package/comment-ui-runtime-BsK8pmUT-EgWiymew.js +0 -2
- package/comment-ui-runtime-DcJOYlw--B15auUq-.js +0 -170
- package/comments-Diid5ujN-BdQhRNjI.js +0 -282
- package/delimited-text-worker-host-BVY-Ecni-AimUmSn0.js +0 -25
- package/docx-B-VcIRoc.js +0 -29870
- package/line-distribute-Dtudnqhs--BYZNgzX.js +0 -1237
- package/line-metrics-B60C86uh-DfQUk7X1.js +0 -60
- package/pptx-CnoDB8Fv.js +0 -9211
- package/read-only-comment-decoration-Dz7eTQ4d-Cl3RKKH6.js +0 -94
- package/read-only-comment-margin-DkgzASAl-BbDxMI5E.js +0 -189
- package/render-worker-host-BfbnEChF-D2thMRGX.js +0 -7
- package/render-worker-host-DNL9dWRh-Bky38ZHE.js +0 -7
- package/render-worker-host-IkHrYOci-DbjyHK7U.js +0 -7
- package/renderer-module-contract-D91rkYHH-BtfSKxb4.js +0 -10063
- package/visible-index-BgiHEc1z-BOzE9X5U.js +0 -162
- package/xlsx-Dn0XSlTO.js +0 -8610
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/@silurus/ooxml/dist/line-metrics-B60C86uh.js
|
|
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 };
|