hayun-vite 0.10.0 → 0.11.0

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.
Files changed (59) hide show
  1. package/assets/data/sampleData.js +10 -2
  2. package/assets/templates/mainTemplate.js +128 -0
  3. package/assets/templates/template_combo.js +50 -45
  4. package/package.json +1 -1
  5. package/public/fonts/Vazir-Black-UI.eot +0 -0
  6. package/public/fonts/Vazir-Black-UI.woff +0 -0
  7. package/public/fonts/Vazir-Black-UI.woff2 +0 -0
  8. package/public/fonts/Vazir-Bold-UI.eot +0 -0
  9. package/public/fonts/Vazir-Bold-UI.woff +0 -0
  10. package/public/fonts/Vazir-Bold-UI.woff2 +0 -0
  11. package/public/fonts/Vazir-Light-UI.eot +0 -0
  12. package/public/fonts/Vazir-Light-UI.woff +0 -0
  13. package/public/fonts/Vazir-Light-UI.woff2 +0 -0
  14. package/public/fonts/Vazir-Medium-UI.eot +0 -0
  15. package/public/fonts/Vazir-Medium-UI.woff +0 -0
  16. package/public/fonts/Vazir-Medium-UI.woff2 +0 -0
  17. package/public/fonts/Vazir-Regular-UI.eot +0 -0
  18. package/public/fonts/Vazir-Regular-UI.woff +0 -0
  19. package/public/fonts/Vazir-Regular-UI.woff2 +0 -0
  20. package/public/fonts/Vazir-Thin-UI.eot +0 -0
  21. package/public/fonts/Vazir-Thin-UI.woff +0 -0
  22. package/public/fonts/Vazir-Thin-UI.woff2 +0 -0
  23. package/src/Audiogram/Audiogram.js +43 -21
  24. package/src/Audiogram/Audiogram_100.js +499 -0
  25. package/src/Audiogram/Audiogram_box.js +483 -0
  26. package/src/Audiogram/dims.js +4 -80
  27. package/src/Audiogram/dims_100.js +51 -0
  28. package/src/Audiogram/dims_box.js +125 -0
  29. package/src/{Form → Box}/Box.js +26 -3
  30. package/src/Form/Form.js +8 -8
  31. package/src/Form/Form_N.js +194 -0
  32. package/src/Form/Forms.js +0 -2
  33. package/src/Form/Sections.js +0 -6
  34. package/src/Form/Sections_N.js +66 -0
  35. package/src/Form/printForm.js +57 -5
  36. package/src/{Form → Header}/Header.js +2 -5
  37. package/src/Header/Header_N.js +72 -0
  38. package/src/MultiText/MultiText.js +37 -0
  39. package/src/{Form/Reflex_N.js → Reflex/Reflex.js} +15 -3
  40. package/src/Reflex/units.js +65 -0
  41. package/src/{Form/Speech_N.js → Speech/Speech.js} +45 -28
  42. package/src/Speech/Speech_N.js +125 -0
  43. package/src/Speech/units.js +31 -0
  44. package/src/{Form → Tympanogram}/Tympanogram.js +37 -68
  45. package/src/Tympanogram/units.js +76 -0
  46. package/src/common/{putTextBox.js → putCell.js} +6 -6
  47. package/src/common/putG.js +10 -0
  48. package/src/common/putLine.js +1 -1
  49. package/src/common/putText.js +5 -4
  50. package/src/main.js +140 -19
  51. package/src/styles.css +63 -3
  52. package/assets/fonts/Vazirmatn-Regular.woff2 +0 -0
  53. package/assets/styles-test.css +0 -90
  54. package/assets/styles.css +0 -90
  55. package/src/Form/Reflex.js +0 -145
  56. package/src/Form/Speech.js +0 -121
  57. package/src/Form/formStyles.css +0 -117
  58. package/src/Form/globalinfo.js +0 -68
  59. package/src/note.html +0 -64
