@baravak/risloo-profile-cli 4.8.1 → 4.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baravak/risloo-profile-cli",
3
- "version": "4.8.1",
3
+ "version": "4.10.0",
4
4
  "description": "**Risloo Profile CLI** is a library for creating profiles, reports and sheets for *psychological* samples.",
5
5
  "main": "bin/risloo.js",
6
6
  "publishConfig": {
@@ -0,0 +1,416 @@
1
+ {
2
+ "id": "$X1HEQLUM6",
3
+ "scale": {
4
+ "id": "$PIOS-93",
5
+ "title": "پرسشنامه وسواس مذهبی اخلاقی پن"
6
+ },
7
+ "chain": null,
8
+ "version": "1",
9
+ "edition": "",
10
+ "edition_version": null,
11
+ "client": {
12
+ "id": "GH96XXXX",
13
+ "name": "مراجع"
14
+ },
15
+ "room": {
16
+ "id": "RS96XXXX",
17
+ "manager": {
18
+ "id": "GH96XXXXX",
19
+ "name": "درمانگر"
20
+ },
21
+ "center": {
22
+ "id": "RS96XXXX",
23
+ "acceptation": null,
24
+ "status": "active",
25
+ "type": "counseling_center",
26
+ "detail": {
27
+ "title": "مرکز درمانی"
28
+ }
29
+ },
30
+ "acceptation": null,
31
+ "status": "active",
32
+ "type": "room"
33
+ },
34
+ "case": null,
35
+ "code": null,
36
+ "created_at": 1719988509,
37
+ "started_at": 1719988515,
38
+ "scored_at": 1719989085,
39
+ "closed_at": 1719988515,
40
+ "total_amount": null,
41
+ "prepayment": false,
42
+ "purchased": true,
43
+ "amount": null,
44
+ "billing": null,
45
+ "description": "## دستور اجرای آزمون\n\nعبارات زیر درباره حالاتی است که برخی اوقات به افراد دست می‌دهد. لطفاً مشخص کنید که هر چند وقت یک‌بار این حالات را تجربه می‌کنید.",
46
+ "psychologist_description": null,
47
+ "items": [
48
+ {
49
+ "type": "text",
50
+ "text": "من نگرانم که افکار نادرست به ذهنم خطور کند.",
51
+ "answer": {
52
+ "type": "optional",
53
+ "options": [
54
+ "هرگز",
55
+ "تقریباً هیچ‌گاه",
56
+ "گاهی اوقات",
57
+ "اغلب اوقات",
58
+ "همیشه"
59
+ ]
60
+ },
61
+ "user_answered": "1"
62
+ },
63
+ {
64
+ "type": "text",
65
+ "text": "من می ترسم که فرد خبیثی باشم.",
66
+ "answer": {
67
+ "type": "optional",
68
+ "options": [
69
+ "هرگز",
70
+ "تقریباً هیچ‌گاه",
71
+ "گاهی اوقات",
72
+ "اغلب اوقات",
73
+ "همیشه"
74
+ ]
75
+ },
76
+ "user_answered": "1"
77
+ },
78
+ {
79
+ "type": "text",
80
+ "text": "من می ترسم که رفتاری غیر اخلاقی از من سربزند.",
81
+ "answer": {
82
+ "type": "optional",
83
+ "options": [
84
+ "هرگز",
85
+ "تقریباً هیچ‌گاه",
86
+ "گاهی اوقات",
87
+ "اغلب اوقات",
88
+ "همیشه"
89
+ ]
90
+ },
91
+ "user_answered": "4"
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "من شدیدا نیاز دارم که بارها و بارها به خاطر گناهانم استغفار بطلبم.",
96
+ "answer": {
97
+ "type": "optional",
98
+ "options": [
99
+ "هرگز",
100
+ "تقریباً هیچ‌گاه",
101
+ "گاهی اوقات",
102
+ "اغلب اوقات",
103
+ "همیشه"
104
+ ]
105
+ },
106
+ "user_answered": "4"
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "من درباره بهشت یا جهنم رفتن نگرانم.",
111
+ "answer": {
112
+ "type": "optional",
113
+ "options": [
114
+ "هرگز",
115
+ "تقریباً هیچ‌گاه",
116
+ "گاهی اوقات",
117
+ "اغلب اوقات",
118
+ "همیشه"
119
+ ]
120
+ },
121
+ "user_answered": "4"
122
+ },
123
+ {
124
+ "type": "text",
125
+ "text": "من نگرانم که اگر در همه مواقع مطابق اصول اخلاقی رفتار نکنم، تنبیه شوم.",
126
+ "answer": {
127
+ "type": "optional",
128
+ "options": [
129
+ "هرگز",
130
+ "تقریباً هیچ‌گاه",
131
+ "گاهی اوقات",
132
+ "اغلب اوقات",
133
+ "همیشه"
134
+ ]
135
+ },
136
+ "user_answered": "2"
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "احساس گناه مانع می شود که من از چیزهایی که دوست دارم لذت ببرم.",
141
+ "answer": {
142
+ "type": "optional",
143
+ "options": [
144
+ "هرگز",
145
+ "تقریباً هیچ‌گاه",
146
+ "گاهی اوقات",
147
+ "اغلب اوقات",
148
+ "همیشه"
149
+ ]
150
+ },
151
+ "user_answered": "3"
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "افکار غیراخلاقی به ذهنم خطور می کنند و من نمی توانم از آنها خلاص شوم.",
156
+ "answer": {
157
+ "type": "optional",
158
+ "options": [
159
+ "هرگز",
160
+ "تقریباً هیچ‌گاه",
161
+ "گاهی اوقات",
162
+ "اغلب اوقات",
163
+ "همیشه"
164
+ ]
165
+ },
166
+ "user_answered": "1"
167
+ },
168
+ {
169
+ "type": "text",
170
+ "text": "من می‌ترسم که رفتارم مورد پذیرش خداوند قرار نگیرد.",
171
+ "answer": {
172
+ "type": "optional",
173
+ "options": [
174
+ "هرگز",
175
+ "تقریباً هیچ‌گاه",
176
+ "گاهی اوقات",
177
+ "اغلب اوقات",
178
+ "همیشه"
179
+ ]
180
+ },
181
+ "user_answered": "4"
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "من می‌ترسم که بدون آنکه متوجه بوده باشم رفتار ناشایستی از من سر زده باشد.",
186
+ "answer": {
187
+ "type": "optional",
188
+ "options": [
189
+ "هرگز",
190
+ "تقریباً هیچ‌گاه",
191
+ "گاهی اوقات",
192
+ "اغلب اوقات",
193
+ "همیشه"
194
+ ]
195
+ },
196
+ "user_answered": "4"
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "من باید به سختی تلاش کنم تا از برخی افکار غیراخلاقی دوری گزینم.",
201
+ "answer": {
202
+ "type": "optional",
203
+ "options": [
204
+ "هرگز",
205
+ "تقریباً هیچ‌گاه",
206
+ "گاهی اوقات",
207
+ "اغلب اوقات",
208
+ "همیشه"
209
+ ]
210
+ },
211
+ "user_answered": "4"
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "من بسیار نگرانم که کارهایی که انجام داده‌ام نادرست بوده باشند.",
216
+ "answer": {
217
+ "type": "optional",
218
+ "options": [
219
+ "هرگز",
220
+ "تقریباً هیچ‌گاه",
221
+ "گاهی اوقات",
222
+ "اغلب اوقات",
223
+ "همیشه"
224
+ ]
225
+ },
226
+ "user_answered": "1"
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "من می ترسم که از دستورات خداوند سرپیچی کنم.",
231
+ "answer": {
232
+ "type": "optional",
233
+ "options": [
234
+ "هرگز",
235
+ "تقریباً هیچ‌گاه",
236
+ "گاهی اوقات",
237
+ "اغلب اوقات",
238
+ "همیشه"
239
+ ]
240
+ },
241
+ "user_answered": "3"
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "من از داشتن افکار جنسی هراس دارم.",
246
+ "answer": {
247
+ "type": "optional",
248
+ "options": [
249
+ "هرگز",
250
+ "تقریباً هیچ‌گاه",
251
+ "گاهی اوقات",
252
+ "اغلب اوقات",
253
+ "همیشه"
254
+ ]
255
+ },
256
+ "user_answered": "2"
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "من می‌ترسم که هیچگاه رابطه خوبی با خداوند نداشته باشم.",
261
+ "answer": {
262
+ "type": "optional",
263
+ "options": [
264
+ "هرگز",
265
+ "تقریباً هیچ‌گاه",
266
+ "گاهی اوقات",
267
+ "اغلب اوقات",
268
+ "همیشه"
269
+ ]
270
+ },
271
+ "user_answered": "1"
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "من به خاطر افکار غیراخلاقی که داشته‌ام احساس گناه می‌کنم.",
276
+ "answer": {
277
+ "type": "optional",
278
+ "options": [
279
+ "هرگز",
280
+ "تقریباً هیچ‌گاه",
281
+ "گاهی اوقات",
282
+ "اغلب اوقات",
283
+ "همیشه"
284
+ ]
285
+ },
286
+ "user_answered": "2"
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "من نگرانم که خداوند از دست من ناراحت باشد.",
291
+ "answer": {
292
+ "type": "optional",
293
+ "options": [
294
+ "هرگز",
295
+ "تقریباً هیچ‌گاه",
296
+ "گاهی اوقات",
297
+ "اغلب اوقات",
298
+ "همیشه"
299
+ ]
300
+ },
301
+ "user_answered": "3"
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "من از داشتن افکار غیراخلاقی هراس دارم.",
306
+ "answer": {
307
+ "type": "optional",
308
+ "options": [
309
+ "هرگز",
310
+ "تقریباً هیچ‌گاه",
311
+ "گاهی اوقات",
312
+ "اغلب اوقات",
313
+ "همیشه"
314
+ ]
315
+ },
316
+ "user_answered": "4"
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "من می‌ترسم که افکارم مورد پذیرش خداوند قرار نگیرند.",
321
+ "answer": {
322
+ "type": "optional",
323
+ "options": [
324
+ "هرگز",
325
+ "تقریباً هیچ‌گاه",
326
+ "گاهی اوقات",
327
+ "اغلب اوقات",
328
+ "همیشه"
329
+ ]
330
+ },
331
+ "user_answered": "3"
332
+ }
333
+ ],
334
+ "prerequisites": [
335
+ {
336
+ "type": "text",
337
+ "label": "gender",
338
+ "text": "جنسیت",
339
+ "answer": {
340
+ "type": "select",
341
+ "options": [
342
+ "زن",
343
+ "مرد"
344
+ ]
345
+ },
346
+ "alias": "gender",
347
+ "force": true,
348
+ "user_answered": "2"
349
+ },
350
+ {
351
+ "type": "text",
352
+ "label": "age",
353
+ "text": "سن",
354
+ "answer": {
355
+ "type": "number"
356
+ },
357
+ "alias": "age",
358
+ "force": true,
359
+ "user_answered": "8"
360
+ },
361
+ {
362
+ "type": "text",
363
+ "label": "education",
364
+ "text": "تحصیلات",
365
+ "answer": {
366
+ "type": "select",
367
+ "options": [
368
+ "ابتدایی اول",
369
+ "ابتدایی دوم",
370
+ "متوسطه اول",
371
+ "متوسطه دوم",
372
+ "دیپلم",
373
+ "کارشناسی",
374
+ "کارشناسی ارشد",
375
+ "پزشکی عمومی",
376
+ "متخصص",
377
+ "دکتری تخصصی",
378
+ "حوزوی مقدمات",
379
+ "حوزوی سطح۱",
380
+ "حوزوی سطح۲",
381
+ "حوزوی سطح۳",
382
+ "حوزوی سطح۴"
383
+ ]
384
+ },
385
+ "alias": "education",
386
+ "force": true,
387
+ "user_answered": "10"
388
+ },
389
+ {
390
+ "type": "text",
391
+ "label": "marital_status",
392
+ "text": "وضعیت تأهل",
393
+ "answer": {
394
+ "type": "select",
395
+ "options": [
396
+ "مجرد",
397
+ "متأهل"
398
+ ]
399
+ },
400
+ "alias": "marital_status",
401
+ "force": true,
402
+ "user_answered": "2"
403
+ }
404
+ ],
405
+ "cornometer": 0,
406
+ "score": {
407
+ "total": 32,
408
+ "total_percentage": 0.421,
409
+ "fear_of_sin": 16,
410
+ "fear_of_sin_percentage": 0.364,
411
+ "fear_of_god": 16,
412
+ "fear_of_god_percentage": 0.5
413
+ },
414
+ "score_current_version": "1.0.0",
415
+ "score_last_version": "1.0.0"
416
+ }
@@ -0,0 +1,659 @@
1
+ {
2
+ "id": "$X1HENN3U3",
3
+ "scale": { "id": "$PSI-93", "title": "پرسشنامه سبک‌های فرزندپروری والدین" },
4
+ "chain": null,
5
+ "version": "1",
6
+ "edition": "",
7
+ "edition_version": null,
8
+ "client": { "id": "GH9XXXX", "name": "مراجع", "user_id": "IR96XXXX" },
9
+ "room": {
10
+ "id": "RS96XXXXX",
11
+ "manager": { "id": "GH9XXXX", "name": "درمانگر", "user_id": "IR9XXXX" },
12
+ "center": {
13
+ "id": "RS966XXXX",
14
+ "acceptation": null,
15
+ "status": "active",
16
+ "type": "counseling_center",
17
+ "detail": { "title": "مرکز درمانی" }
18
+ },
19
+ "acceptation": null,
20
+ "status": "active",
21
+ "type": "room"
22
+ },
23
+ "case": null,
24
+ "code": null,
25
+ "created_at": 1728371979,
26
+ "started_at": 1728373582,
27
+ "scored_at": 1728374110,
28
+ "closed_at": 1728373582,
29
+ "total_amount": null,
30
+ "prepayment": false,
31
+ "purchased": true,
32
+ "amount": null,
33
+ "billing": null,
34
+ "description": "## دستور اجرای آزمون\n\nوالدین عزیز!\n\nلطفاً وقتی به سوال‌هایی که ارائه می‌شوند پاسخ می‌دهید، به فرزندی فکر کنید که در مهدکودک در حال فراگیری است. از شما می‌خواهیم که موقع پاسخ دادن به سؤال‌ها، جوابی را انتخاب کنید که به بهترین وجه احساس شما را توصیف می‌کند. اگر پاسخی کاملاً با احساس شما منطبق نبود پاسخی را انتخاب کنید که بیشتر با آن موافق هستید.\n\nنخستین عکس‌العمل شما در برابرهر پرسش، بیانگر بهترین پاسخ شما است.\n\n\n\nبه هنگام پاسخ دادن، به درجه‌بندی زیر توجه کنید:\n\nمخالفم: یعنی شما با ویژگی یا رفتار مذکور موافق نیستنید.\n\nخیلی کم: یعنی شما صفر تا ۲۰ درصد موارد با ویژگی یا رفتار مذکور موافق هستید.\n\nکم: یعنی شما ۲۱ تا ۴۰ درصد موارد با ویژگی یا رفتار مذکور موافق هستید.\n\nمتوسط: یعنی شما ۴۱ تا ۶۰ درصد موارد با ویژگی یا رفتار مذکور موافق هستید.\n\nزیاد: یعنی شما ۶۱ تا ۸۰ درصد موارد با ویژگی یا رفتار مذکور موافق هستید.\n\nخیلی زیاد: یعنی شما در ۸۱ تا ۱۰۰ درصد موارد با ویژگی یا رفتار مذکور موافق هستید.",
35
+ "psychologist_description": null,
36
+ "items": [
37
+ {
38
+ "type": "text",
39
+ "text": "به عقیده من بلافاصله بعد از رفتار منفی باید کودک را تنبیه بدنی کرد.",
40
+ "answer": {
41
+ "type": "optional",
42
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
43
+ },
44
+ "user_answered": "5"
45
+ },
46
+ {
47
+ "type": "text",
48
+ "text": "باید پیامد عمل را به کودک تذکر داد.",
49
+ "answer": {
50
+ "type": "optional",
51
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
52
+ },
53
+ "user_answered": "1"
54
+ },
55
+ {
56
+ "type": "text",
57
+ "text": "انتظارات باید کاملاً روشن با کودک در میان گذاشته شود.",
58
+ "answer": {
59
+ "type": "optional",
60
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
61
+ },
62
+ "user_answered": "5"
63
+ },
64
+ {
65
+ "type": "text",
66
+ "text": "لزومی ندارد رفتار غیرقابل به کودک معرفی شود، او خودش باید بداند.",
67
+ "answer": {
68
+ "type": "optional",
69
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
70
+ },
71
+ "user_answered": "2"
72
+ },
73
+ {
74
+ "type": "text",
75
+ "text": "کودکان نمی‌توانند در تمامی اوقات از دستورات تبعیت کنند.",
76
+ "answer": {
77
+ "type": "optional",
78
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
79
+ },
80
+ "user_answered": "6"
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "باید از سرپیچی کودک از قواعد چشم‌پوشی کرد.",
85
+ "answer": {
86
+ "type": "optional",
87
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
88
+ },
89
+ "user_answered": "6"
90
+ },
91
+ {
92
+ "type": "text",
93
+ "text": "معمولاً از کودکم را تشویق می‌کنم تا احساسش را بگوید.",
94
+ "answer": {
95
+ "type": "optional",
96
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
97
+ },
98
+ "user_answered": "6"
99
+ },
100
+ {
101
+ "type": "text",
102
+ "text": "اگر از کودک زیاد تعریف کنیم، دست‌پاچه می‌شود.",
103
+ "answer": {
104
+ "type": "optional",
105
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
106
+ },
107
+ "user_answered": "1"
108
+ },
109
+ {
110
+ "type": "text",
111
+ "text": "نباید با کودک خیلی رابطه گرم و محبت‌آمیزی داشت.",
112
+ "answer": {
113
+ "type": "optional",
114
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
115
+ },
116
+ "user_answered": "6"
117
+ },
118
+ {
119
+ "type": "text",
120
+ "text": "به اندازه کافی رفتارهای مثبت کودکم را تشویق می‌کنم.",
121
+ "answer": {
122
+ "type": "optional",
123
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
124
+ },
125
+ "user_answered": "3"
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "نیازی به مشارکت کودکان در انجام فعالیت‌ها نیست.",
130
+ "answer": {
131
+ "type": "optional",
132
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
133
+ },
134
+ "user_answered": "2"
135
+ },
136
+ {
137
+ "type": "text",
138
+ "text": "من و همسرم در تربیت کودک کاملاً با هم هماهنگ هستیم.",
139
+ "answer": {
140
+ "type": "optional",
141
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
142
+ },
143
+ "user_answered": "4"
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "وقتی فرزندم رفتار مستقلی از خود نشان می‌دهد، او را تشویق می‌کنم.",
148
+ "answer": {
149
+ "type": "optional",
150
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
151
+ },
152
+ "user_answered": "2"
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "اعتقاد ندارم که باید در کارهای مدرسه به کودک کمک شود.",
157
+ "answer": {
158
+ "type": "optional",
159
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
160
+ },
161
+ "user_answered": "3"
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "قبل از گرفتن ایراد از کودک به او رفتار درست را آموزش می‌دهم.",
166
+ "answer": {
167
+ "type": "optional",
168
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
169
+ },
170
+ "user_answered": "1"
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "اغلب احساس می‌کنم نمی‌دانم فرزندم از من چه می‌خواهد و چه نیازی دارد.",
175
+ "answer": {
176
+ "type": "optional",
177
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
178
+ },
179
+ "user_answered": "1"
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "به کودکم یاد داده‌ام که به چیزی دست نزند.",
184
+ "answer": {
185
+ "type": "optional",
186
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
187
+ },
188
+ "user_answered": "1"
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "بچه‌ها باید طوری تربیت شوند که از والدینشان بترسند و حساب ببرند.",
193
+ "answer": {
194
+ "type": "optional",
195
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
196
+ },
197
+ "user_answered": "6"
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "رفتارهای فرزندم موجب عصبانی کردن من می‌شود.",
202
+ "answer": {
203
+ "type": "optional",
204
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
205
+ },
206
+ "user_answered": "2"
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "بچه‌ها باید تشویق شوند که هرگاه قوانین و مقررات خانواده به نظرشان غیر منطقی آمد نظر خود را به والدینشان بگویند.",
211
+ "answer": {
212
+ "type": "optional",
213
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
214
+ },
215
+ "user_answered": "4"
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "والدین باید سعی کنند خود را بچه‌ها سازگار کنند.",
220
+ "answer": {
221
+ "type": "optional",
222
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
223
+ },
224
+ "user_answered": "2"
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "من از کودکم انتظار ندارم که رفتار بالغانه‌ای حتی در سن خودش داشته باشد.",
229
+ "answer": {
230
+ "type": "optional",
231
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
232
+ },
233
+ "user_answered": "2"
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "بچه‌ها خیلی کم و به ندرت مطلب با ارزشی بیان می‌کنند و عقائدشان معمولاً بی‌اهمیت است.",
238
+ "answer": {
239
+ "type": "optional",
240
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
241
+ },
242
+ "user_answered": "3"
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "اگر بچه‌ها را وادار کنیم که قوانین را رعایت کنند در آینده بزرگسالان خوبی می‌شوند.",
247
+ "answer": {
248
+ "type": "optional",
249
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
250
+ },
251
+ "user_answered": "6"
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "وقتی با فرزندانتان در انجام کارها همکاری می‌کنید، آن‌ّها نسبت به شما احساس نزدیکی بیشتری کرده و حتی می‌توانند به راحتی با شما حرف بزنند.",
256
+ "answer": {
257
+ "type": "optional",
258
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
259
+ },
260
+ "user_answered": "5"
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "گاهی لازم است که والدین خواسته فرزندانشان را برآورده نسازند.",
265
+ "answer": {
266
+ "type": "optional",
267
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
268
+ },
269
+ "user_answered": "5"
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "بچه باید به خاطر کوششی که کرده تشویق شود، حتی اگر موفق نشود.",
274
+ "answer": {
275
+ "type": "optional",
276
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
277
+ },
278
+ "user_answered": "6"
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "فرزندم نمی‌تواند به تنهایی کارهای خودش را انجام دهد.",
283
+ "answer": {
284
+ "type": "optional",
285
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
286
+ },
287
+ "user_answered": "3"
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "وقتی کسی مقررات را رعایت نمی‌کند می‌تواند از تنبیه بدنی نیز استفاده کرد.",
292
+ "answer": {
293
+ "type": "optional",
294
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
295
+ },
296
+ "user_answered": "1"
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "بچه‌های این زمان پرخاشگر و زورگو شده‌اند.",
301
+ "answer": {
302
+ "type": "optional",
303
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
304
+ },
305
+ "user_answered": "5"
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "اغلب تسلیم خواسته‌های بچه‌هایم می‌شوم.",
310
+ "answer": {
311
+ "type": "optional",
312
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
313
+ },
314
+ "user_answered": "1"
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "در صورتی که بخواهیم ملاحظه بچه‌ها را بکنیم، تسلط ما در زندگی کم می‌شود.",
319
+ "answer": {
320
+ "type": "optional",
321
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
322
+ },
323
+ "user_answered": "3"
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "اگر بچه‌ام در مورد ارضاء خواسته‌اش ناکام شود، من از خودم ناامید خواهم شد.",
328
+ "answer": {
329
+ "type": "optional",
330
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
331
+ },
332
+ "user_answered": "4"
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "اعتماد به نفس فرزندم پایین است.",
337
+ "answer": {
338
+ "type": "optional",
339
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
340
+ },
341
+ "user_answered": "3"
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "والدینی که به بچه‌هایشان فرصت اظهار نظر می‌دهند، با نقش خود آشنا نیستند.",
346
+ "answer": {
347
+ "type": "optional",
348
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
349
+ },
350
+ "user_answered": "1"
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "اغلب احساس می‌کنم رفتار فرزندم برایم غیر قابل پیش‌بینی است.",
355
+ "answer": {
356
+ "type": "optional",
357
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
358
+ },
359
+ "user_answered": "3"
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "اغلب احساس می‌کنم از نظری رفتاری، فرزندم شبیه من نیست.",
364
+ "answer": {
365
+ "type": "optional",
366
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
367
+ },
368
+ "user_answered": "3"
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "اغلب احساس می‌کنم فرزندم دوست دارد والدین دیگری داشته باشد.",
373
+ "answer": {
374
+ "type": "optional",
375
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
376
+ },
377
+ "user_answered": "2"
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "اغلب احساس می‌کنم در ارتباط با همسرم با مشکل مواجه هستم و به مشاوره نیاز دارم.",
382
+ "answer": {
383
+ "type": "optional",
384
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
385
+ },
386
+ "user_answered": "1"
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "محیط خانه خودمان کاملاً برای کودکم ایمن است و چیزهای خطرناک از دسترس خارج شده است.",
391
+ "answer": {
392
+ "type": "optional",
393
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
394
+ },
395
+ "user_answered": "3"
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "وقتی کودکم به چیزهای خطرناک دست می‌زند، نمی‌توانم خودم را کنترل کنم و معمولا پشیمان می‌شوم.",
400
+ "answer": {
401
+ "type": "optional",
402
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
403
+ },
404
+ "user_answered": "5"
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "وقتی فرزندم دچار احساس خاصی (مثل عصبانیت، اضطراب و) است به راحتی می‌توانم او را آرام کنم.",
409
+ "answer": {
410
+ "type": "optional",
411
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
412
+ },
413
+ "user_answered": "6"
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "به جای تذکر مستقیم به کودک، از پرت کردن حواس او زیاد استفاده می‌کنم.",
418
+ "answer": {
419
+ "type": "optional",
420
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
421
+ },
422
+ "user_answered": "4"
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "اغلب فرزندم شاهد این است که احساساتم (مثل عصبانیت، خشم، غمگینی) را نمی‌توانم مهار کنم.",
427
+ "answer": {
428
+ "type": "optional",
429
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
430
+ },
431
+ "user_answered": "2"
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "با کودک نمی‌توان زیاد صحبت کرد و باید بیشتر از کنترل مستقیم استفاده کرد.",
436
+ "answer": {
437
+ "type": "optional",
438
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
439
+ },
440
+ "user_answered": "5"
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "کودکم زیاد سوال می‌کند که مامان منو دوست داری؟",
445
+ "answer": {
446
+ "type": "optional",
447
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
448
+ },
449
+ "user_answered": "5"
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "رفتارهای فرزندم برایم غیر قابل قبول است.",
454
+ "answer": {
455
+ "type": "optional",
456
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
457
+ },
458
+ "user_answered": "2"
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "وقت زیادی صرف می‌کنم تا فرزندم با محدودیت‌های که برایش قایل شده‌ام، کنار بیاید.",
463
+ "answer": {
464
+ "type": "optional",
465
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
466
+ },
467
+ "user_answered": "5"
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "اعتماد به نفسم را از دست داده‌ام.",
472
+ "answer": {
473
+ "type": "optional",
474
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
475
+ },
476
+ "user_answered": "2"
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "به قدر کافی درباره خوبی و بدی رفتارها بافرزندم صحبت می‌کنم.",
481
+ "answer": {
482
+ "type": "optional",
483
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
484
+ },
485
+ "user_answered": "1"
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "شرایطی را فراهم می‌کنم تا کودکم پذیرش مسئولیت در قبال دیگران را درک کند.",
490
+ "answer": {
491
+ "type": "optional",
492
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
493
+ },
494
+ "user_answered": "5"
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "اغلب احساس می‌کنم هیچ کس را دوست ندارم و حتی از خود بیزارم.",
499
+ "answer": {
500
+ "type": "optional",
501
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
502
+ },
503
+ "user_answered": "2"
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "از قهرهای طولانی معمولاً نتیجه می‌گیرم.",
508
+ "answer": {
509
+ "type": "optional",
510
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
511
+ },
512
+ "user_answered": "4"
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "عقیده دارم زور بیشتر از تشویق نتیجه می‌دهد.",
517
+ "answer": {
518
+ "type": "optional",
519
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
520
+ },
521
+ "user_answered": "2"
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "هیچ‌کس مرا درک نمی‌کند.",
526
+ "answer": {
527
+ "type": "optional",
528
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
529
+ },
530
+ "user_answered": "1"
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "به راحتی از کوره به در می‌روم و اغلب احساس اضطراب و نگرانی می‌کنم.",
535
+ "answer": {
536
+ "type": "optional",
537
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
538
+ },
539
+ "user_answered": "5"
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "تمایل چندانی به آغوش گرفتن فرزندم ندارم چون معتقدم پررو می‌شود.",
544
+ "answer": {
545
+ "type": "optional",
546
+ "options": ["مخالفم", "خیلی کم", "کم", "متوسط", "زیاد", "خیلی زیاد"]
547
+ },
548
+ "user_answered": "1"
549
+ }
550
+ ],
551
+ "prerequisites": [
552
+ {
553
+ "type": "text",
554
+ "label": "gender",
555
+ "text": "جنسیت کودک",
556
+ "answer": { "type": "select", "options": ["زن", "مرد"] },
557
+ "alias": "gender",
558
+ "force": true,
559
+ "user_answered": "1"
560
+ },
561
+ {
562
+ "type": "text",
563
+ "label": "age",
564
+ "text": "سن کودک",
565
+ "answer": { "type": "number" },
566
+ "alias": "age",
567
+ "force": true,
568
+ "user_answered": "29"
569
+ },
570
+ {
571
+ "type": "text",
572
+ "label": "education",
573
+ "text": "تحصیلات کودک",
574
+ "answer": {
575
+ "type": "select",
576
+ "options": [
577
+ "قبل از ابتدایی",
578
+ "ابتدایی اول",
579
+ "ابتدایی دوم",
580
+ "متوسطه اول",
581
+ "متوسطه دوم",
582
+ "دیپلم"
583
+ ]
584
+ },
585
+ "alias": "education",
586
+ "force": true,
587
+ "user_answered": "1"
588
+ },
589
+ {
590
+ "type": "text",
591
+ "label": "filler_name",
592
+ "text": "نام و نام خانوادگی تکمیل‌کننده آزمون",
593
+ "answer": { "type": "text" },
594
+ "alias": "filler_name",
595
+ "force": true,
596
+ "user_answered": "jXohA"
597
+ },
598
+ {
599
+ "type": "text",
600
+ "label": "filler_age",
601
+ "text": "سن تکمیل‌کننده آزمون",
602
+ "answer": { "type": "number" },
603
+ "alias": "filler_age",
604
+ "force": true,
605
+ "user_answered": "19"
606
+ },
607
+ {
608
+ "type": "text",
609
+ "label": "filler_education",
610
+ "text": "تحصیلات تکمیل‌کننده آزمون",
611
+ "answer": {
612
+ "type": "select",
613
+ "options": [
614
+ "ابتدایی اول",
615
+ "ابتدایی دوم",
616
+ "متوسطه اول",
617
+ "متوسطه دوم",
618
+ "دیپلم",
619
+ "کارشناسی",
620
+ "کارشناسی ارشد",
621
+ "پزشکی عمومی",
622
+ "متخصص",
623
+ "دکتری تخصصی",
624
+ "حوزوی مقدمات",
625
+ "حوزوی سطح۱",
626
+ "حوزوی سطح۲",
627
+ "حوزوی سطح۳",
628
+ "حوزوی سطح۴"
629
+ ]
630
+ },
631
+ "alias": "filler_education",
632
+ "force": true,
633
+ "user_answered": "5"
634
+ },
635
+ {
636
+ "type": "text",
637
+ "label": "filler_relationship",
638
+ "text": "نسبت پرکننده آزمون با کودک",
639
+ "answer": {
640
+ "type": "select",
641
+ "options": ["پدر", "مادر", "پدربزرگ", "مادربزرگ", "دیگران"]
642
+ },
643
+ "alias": "filler_education",
644
+ "force": true,
645
+ "user_answered": "5"
646
+ }
647
+ ],
648
+ "cornometer": 0,
649
+ "score": {
650
+ "authoritative_total": 41,
651
+ "authoritative_percentage": 0.547,
652
+ "authoritarian_total": 34,
653
+ "authoritarian_percentage": 0.567,
654
+ "permissive_total": 20,
655
+ "permissive_percentage": 0.4
656
+ },
657
+ "score_current_version": "1.0.0",
658
+ "score_last_version": "1.0.0"
659
+ }
@@ -0,0 +1,95 @@
1
+ const { Profile, FS } = require("../Profile");
2
+
3
+
4
+ class PIOS93 extends Profile {
5
+ // Number of pages
6
+ static pages = 1;
7
+
8
+ // Labels of the sample
9
+ labels = {
10
+ L0: { eng: "total", fr: "نمره کل", max:76, color:"#475569", bg:"#F1F5F9"},
11
+ L1: { eng: "total_percentage"},
12
+
13
+ L2: { eng: "fear_of_sin", fr: "ترس از گناه", max:44, color:"#BE185D", bg:"#FDF2F8"},
14
+ L3: { eng: "fear_of_sin_percentage"},
15
+
16
+ L4: { eng: "fear_of_god", fr: "ترس از خدا", max:32, color:"#4338CA", bg:"#EEF2FF"},
17
+ L5: { eng: "fear_of_god_percentage"},
18
+
19
+ };
20
+
21
+ profileSpec = {
22
+ /* "sample" determines some important info about the sample and profile */
23
+ /* Default prerequisites: 1. gender, 2. age, 3. education */
24
+ /* "prerequisites" is synonym to "fields" in our program */
25
+ sample: {
26
+ name: "پرسشنامه وسواس مذهبی اخلاقی پن" /* Name of the sample */,
27
+ multiProfile: false /* Whether the sample has multiple profiles or not */,
28
+ questions: true /* Determines whether to get questions from inital dataset or not */,
29
+ defaultFields: true /* Determines whether to have default prerequisites in the profile or not */,
30
+ fields: [] /* In case you want to get some additional fields and show in the profile */,
31
+ },
32
+ /* "profile" determines the dimensions of the drawn profile (to be used in svg tag viewbox) */
33
+ /* calculating its dimensions carefully is of great importance */
34
+ profile: {
35
+ get dimensions() {
36
+ return {
37
+ width: 401 + 2 * this.padding.x,
38
+ height: 501 + 2 * this.padding.y,
39
+ };
40
+ },
41
+ padding: {
42
+ x: 251,
43
+ y: 106.5,
44
+ },
45
+ },
46
+ /* "labels" part which has to be provided for each profile */
47
+ labels: Object.values(this.labels),
48
+ };
49
+ circle (data){
50
+ data.mark = data.mark?? 0;
51
+ data.percentage = data.percentage?? 0;
52
+ const circleData = {
53
+ R: 80 ,
54
+ r: 80 * .7,
55
+ angles: {
56
+ start: FS.toRadians(-90),
57
+ end: FS.toRadians(180),
58
+ },
59
+ direction: false,
60
+ get totalAngle() {
61
+ return this.direction
62
+ ? 2 * Math.PI - (this.angles.end - this.angles.start)
63
+ : this.angles.end - this.angles.start;
64
+ },
65
+ }
66
+ return {
67
+ circle: circleData,
68
+ mark: data.mark,
69
+ label: data.label.fr,
70
+ bg: data.label.bg,
71
+ color: data.label.color,
72
+ max: data.label.max,
73
+ percentage: Math.round(data.percentage * 100),
74
+ zeta: (data.mark / data.label.max) * circleData.totalAngle + circleData.angles.start,
75
+ };
76
+ }
77
+ constructor(dataset, options, config = {}) {
78
+ super();
79
+ this._init(dataset, options, config);
80
+ }
81
+ _calcContext() {
82
+ const {
83
+ dataset,
84
+ } = this;
85
+ return [{
86
+ total: this.circle({...dataset.score[0], percentage: dataset.score[1].mark}),
87
+ sin: this.circle({...dataset.score[2], percentage: dataset.score[3].mark}),
88
+ god: this.circle({...dataset.score[4], percentage: dataset.score[5].mark}),
89
+ }];
90
+ }
91
+ }
92
+
93
+
94
+
95
+ module.exports = PIOS93;
@@ -52,16 +52,16 @@
52
52
  <rect x="36.5" y=".5" width="47" height="79" stroke="{{item.style.border}}" fill="{{item.style.bg}}" rx="4" />
53
53
  <line x1="3" x2="33" y1="40" y2="40" stroke="{{item.style.border}}" />
54
54
  <text x="18" y="22" text-anchor="middle" dy=".3em" font-size="13" font-weight="500" fill="{{item.style.color}}" class="eng-font">{{item.label}}</text>
55
- <text x="18" y="58" text-anchor="middle" dy=".3em" font-size="13" font-weight="600" fill="{{item.style.color}}" class="eng-font">{{item.br}}</text>
55
+ <text x="18" y="58" text-anchor="middle" dy=".3em" font-size="13" font-weight="600" fill="{{item.style.color}}">{{item.br}}</text>
56
56
  <text text-anchor="middle" dy=".3em" font-size="13" font-weight="500" fill="{{item.style.color}}" transform="rotate(-90) translate(-40, 60)">{{item.fa}}</text>
57
57
  </g>
58
58
  {{#each item.subs as | sub isub |}}
59
59
  <g transform="translate(0, {{math 28 '*' isub}})">
60
- <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}" class="eng-font">{{sub.fa}}</text>
61
- <text x="13" y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}" class="eng-font">-</text>
60
+ <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}">{{sub.fa}}</text>
61
+ <text x="13" y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}">-</text>
62
62
  <text x="37" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}" class="eng-font">{{sub.label}}</text>
