hayun-vite 0.6.1 → 0.6.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hayun-vite",
3
3
  "private": false,
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -142,13 +142,24 @@ export default class Tympanogram {
142
142
  container: svg, value: "", style: style + 'fill: ' + color, name: 'G',
143
143
  x: getX(300), y: getY(compliance.min), dy: 10, dx: 4
144
144
  });
145
+
146
+ style = `
147
+ user-select: none;
148
+ direction: ltr !important;
149
+ /* text-align: center; */
150
+ font-family: Arial, Helvetica, sans-serif !important;
151
+ font-size: 1mm;
152
+ font-weight: bold;
153
+ text-anchor: start; /*تراز افقی*/
154
+ dominant-baseline: middle; /* تراز عمودی*/
155
+ `;
145
156
  putText({
146
157
  container: svg, value: "Type", style: style + 'fill: ' + color,
147
158
  x: getX(-500), y: getY(2.5),
148
159
  });
149
160
  putText({
150
- container: svg, value: "", style: style, name: 'Type',
151
- x: getX(-500), y: getY(2.5), dx: 8
161
+ container: svg, value: "", style: style + 'fill: ' + color, name: 'Type',
162
+ x: getX(-500), y: getY(2.5), dx: 9
152
163
  });
153
164
 
154
165
  // Compliance Axios digits
@@ -236,9 +247,10 @@ export default class Tympanogram {
236
247
  }
237
248
 
238
249
  update(data) {
250
+ console.log(data);
239
251
 
240
252
  // جایگذاری مقادیر تمپانومتری در تکست‌باکس ها
241
- this.chart.querySelector(`text[data-name="Type"]`).innerHTML = data?.type || "";
253
+ this.chart.querySelector(`text[data-name="Type"]`).innerHTML = data?.Type || "";
242
254
  this.chart.querySelector(`text[data-name="ECV"]`).innerHTML = data?.ECV || "";
243
255
  this.chart.querySelector(`text[data-name="MEP"]`).innerHTML = data?.MEP || "";
244
256
  this.chart.querySelector(`text[data-name="SC"]`).innerHTML = data?.SC || "";