hayun-vite 0.6.2 → 0.6.3
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
package/src/Form/Form.js
CHANGED
@@ -20,10 +20,12 @@ export default class Form {
|
|
20
20
|
this.form.style.display = 'none';
|
21
21
|
// رسم مارجین های فرم
|
22
22
|
this.drawMarginLines({ container: this.form, width, height });
|
23
|
-
|
23
|
+
|
24
24
|
const sections = new Sections({ container: this.form, dims: template });
|
25
25
|
this.sections = sections;
|
26
|
-
|
26
|
+
|
27
|
+
(template.label === 'تمپانومتری رسا') && console.log(template.patient);
|
28
|
+
|
27
29
|
if (sections.header) {
|
28
30
|
this.header = new Header({ container: sections.header })
|
29
31
|
this.header.draw({ dims: template.header });
|
package/src/Form/Tympanogram.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
import audDims from "../../Audiogram/dims.js"
|
2
1
|
import image from './rasa_tymp_reflex.jpg'
|
3
2
|
|
4
3
|
const rasaTymp = {
|
5
|
-
name: '
|
4
|
+
name: 'rasa_tymp_reflex',
|
6
5
|
label: 'تمپانومتری رسا',
|
7
6
|
backgroundImage: image, // Just Path of image
|
8
7
|
margin: { left: 0, top: 0, right: 0, bottom: 0 },
|
@@ -105,14 +104,16 @@ const rasaTymp = {
|
|
105
104
|
{ type: 'line', x1: 0, y1: 20, x2: width, y2: 20 },
|
106
105
|
{ type: 'text', x: width, y: 5, value: 'نام:' },
|
107
106
|
{ type: 'text', x: width - 30, y: 5, value: 'نام خانوادگی:' },
|
108
|
-
{ type: 'text', x: width -
|
109
|
-
{ type: 'text', x: width -
|
107
|
+
{ type: 'text', x: width - 80, y: 5, value: 'سن:' },
|
108
|
+
{ type: 'text', x: width - 120, y: 5, value: 'ارجاع از:' },
|
109
|
+
{ type: 'text', x: width - 170, y: 5, value: 'تاریخ:' }
|
110
110
|
]
|
111
111
|
this.patient.inputs = [
|
112
112
|
{ name: 'name', x: width - 5, y: 5 },
|
113
113
|
{ name: 'lastName', x: width - 47, y: 5 },
|
114
|
-
{ name: 'age', x: width -
|
115
|
-
{ name: 'referrer', x: width -
|
114
|
+
{ name: 'age', x: width - 87, y: 5 },
|
115
|
+
{ name: 'referrer', x: width - 132, y: 5 },
|
116
|
+
{ name: 'date', x: width - 180, y: 5 }
|
116
117
|
]
|
117
118
|
this.patient.forceInputs = [
|
118
119
|
{ name: 'name', x: width - 10, y: 4 },
|