@@ -1,90 +0,0 @@
1
- @font-face {
2
- /* src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); */
3
- src: url('./fonts/Vazirmatn-Regular.woff2') format('woff2');
4
- font-family: vazirmatn;
5
- }
6
- .header1 {
7
- user-select: none;
8
- /* direction: rtl; */
9
- /* text-align: center; */
10
- font-family: vazirmatn;
11
- font-size: 1.6mm;
12
- font-weight: bolder;
13
- }
14
- .header2 {
15
- user-select: none;
16
- direction: rtl;
17
- /* text-align: center; */
18
- text-anchor: middle;
19
- /* font-family: sans-serif, Helvetica, Arial;*/
20
- /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
21
- font-family: sans-serif !important;
22
- font-family: 'Courier New', Courier, monospace;
23
- font-size: 1.1mm;
24
- font-weight: bold;
25
- }
26
-
27
- .header3 {
28
- user-select: none;
29
- /* direction: rtl; */
30
- /* text-align: center; */
31
- font-family: sans-serif !important;
32
-
33
- /* font-family: vazirmatn; */
34
- font-size: 1mm;
35
- font-weight: bold;
36
- }
37
- .header4 {
38
- user-select: none;
39
- direction: rtl;
40
- /* text-align: center; */
41
- font-family: vazirmatn;
42
- font-size: 1mm;
43
- /* font-weight: bold; */
44
- }
45
- .tymp1 {
46
- user-select: none;
47
- direction: ltr !important;
48
- /* text-align: center; */
49
- font-family: Arial, Helvetica, sans-serif !important;
50
- font-size: 1mm;
51
- /* font-weight: bold; */
52
- }
53
-
54
- .tymp2 {
55
- user-select: none;
56
- direction: ltr !important;
57
- /* text-align: center; */
58
- font-family: Arial, Helvetica, sans-serif !important;
59
- font-size: 0.8mm;
60
- /* font-weight: bold; */
61
- }
62
- .mizoon {
63
- display: table;
64
- margin-right: auto;
65
- margin-left: auto;
66
- /* display: flex; */
67
- /* justify-content: center; */
68
- }
69
-
70
- .symbol_square {
71
- stroke-opacity: 100;
72
- }
73
-
74
- input {
75
- display: block;
76
- width: 60%;
77
- border: 1px solid antiquewhite;
78
- padding: 10px 10px;
79
- margin: 10px auto 10px auto;
80
- }
81
-
82
- .header5 {
83
- /* font: 1.5px Verdana, Helvetica, Arial, sans-serif; */
84
- user-select: none;
85
- direction: rtl;
86
- text-align: right;
87
- font-family: vazirmatn;
88
- font-size: 0.9mm;
89
- font-weight: bold;
90
- }
package/assets/styles.css DELETED
@@ -1,90 +0,0 @@
1
- @font-face {
2
- /* src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); */
3
- src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
4
- font-family: vazirmatn;
5
- }
6
- .header1 {
7
- user-select: none;
8
- /* direction: rtl; */
9
- /* text-align: center; */
10
- font-family: vazirmatn;
11
- font-size: 1.6mm;
12
- font-weight: bolder;
13
- }
14
- .header2 {
15
- user-select: none;
16
- direction: rtl;
17
- /* text-align: center; */
18
- text-anchor: middle;
19
- /* font-family: sans-serif, Helvetica, Arial;*/
20
- /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
21
- font-family: sans-serif !important;
22
- font-family: 'Courier New', Courier, monospace;
23
- font-size: 1.1mm;
24
- font-weight: bold;
25
- }
26
-
27
- .header3 {
28
- user-select: none;
29
- /* direction: rtl; */
30
- /* text-align: center; */
31
- font-family: sans-serif !important;
32
-
33
- /* font-family: vazirmatn; */
34
- font-size: 1mm;
35
- font-weight: bold;
36
- }
37
- .header4 {
38
- user-select: none;
39
- direction: rtl;
40
- /* text-align: center; */
41
- font-family: vazirmatn;
42
- font-size: 1mm;
43
- /* font-weight: bold; */
44
- }
45
- .tymp1 {
46
- user-select: none;
47
- direction: ltr !important;
48
- /* text-align: center; */
49
- font-family: Arial, Helvetica, sans-serif !important;
50
- font-size: 1mm;
51
- /* font-weight: bold; */
52
- }
53
-
54
- .tymp2 {
55
- user-select: none;
56
- direction: ltr !important;
57
- /* text-align: center; */
58
- font-family: Arial, Helvetica, sans-serif !important;
59
- font-size: 0.8mm;
60
- /* font-weight: bold; */
61
- }
62
- .mizoon {
63
- display: table;
64
- margin-right: auto;
65
- margin-left: auto;
66
- /* display: flex; */
67
- /* justify-content: center; */
68
- }
69
-
70
- .symbol_square {
71
- stroke-opacity: 100;
72
- }
73
-
74
- input {
75
- display: block;
76
- width: 60%;
77
- border: 1px solid antiquewhite;
78
- padding: 10px 10px;
79
- margin: 10px auto 10px auto;
80
- }
81
-
82
- .header5 {
83
- /* font: 1.5px Verdana, Helvetica, Arial, sans-serif; */
84
- user-select: none;
85
- direction: rtl;
86
- text-align: right;
87
- font-family: vazirmatn;
88
- font-size: 0.9mm;
89
- font-weight: bold;
90
- }
@@ -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
- }
@@ -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
- }
@@ -1,117 +0,0 @@
1
-
2
-
3
- button {
4
- background-color: #4CAF50;
5
- /* Green background */
6
- border: none;
7
- /* Remove borders */
8
- color: white;
9
- /* White text */
10
- padding: 15px 32px;
11
- /* Some padding */
12
- text-align: center;
13
- /* Centered text */
14
- text-decoration: none;
15
- /* Remove underline */
16
- display: inline-block;
17
- /* Make the button inline */
18
- font-size: 16px;
19
- /* Increase font size */
20
- margin: 4px 2px;
21
- /* Add some margin */
22
- cursor: pointer;
23
- /* Pointer cursor on hover */
24
- border-radius: 8px;
25
- /* Rounded corners */
26
- transition: background-color 0.3s;
27
- /* Smooth transition */
28
- }
29
-
30
- button:hover {
31
- background-color: #45a049;
32
- /* Darker green on hover */
33
- }
34
-
35
- button:active {
36
- background-color: #3e8e41;
37
- /* Even darker green when clicked */
38
- }
39
-
40
-
41
- .header1 {
42
- user-select: none;
43
- /* direction: rtl; */
44
- /* text-align: center; */
45
- font-family: vazirmatn;
46
- font-size: 1.6mm;
47
- font-weight: bolder;
48
- }
49
- .header2 {
50
- user-select: none;
51
- direction: rtl;
52
- /* text-align: center; */
53
- text-anchor: middle;
54
- /* font-family: sans-serif, Helvetica, Arial;*/
55
- /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
56
- font-family: sans-serif !important;
57
- font-family: 'Courier New', Courier, monospace;
58
- font-size: 1.1mm;
59
- font-weight: bold;
60
- }
61
- .header3 {
62
- user-select: none;
63
- /* direction: rtl; */
64
- /* text-align: center; */
65
- font-family: sans-serif !important;
66
-
67
- /* font-family: vazirmatn; */
68
- font-size: 1mm;
69
- font-weight: bold;
70
- }
71
- .header4 {
72
- user-select: none;
73
- direction: rtl;
74
- /* text-align: center; */
75
- font-family: vazirmatn;
76
- font-size: 1mm;
77
- /* font-weight: bold; */
78
- }
79
- .tymp1 {
80
- user-select: none;
81
- direction: ltr !important;
82
- /* text-align: center; */
83
- font-family: Arial, Helvetica, sans-serif !important;
84
- font-size: 1mm;
85
- /* font-weight: bold; */
86
- }
87
- .tymp2 {
88
- user-select: none;
89
- direction: ltr !important;
90
- /* text-align: center; */
91
- font-family: Arial, Helvetica, sans-serif !important;
92
- font-size: 0.8mm;
93
- /* font-weight: bold; */
94
- }
95
- /* .mizoon {
96
- display: table;
97
- margin-right: auto;
98
- margin-left: auto;
99
-
100
- } */
101
-
102
- /* input {
103
- display: block;
104
- width: 60%;
105
- border: 1px solid antiquewhite;
106
- padding: 10px 10px;
107
- margin: 10px auto 10px auto;
108
- } */
109
- .header5 {
110
- /* font: 1.5px Verdana, Helvetica, Arial, sans-serif; */
111
- user-select: none;
112
- direction: rtl;
113
- text-align: right;
114
- font-family: vazirmatn;
115
- font-size: 0.9mm;
116
- font-weight: bold;
117
- }
@@ -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
- };
package/src/note.html DELETED
@@ -1,64 +0,0 @@
1
- @font-face {
2
- font-family: vazirmatn;
3
- src:
4
- url("../fonts/Vazirmatn-Regular.woff2") format("woff2"),
5
- url('../fonts/Vazirmatn-Regular.woff') format('woff');
6
- }
7
- @page {
8
- size: a4;
9
- margin: 0;
10
- padding: 0;
11
- break-inside: avoid;
12
- height: 100%;
13
- }
14
- @media print {
15
- header,
16
- footer {
17
- display: none;
18
- }
19
-
20
- button {
21
- display: none !important;
22
- }
23
-
24
- svg {
25
- max-width: 400px;
26
- scrollbar-width: 400px;
27
- overflow-block:scroll;
28
- margin: 0;
29
- padding: 0;
30
- break-inside: avoid;
31
- }
32
-
33
- body {
34
- margin: 0;
35
- padding: 0;
36
- break-inside: avoid;
37
- }
38
-
39
- html {
40
- margin: 0;
41
- padding: 0;
42
- break-inside: avoid;
43
- }
44
-
45
- }
46
-
47
- .text-box {
48
- font-size: 0.8mm;
49
- direction: rtl !important;
50
- user-select: none;
51
- }
52
-
53
- .persian {
54
- font-family: Roboto;
55
- font-size: 1.2mm;
56
- }
57
-
58
- .align {
59
- text-anchor: start;
60
- }
61
-
62
- .bold {
63
- font-weight: bold;
64
- }