hayun-vite 0.10.1 → 0.11.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/assets/data/sampleData.js +10 -2
- package/assets/templates/mainTemplate.js +128 -0
- package/assets/templates/template_combo.js +49 -44
- package/package.json +1 -1
- package/src/Audiogram/Audiogram.js +43 -21
- package/src/Audiogram/Audiogram_100.js +499 -0
- package/src/Audiogram/Audiogram_box.js +483 -0
- package/src/Audiogram/dims.js +4 -80
- package/src/Audiogram/dims_100.js +51 -0
- package/src/Audiogram/dims_box.js +125 -0
- package/src/Form/Form.js +38 -42
- package/src/Form/Form_N.js +194 -0
- package/src/Form/Forms.js +0 -2
- package/src/Form/Sections.js +0 -6
- package/src/Form/Sections_N.js +66 -0
- package/src/{Form → Header}/Header.js +1 -4
- package/src/Header/Header_N.js +72 -0
- package/src/{Form/Box.js → MultiText/MultiText.js} +42 -25
- package/src/MultiText/MultiText_N.js +37 -0
- package/src/{Form/Reflex_N.js → Reflex/Reflex.js} +17 -4
- package/src/Reflex/units.js +65 -0
- package/src/{Form/Speech_N.js → Speech/Speech.js} +47 -30
- package/src/Speech/Speech_N.js +125 -0
- package/src/Speech/units.js +31 -0
- package/src/{Form → Tympanogram}/Tympanogram.js +39 -69
- package/src/Tympanogram/units.js +76 -0
- package/src/common/{putTextBox.js → putCell.js} +6 -6
- package/src/common/putG.js +10 -0
- package/src/common/putLine.js +1 -1
- package/src/common/putText.js +5 -4
- package/src/main.js +192 -19
- package/assets/fonts/Vazirmatn-Regular.woff2 +0 -0
- package/assets/styles-test.css +0 -86
- package/assets/styles.css +0 -86
- package/src/Form/Reflex.js +0 -145
- package/src/Form/Speech.js +0 -121
- package/src/Form/globalinfo.js +0 -68
package/assets/styles-test.css
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
|
2
|
-
.header1 {
|
3
|
-
user-select: none;
|
4
|
-
/* direction: rtl; */
|
5
|
-
/* text-align: center; */
|
6
|
-
font-family: Vazir;
|
7
|
-
font-size: 1.6mm;
|
8
|
-
font-weight: bolder;
|
9
|
-
}
|
10
|
-
.header2 {
|
11
|
-
user-select: none;
|
12
|
-
direction: rtl;
|
13
|
-
/* text-align: center; */
|
14
|
-
text-anchor: middle;
|
15
|
-
/* font-family: sans-serif, Helvetica, Arial;*/
|
16
|
-
/* font-family: Verdana, Geneva, Tahoma, sans-serif; */
|
17
|
-
font-family: sans-serif !important;
|
18
|
-
font-family: 'Courier New', Courier, monospace;
|
19
|
-
font-size: 1.1mm;
|
20
|
-
font-weight: bold;
|
21
|
-
}
|
22
|
-
|
23
|
-
.header3 {
|
24
|
-
user-select: none;
|
25
|
-
/* direction: rtl; */
|
26
|
-
/* text-align: center; */
|
27
|
-
font-family: sans-serif !important;
|
28
|
-
|
29
|
-
/* font-family: Vazir; */
|
30
|
-
font-size: 1mm;
|
31
|
-
font-weight: bold;
|
32
|
-
}
|
33
|
-
.header4 {
|
34
|
-
user-select: none;
|
35
|
-
direction: rtl;
|
36
|
-
/* text-align: center; */
|
37
|
-
font-family: Vazir;
|
38
|
-
font-size: 1mm;
|
39
|
-
/* font-weight: bold; */
|
40
|
-
}
|
41
|
-
.tymp1 {
|
42
|
-
user-select: none;
|
43
|
-
direction: ltr !important;
|
44
|
-
/* text-align: center; */
|
45
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
46
|
-
font-size: 1mm;
|
47
|
-
/* font-weight: bold; */
|
48
|
-
}
|
49
|
-
|
50
|
-
.tymp2 {
|
51
|
-
user-select: none;
|
52
|
-
direction: ltr !important;
|
53
|
-
/* text-align: center; */
|
54
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
55
|
-
font-size: 0.8mm;
|
56
|
-
/* font-weight: bold; */
|
57
|
-
}
|
58
|
-
.mizoon {
|
59
|
-
display: table;
|
60
|
-
margin-right: auto;
|
61
|
-
margin-left: auto;
|
62
|
-
/* display: flex; */
|
63
|
-
/* justify-content: center; */
|
64
|
-
}
|
65
|
-
|
66
|
-
.symbol_square {
|
67
|
-
stroke-opacity: 100;
|
68
|
-
}
|
69
|
-
|
70
|
-
input {
|
71
|
-
display: block;
|
72
|
-
width: 60%;
|
73
|
-
border: 1px solid antiquewhite;
|
74
|
-
padding: 10px 10px;
|
75
|
-
margin: 10px auto 10px auto;
|
76
|
-
}
|
77
|
-
|
78
|
-
.header5 {
|
79
|
-
/* font: 1.5px Verdana, Helvetica, Arial, sans-serif; */
|
80
|
-
user-select: none;
|
81
|
-
direction: rtl;
|
82
|
-
text-align: right;
|
83
|
-
font-family: Vazir;
|
84
|
-
font-size: 0.9mm;
|
85
|
-
font-weight: bold;
|
86
|
-
}
|
package/assets/styles.css
DELETED
@@ -1,86 +0,0 @@
|
|
1
|
-
|
2
|
-
.header1 {
|
3
|
-
user-select: none;
|
4
|
-
/* direction: rtl; */
|
5
|
-
/* text-align: center; */
|
6
|
-
font-family: Vazir;
|
7
|
-
font-size: 1.6mm;
|
8
|
-
font-weight: bolder;
|
9
|
-
}
|
10
|
-
.header2 {
|
11
|
-
user-select: none;
|
12
|
-
direction: rtl;
|
13
|
-
/* text-align: center; */
|
14
|
-
text-anchor: middle;
|
15
|
-
/* font-family: sans-serif, Helvetica, Arial;*/
|
16
|
-
/* font-family: Verdana, Geneva, Tahoma, sans-serif; */
|
17
|
-
font-family: sans-serif !important;
|
18
|
-
font-family: 'Courier New', Courier, monospace;
|
19
|
-
font-size: 1.1mm;
|
20
|
-
font-weight: bold;
|
21
|
-
}
|
22
|
-
|
23
|
-
.header3 {
|
24
|
-
user-select: none;
|
25
|
-
/* direction: rtl; */
|
26
|
-
/* text-align: center; */
|
27
|
-
font-family: sans-serif !important;
|
28
|
-
|
29
|
-
/* font-family: Vazir; */
|
30
|
-
font-size: 1mm;
|
31
|
-
font-weight: bold;
|
32
|
-
}
|
33
|
-
.header4 {
|
34
|
-
user-select: none;
|
35
|
-
direction: rtl;
|
36
|
-
/* text-align: center; */
|
37
|
-
font-family: Vazir;
|
38
|
-
font-size: 1mm;
|
39
|
-
/* font-weight: bold; */
|
40
|
-
}
|
41
|
-
.tymp1 {
|
42
|
-
user-select: none;
|
43
|
-
direction: ltr !important;
|
44
|
-
/* text-align: center; */
|
45
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
46
|
-
font-size: 1mm;
|
47
|
-
/* font-weight: bold; */
|
48
|
-
}
|
49
|
-
|
50
|
-
.tymp2 {
|
51
|
-
user-select: none;
|
52
|
-
direction: ltr !important;
|
53
|
-
/* text-align: center; */
|
54
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
55
|
-
font-size: 0.8mm;
|
56
|
-
/* font-weight: bold; */
|
57
|
-
}
|
58
|
-
.mizoon {
|
59
|
-
display: table;
|
60
|
-
margin-right: auto;
|
61
|
-
margin-left: auto;
|
62
|
-
/* display: flex; */
|
63
|
-
/* justify-content: center; */
|
64
|
-
}
|
65
|
-
|
66
|
-
.symbol_square {
|
67
|
-
stroke-opacity: 100;
|
68
|
-
}
|
69
|
-
|
70
|
-
input {
|
71
|
-
display: block;
|
72
|
-
width: 60%;
|
73
|
-
border: 1px solid antiquewhite;
|
74
|
-
padding: 10px 10px;
|
75
|
-
margin: 10px auto 10px auto;
|
76
|
-
}
|
77
|
-
|
78
|
-
.header5 {
|
79
|
-
/* font: 1.5px Verdana, Helvetica, Arial, sans-serif; */
|
80
|
-
user-select: none;
|
81
|
-
direction: rtl;
|
82
|
-
text-align: right;
|
83
|
-
font-family: Vazir;
|
84
|
-
font-size: 0.9mm;
|
85
|
-
font-weight: bold;
|
86
|
-
}
|
package/src/Form/Reflex.js
DELETED
@@ -1,145 +0,0 @@
|
|
1
|
-
import putRect from "../common/putRect.js";
|
2
|
-
import putText from "../common/putText.js";
|
3
|
-
|
4
|
-
const svgNS = "http://www.w3.org/2000/svg";
|
5
|
-
|
6
|
-
export default class Reflex {
|
7
|
-
constructor({ container, side }) {
|
8
|
-
this.container = container;
|
9
|
-
this.side = side; // این برای تعیین رنگ راست و چپ استفاده میشود
|
10
|
-
}
|
11
|
-
|
12
|
-
draw({ dims }) {
|
13
|
-
|
14
|
-
let width = dims.width;
|
15
|
-
let height = dims.height;
|
16
|
-
let x = dims.margin.left;
|
17
|
-
let y = dims.margin.top;
|
18
|
-
let style;
|
19
|
-
|
20
|
-
// x = 10
|
21
|
-
// y=1
|
22
|
-
// width= 80
|
23
|
-
// height = 24
|
24
|
-
|
25
|
-
const svg = document.createElementNS(svgNS, "svg");
|
26
|
-
svg.setAttribute("x", x);
|
27
|
-
svg.setAttribute("y", y);
|
28
|
-
svg.setAttribute("width", width);
|
29
|
-
svg.setAttribute("height", height);
|
30
|
-
svg.setAttribute("class", "reflex");
|
31
|
-
|
32
|
-
let lable = ["", "500", "1000", "2000", "4000"]; // مقادیر برچسبهای سطر اول
|
33
|
-
// جدولی با ۳ سطر و ۵ ستون
|
34
|
-
let cw1 = width / 5; // پهنای خانههای سطر اول
|
35
|
-
let ch1 = height / 3; // ارتفاع خانههای سطر اول
|
36
|
-
let ch2 = height / 3; // ارتفاع خانههای سطر دوم
|
37
|
-
|
38
|
-
// چاپ برچسبهای سطر اول
|
39
|
-
style = `
|
40
|
-
user-select: none;
|
41
|
-
direction: ltr !important;
|
42
|
-
/* text-align: center; */
|
43
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
44
|
-
font-size: 1mm;
|
45
|
-
font-weight: bold;
|
46
|
-
text-anchor: middle; /*تراز افقی*/
|
47
|
-
dominant-baseline: middle; /* تراز عمودی*/
|
48
|
-
`;
|
49
|
-
lable.forEach((value, i) => {
|
50
|
-
if (value != "") {
|
51
|
-
let x = cw1 / 2 + cw1 * i;
|
52
|
-
let y = ch1 / 2;
|
53
|
-
// putText(value, x, y, "", "middle", "middle"); // با استایل تراز عمودی پایین نسبت به خط پایه
|
54
|
-
putText({ container: svg, value, x, y, style })
|
55
|
-
}
|
56
|
-
});
|
57
|
-
|
58
|
-
// مقادیر برچسبهای ستون اول
|
59
|
-
style = `
|
60
|
-
user-select: none;
|
61
|
-
direction: ltr !important;
|
62
|
-
/* text-align: center; */
|
63
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
64
|
-
font-size: 1mm;
|
65
|
-
font-weight: bold;
|
66
|
-
text-anchor: end; /*تراز افقی*/
|
67
|
-
dominant-baseline: middle; /* تراز عمودی*/
|
68
|
-
`;
|
69
|
-
lable = ["Freq", "IPSI", "CONTRA"];
|
70
|
-
// چاپ برچسبهای ستون اول
|
71
|
-
putText({ container: svg, value: "Freq", x: cw1, y: ch1 / 2, style: style })
|
72
|
-
putText({ container: svg, value: "IPSI", x: cw1, y: ch1 * 3 / 2, style: style })
|
73
|
-
putText({ container: svg, value: "CONTRA", x: cw1, y: ch1 * 5 / 2, style: style })
|
74
|
-
|
75
|
-
//چاپ ده باکس سطر دوم و سوم
|
76
|
-
for (let j = 1; j <= 2; j++) {
|
77
|
-
for (let i = 1; i <= 4; i++) {
|
78
|
-
let x = cw1 / 2 + cw1 * i;
|
79
|
-
let y = ch1 * j + ch2 / 2;
|
80
|
-
let bw = cw1 * 0.8; // پهنای هر باکس
|
81
|
-
let bh = ch2 * 0.7; // ارتفاع هر باکس
|
82
|
-
//رسم باکس با مختصات مرکز باکس
|
83
|
-
putBox(x, y, bw, bh);
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
style = `
|
88
|
-
user-select: none;
|
89
|
-
direction: ltr !important;
|
90
|
-
/* text-align: center; */
|
91
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
92
|
-
font-size: 1mm;
|
93
|
-
text-anchor: middle; /*تراز افقی*/
|
94
|
-
dominant-baseline: middle; /* تراز عمودی*/
|
95
|
-
`;
|
96
|
-
// اضافه کردن رنگ قرمز یا آبی به استایل بر اساس جهت
|
97
|
-
style += (this.side === 'R') ? 'fill: red;' : 'fill: blue;';
|
98
|
-
|
99
|
-
let names = ["IPSI_500", "IPSI_1000", "IPSI_2000", "IPSI_4000"];
|
100
|
-
for (let index = 0; index < 4; index++) {
|
101
|
-
x = cw1 / 2 + cw1 * (index + 1);
|
102
|
-
y = ch1 + ch2 / 2;
|
103
|
-
putText({ container: svg, value: "", x: x, y: y, style: style, name: names[index] })
|
104
|
-
}
|
105
|
-
|
106
|
-
// المنتهای تکست خالی با آیدی یکتا در سطر سوم
|
107
|
-
// آرایه نام آیدی یکتا برای المنت تکست مقادیر برای استفاده تابع آپدیت
|
108
|
-
names = ["CONTRA_500", "CONTRA_1000", "CONTRA_2000", "CONTRA_4000"];
|
109
|
-
|
110
|
-
for (let index = 0; index < 4; index++) {
|
111
|
-
// const idValue = idValues[index];
|
112
|
-
x = cw1 / 2 + cw1 * (index + 1);
|
113
|
-
y = ch1 * 2 + ch2 / 2;
|
114
|
-
putText({ container: svg, value: "", x: x, y: y, style: style, name: names[index] })
|
115
|
-
}
|
116
|
-
// مربع احاطهکننده کل جدول برای راهنمای توسعه و دریافت رویداد کلیک روی فرم
|
117
|
-
style = 'fill: transparent; stroke: green; stroke-width: 0.5;';
|
118
|
-
putRect({ container: svg, x: 0, y: 0, width, height, style, name: dims.name })
|
119
|
-
this.container.appendChild(svg);
|
120
|
-
this.chart = svg;
|
121
|
-
// return svg;
|
122
|
-
|
123
|
-
// توابع داخلی مورد نیاز
|
124
|
-
function putBox(x, y, w, h) {
|
125
|
-
let rect = document.createElementNS(svgNS, "rect");
|
126
|
-
rect.setAttribute("x", x - w / 2);
|
127
|
-
rect.setAttribute("y", y - h / 2);
|
128
|
-
rect.setAttribute("width", w);
|
129
|
-
rect.setAttribute("height", h);
|
130
|
-
rect.setAttribute("rx", 1.5)
|
131
|
-
rect.setAttribute("style", "fill: transparent; stroke: black; stroke-width: 0.2;");
|
132
|
-
svg.appendChild(rect);
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
// جایگذاری داده های رفلکس
|
137
|
-
update(data) {
|
138
|
-
|
139
|
-
for (const key in data) {
|
140
|
-
for (const freq in data[key]) {
|
141
|
-
this.chart.querySelector(`text[data-name=${key}_${freq}]`).innerHTML = data?.[key]?.[freq] || "";
|
142
|
-
}
|
143
|
-
}
|
144
|
-
}
|
145
|
-
}
|
package/src/Form/Speech.js
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
import putRect from "../common/putRect.js";
|
2
|
-
import putText from "../common/putText.js";
|
3
|
-
|
4
|
-
const svgNS = "http://www.w3.org/2000/svg";
|
5
|
-
|
6
|
-
export default class Speech {
|
7
|
-
constructor({ container, side = 'R' }) {
|
8
|
-
this.container = container;
|
9
|
-
}
|
10
|
-
|
11
|
-
draw({ dims, stroke = true }) {
|
12
|
-
console.log(dims);
|
13
|
-
|
14
|
-
// دریافت اطلاعات مختصات چاپ ورودی ها به جز عادی محاسبه شده
|
15
|
-
this.inputs = (dims.forceInsert) ? dims.forceInputs : dims.inputs
|
16
|
-
let style;
|
17
|
-
let width = dims.width;
|
18
|
-
let height = dims.height;
|
19
|
-
let x = dims.margin.left;
|
20
|
-
let y = dims.margin.top;
|
21
|
-
const labels = dims.labels;
|
22
|
-
const cn = labels.length;
|
23
|
-
this.labels = labels;
|
24
|
-
let sideCaption = this.side === "R" ? "Right" : "Left";
|
25
|
-
// یک جدول 6*2 - ۲ سطر و ۶ ستون
|
26
|
-
// const cw = width / 6; // پهنای هر خانه
|
27
|
-
const cw = width / (cn + 1); // پهنای هر خانه
|
28
|
-
const ch = height / 2; // ارتفاع هر خانه
|
29
|
-
// بوردر کل چارت
|
30
|
-
const svg = document.createElementNS(svgNS, "svg");
|
31
|
-
// svg.setAttribute("id", id);
|
32
|
-
svg.setAttribute("x", x);
|
33
|
-
svg.setAttribute("y", y);
|
34
|
-
svg.setAttribute("width", width);
|
35
|
-
svg.setAttribute("height", height);
|
36
|
-
svg.setAttribute("class", "speach");
|
37
|
-
|
38
|
-
style = `
|
39
|
-
user-select: none;
|
40
|
-
direction: ltr !important;
|
41
|
-
/* text-align: center; */
|
42
|
-
font-family: Arial, Helvetica, sans-serif !important;
|
43
|
-
font-size: 0.8mm;
|
44
|
-
font-weight: bold;
|
45
|
-
text-anchor: middle; /*تراز افقی*/
|
46
|
-
dominant-baseline: hanging; /* تراز عمودی*/
|
47
|
-
`;
|
48
|
-
// const lables = ["SAT", "SRT", "MCL", "UCL", "SDS"]; // مقادیر برچسبهای سطر اول
|
49
|
-
// let cw1 = width / 6; // پهنای خانههای سطر اول
|
50
|
-
let cw1 = width / (cn + 1); // پهنای خانههای سطر اول
|
51
|
-
let ch1 = height / 2; // ارتفاع خانههای سطر اول
|
52
|
-
let ch2 = height / 2; // ارتفاع خانههای سطر دوم
|
53
|
-
|
54
|
-
if (!dims.hideContext) {
|
55
|
-
// چاپ برچسبهای سطر اول
|
56
|
-
labels.forEach((value, i) => {
|
57
|
-
let x = cw1 / 2 + cw1 * (i + 1);
|
58
|
-
let y = ch1 / 2;
|
59
|
-
putText({ container: svg, value, x, y, style });
|
60
|
-
})
|
61
|
-
//چاپ پنج باکس سطر دوم
|
62
|
-
for (let i = 1; i <= 5; i++) {
|
63
|
-
let x = cw1 / 2 + cw1 * i;
|
64
|
-
let y = ch1 + ch2 / 2;
|
65
|
-
let bw = cw1 * 0.80; // پهنای هر باکس
|
66
|
-
let bh = ch2 * 0.80; // ارتفاع هر باکس
|
67
|
-
//رسم باکس با مختصات مرکز باکس
|
68
|
-
putBox({ x, y, w: bw, h: bh });
|
69
|
-
}
|
70
|
-
|
71
|
-
style += 'text-anchor: start; dominant-baseline: middle; /* تراز عمودی*/ ';
|
72
|
-
// برچسب راست و چپ سطر دوم
|
73
|
-
putText({ container: svg, value: sideCaption, x: cw1 / 2, y: ch1 + ch2 / 2, style: style }); //با استایل تراز عمودی وسط نسبت به خط پایه
|
74
|
-
}
|
75
|
-
// در سطر دوم
|
76
|
-
// اینپوتها
|
77
|
-
style += 'text-anchor: middle; dominant-baseline: middle; /* تراز عمودی*/ ';
|
78
|
-
|
79
|
-
// New
|
80
|
-
if (!dims.forceInsert) {
|
81
|
-
let index = 0;
|
82
|
-
labels.forEach(label => {
|
83
|
-
index++
|
84
|
-
x = cw1 / 2 + cw1 * index;
|
85
|
-
y = ch1 + ch2 / 2;
|
86
|
-
putText({ container: svg, value: "", x: x, y: y, style: style, name: label })
|
87
|
-
})
|
88
|
-
} else {
|
89
|
-
// برای فرم های مثل رسا استفاده میشود
|
90
|
-
let name;
|
91
|
-
this.inputs.forEach(input => {
|
92
|
-
({ name, x, y } = input);
|
93
|
-
putText({ container: svg, x, y, style: style, name });
|
94
|
-
});
|
95
|
-
}
|
96
|
-
// مربع احاطهکننده کل جدول برای راهنمای توسعه
|
97
|
-
style = 'fill: transparent; stroke: green; stroke-width: 0.5;';
|
98
|
-
let className = 'no-print'
|
99
|
-
putRect({ container: svg, x: 0, y: 0, width, height, style, name: dims.name, className })
|
100
|
-
this.chart = svg;
|
101
|
-
this.container.appendChild(svg);
|
102
|
-
|
103
|
-
// توابع داخلی مورد نیاز
|
104
|
-
// تابع رسم نقطه برای راهنمای نقاط
|
105
|
-
function putBox({ x, y, w, h, style }) {
|
106
|
-
let rect = document.createElementNS(svgNS, "rect");
|
107
|
-
rect.setAttribute("x", x - w / 2);
|
108
|
-
rect.setAttribute("y", y - h / 2);
|
109
|
-
rect.setAttribute("width", w);
|
110
|
-
rect.setAttribute("height", h);
|
111
|
-
rect.setAttribute("style", "fill: transparent; stroke: black; stroke-width: 0.2;");
|
112
|
-
svg.appendChild(rect);
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
update(data) {
|
117
|
-
this.labels.forEach((label) => {
|
118
|
-
this.chart.querySelector(`text[data-name=${label}]`).innerHTML = data?.[label] || "";
|
119
|
-
})
|
120
|
-
}
|
121
|
-
}
|
package/src/Form/globalinfo.js
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
const svgNS = "http://www.w3.org/2000/svg";
|
2
|
-
|
3
|
-
// تعریف آبجکت مختصات ایکس - فرکانس در تیبل ادیوگرام
|
4
|
-
const xFrequency = {
|
5
|
-
// مقدار کلید برابر با مختصات محلی فرکانس هست
|
6
|
-
20: 250,
|
7
|
-
40: 500,
|
8
|
-
53: 750,
|
9
|
-
60: 1000,
|
10
|
-
73: 1500,
|
11
|
-
80: 2000,
|
12
|
-
93: 3000,
|
13
|
-
100: 4000,
|
14
|
-
113: 6000,
|
15
|
-
120: 8000,
|
16
|
-
};
|
17
|
-
const freqToXObj = {
|
18
|
-
// آبجکت تبدیل فرکانس به مختصات ایکس جدول ادیوگرام
|
19
|
-
250: 20,
|
20
|
-
500: 40,
|
21
|
-
750: 53,
|
22
|
-
1000: 60,
|
23
|
-
1500: 73,
|
24
|
-
2000: 80,
|
25
|
-
3000: 93,
|
26
|
-
4000: 100,
|
27
|
-
6000: 113,
|
28
|
-
8000: 120,
|
29
|
-
};
|
30
|
-
// تعریف آبجکت مختصات ایگرگ - شدت در تیبل ادیوگرام
|
31
|
-
const yIntensity = {
|
32
|
-
5: -15,
|
33
|
-
10: -10,
|
34
|
-
15: -5,
|
35
|
-
20: 0,
|
36
|
-
25: 5,
|
37
|
-
30: 10,
|
38
|
-
35: 15,
|
39
|
-
40: 20,
|
40
|
-
45: 25,
|
41
|
-
50: 30,
|
42
|
-
55: 35,
|
43
|
-
60: 40,
|
44
|
-
65: 45,
|
45
|
-
70: 50,
|
46
|
-
75: 55,
|
47
|
-
80: 60,
|
48
|
-
85: 65,
|
49
|
-
90: 70,
|
50
|
-
95: 75,
|
51
|
-
100: 80,
|
52
|
-
105: 85,
|
53
|
-
110: 90,
|
54
|
-
115: 95,
|
55
|
-
120: 100,
|
56
|
-
125: 105,
|
57
|
-
130: 110,
|
58
|
-
135: 115,
|
59
|
-
140: 120,
|
60
|
-
145: 125,
|
61
|
-
};
|
62
|
-
|
63
|
-
export {
|
64
|
-
svgNS,
|
65
|
-
xFrequency,
|
66
|
-
yIntensity,
|
67
|
-
freqToXObj,
|
68
|
-
};
|