63
63
  <rect x="370" width="36" height="16" rx="2" fill="{{sub.style.bg}}" />
64
- <text x="388" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{sub.style.color}}" class="eng-font">{{sub.raw}}</text>
64
+ <text x="388" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{sub.style.color}}">{{sub.raw}}</text>
65
65
  {{bar 300 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=sub.style.bg transform="translate(57, 0)"}}
66
66
  </g>
67
67
 
@@ -52,16 +52,16 @@
52
52
  <rect x="36.5" y=".5" width="47" height="79" stroke="{{item.style.border}}" fill="{{item.style.bg}}" rx="4" />
53
53
  <line x1="3" x2="33" y1="40" y2="40" stroke="{{item.style.border}}" />
54
54
  <text x="18" y="22" text-anchor="middle" dy=".3em" font-size="13" font-weight="500" fill="{{item.style.color}}" class="eng-font">{{item.label}}</text>
55
- <text x="18" y="58" text-anchor="middle" dy=".3em" font-size="13" font-weight="600" fill="{{item.style.color}}" class="eng-font">{{item.br}}</text>
55
+ <text x="18" y="58" text-anchor="middle" dy=".3em" font-size="13" font-weight="600" fill="{{item.style.color}}">{{item.br}}</text>
56
56
  <text text-anchor="middle" dy=".3em" font-size="13" font-weight="500" fill="{{item.style.color}}" transform="rotate(-90) translate(-40, 60)">{{item.fa}}</text>
