@epam/ai-dial-attachment-canvas 1.2.0-dev.15 → 1.2.0-dev.20

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.
@@ -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 };