57
57
  </g>
58
58
  {{#each item.subs as | sub isub |}}
59
59
  <g transform="translate(0, {{math 28 '*' isub}})">
60
- <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}" class="eng-font">{{sub.fa}}</text>
61
- <text x="13" y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}" class="eng-font">-</text>
60
+ <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}">{{sub.fa}}</text>
61
+ <text x="13" y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}">-</text>
62
62
  <text x="37" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="{{sub.style.weight}}" fill="{{sub.style.color}}" class="eng-font">{{sub.label}}</text>
63
63
  <rect x="370" width="36" height="16" rx="2" fill="{{sub.style.bg}}" />
64
- <text x="388" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{sub.style.color}}" class="eng-font">{{sub.raw}}</text>
64
+ <text x="388" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{sub.style.color}}">{{sub.raw}}</text>
65
65
  {{bar 300 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=sub.style.bg transform="translate(57, 0)"}}
66
66
  </g>
67
67
 
@@ -0,0 +1,39 @@
1
+ {{#> layout}}
2
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
3
+ <g transform="translate(80,80)">
4
+ {{#with god}}
5
+ {{gauge circle.R circle.r (object tl=6 tr=6 bl=6 br=6) (object start=circle.angles.start end=circle.angles.end) direction fill=bg}}
6
+ {{gauge circle.R circle.r (object tl=6 tr=0 bl=6 br=0) (object start=circle.angles.start end=zeta) direction fill=color}}
7
+ <text y="-10" text-anchor="middle" dy=".3em" font-size="32" font-weight="500" fill="{{color}}">٪{{percentage}}</text>
8
+ <text y="20" text-anchor="middle" dy=".3em" font-size="22" font-weight="400" fill="{{color}}">{{mark}}</text>
9
+ <text y="-68" x="-12" text-anchor="middle" dy=".3em" font-size="16" font-weight="400" fill="#94A3B8">0</text>
10
+ <text y="-14" x="-68" text-anchor="middle" dy=".3em" font-size="16" font-weight="400" fill="#94A3B8">{{max}}</text>
11
+ <text y="98" text-anchor="middle" dy=".90em" font-size="18" font-weight="500" fill="{{color}}">{{label}}</text>
12
+ {{/with}}
13
+ </g>
14
+ <g transform="translate(340,80)">
15
+ {{#with sin}}
16
+ {{gauge circle.R circle.r (object tl=6 tr=6 bl=6 br=6) (object start=circle.angles.start end=circle.angles.end) direction fill=bg}}
17
+ {{gauge circle.R circle.r (object tl=6 tr=0 bl=6 br=0) (object start=circle.angles.start end=zeta) direction fill=color}}
18
+ <text y="-10" text-anchor="middle" dy=".3em" font-size="32" font-weight="500" fill="{{color}}">٪{{percentage}}</text>
19
+ <text y="20" text-anchor="middle" dy=".3em" font-size="22" font-weight="400" fill="{{color}}">{{mark}}</text>
20
+ <text y="-68" x="-12" text-anchor="middle" dy=".3em" font-size="16" font-weight="400" fill="#94A3B8">0</text>
21
+ <text y="-14" x="-68" text-anchor="middle" dy=".3em" font-size="16" font-weight="400" fill="#94A3B8">{{max}}</text>
22
+ <text y="98" text-anchor="middle" dy=".90em" font-size="18" font-weight="500" fill="{{color}}">{{label}}</text>
23
+ {{/with}}
24
+ </g>
25
+ <line x1="0" x2="400" y1="250" y2="250" stroke="#D1D5DB" />
26
+ <g transform="translate(200.5,379)">
27
+ {{#with total}}
28
+ {{gauge circle.R circle.r (object tl=6 tr=6 bl=6 br=6) (object start=circle.angles.start end=circle.angles.end) direction fill=bg}}
29
+ {{gauge circle.R circle.r (object tl=6 tr=0 bl=6 br=0) (object start=circle.angles.start end=zeta) direction fill=color}}
30
+ <text y="-10" text-anchor="middle" dy=".3em" font-size="32" font-weight="500" fill="{{color}}">٪{{percentage}}</text>
31
+ <text y="20" text-anchor="middle" dy=".3em" font-size="22" font-weight="400" fill="{{color}}">{{mark}}</text>
32
+ <text y="-68" x="-12" text-anchor="middle" dy=".3em" font-size="16" font-weight="400" fill="#94A3B8">0</text>
33
+ <text y="-14" x="-68" text-anchor="middle" dy=".3em" font-size="16" font-weight="400" fill="#94A3B8">{{max}}</text>
34
+ <text y="98" text-anchor="middle" dy=".90em" font-size="18" font-weight="500" fill="{{color}}">{{label}}</text>
35
+ {{/with}}
36
+ </g>
37
+ </g>
38
+
39
+ {{/layout}}