@baravak/risloo-profile-cli 4.7.1 → 4.8.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.
@@ -118,13 +118,13 @@
118
118
  </g>
119
119
 
120
120
  <g>
121
- <circle cx="{{math 470 '*' love.percentage}}" cy="{{math 470 '*' power.percentage}}" r="11" fill="none" stroke="#A16207" stroke-width="3" />
122
- <circle cx="{{math 470 '*' love.percentage}}" cy="{{math 470 '*' power.percentage}}" r="3.5" fill="#A16207" />
123
- <line x1="0" y1="{{math 470 '*' power.percentage}}" x2="{{math 470 '*' love.percentage}}" y2="{{math 470 '*' power.percentage}}" stroke="#A16207" stroke-linecap="round" stroke-dasharray="6 8"/>
124
- <line x1="{{math 470 '*' love.percentage}}" y1="470" x2="{{math 470 '*' love.percentage}}" y2="{{math 470 '*' power.percentage}}" stroke="#A16207" stroke-linecap="round" stroke-dasharray="6 8"/>
125
-
126
- <text x="{{math 470 '*' love.percentage}}" y="495" text-anchor="middle" font-size="20" font-weight="700" fill="#A16207">{{power.mark}}</text>
127
- <text x="-10" y="{{math 470 '*' power.percentage}}" dy=".3em" text-anchor="start" font-size="20" font-weight="700" fill="#A16207">{{love.mark}}</text>
121
+ <circle cx="{{math 470 '*' power.percentage}}" cy="{{math 470 '*' love.percentage}}" r="11" fill="none" stroke="{{love.color}}" stroke-width="3" />
122
+ <circle cx="{{math 470 '*' power.percentage}}" cy="{{math 470 '*' love.percentage}}" r="3.5" fill="{{love.color}}" />
123
+ <line x1="0" y1="{{math 470 '*' love.percentage}}" x2="{{math 470 '*' power.percentage}}" y2="{{math 470 '*' love.percentage}}" stroke="{{love.color}}" stroke-linecap="round" stroke-dasharray="6 8"/>
124
+ <line x1="{{math 470 '*' power.percentage}}" y1="470" x2="{{math 470 '*' power.percentage}}" y2="{{math 470 '*' love.percentage}}" stroke="{{love.color}}" stroke-linecap="round" stroke-dasharray="6 8"/>
125
+
126
+ <text x="{{math 470 '*' power.percentage}}" y="495" text-anchor="middle" font-size="20" font-weight="700" fill="{{love.color}}">{{power.mark}}</text>
127
+ <text x="-10" y="{{math 470 '*' love.percentage}}" dy=".3em" text-anchor="start" font-size="20" font-weight="700" fill="{{love.color}}">{{love.mark}}</text>
128
128
  </g>
129
129
  </g>
130
130
  </g>
@@ -0,0 +1,206 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <filter id="linebreak" x="0" y="0" width="7" height="566" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
4
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
5
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
6
+ <feOffset dx="1"/>
7
+ <feGaussianBlur stdDeviation="1.5"/>
8
+ <feComposite in2="hardAlpha" operator="out"/>
9
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
10
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_364_82049"/>
11
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_364_82049" result="shape"/>
12
+ </filter>
13
+ <linearGradient id="blueBar">
14
+ <stop stop-color="#93C5FD"/>
15
+ <stop offset="1" stop-color="#2563EB"/>
16
+ </linearGradient>
17
+ <linearGradient id="grayBar">
18
+ <stop stop-color="#E2E8F0"/>
19
+ <stop offset="1" stop-color="#CBD5E1"/>
20
+ </linearGradient>
21
+ <linearGradient id="yellowBar">
22
+ <stop stop-color="#FEF08A"/>
23
+ <stop offset="1" stop-color="#EAB308"/>
24
+ </linearGradient>
25
+ <linearGradient id="orangeBar">
26
+ <stop stop-color="#FDBA74"/>
27
+ <stop offset="1" stop-color="#EA580C"/>
28
+ </linearGradient>
29
+ <linearGradient id="redBar">
30
+ <stop stop-color="#FDA4AF"/>
31
+ <stop offset="1" stop-color="#E11D48"/>
32
+ </linearGradient>
33
+ <clipPath id="defaultBar">
34
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0)}}
35
+ </clipPath>
36
+ </defs>
37
+ <g transform="translate(4, 20)">
38
+ <g transform="translate(94, 0)">
39
+ <g transform="translate(274, 42)">
40
+ <g>
41
+ {{#each correction as | item index |}}
42
+ <g transform="translate(0, {{math 32 '*' index}})">
43
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.style.bg}}
44
+ </g>
45
+ {{/each}}
46
+ {{#if (boolean status.x '!==' 0)}}
47
+ <g transform="translate(415, 0)">
48
+ <path d="M9.50001 6.16575V9.72131M9.50001 12.388H9.5089M8.0449 1.35775L0.83957 13.388C0.691033 13.6452 0.61243 13.9368 0.611579 14.2339C0.610729 14.5309 0.68766 14.823 0.834722 15.0811C0.981783 15.3391 1.19385 15.5542 1.44983 15.7049C1.70581 15.8556 1.99677 15.9366 2.29379 15.94H16.7062C17.0031 15.9365 17.2939 15.8555 17.5498 15.7048C17.8057 15.5542 18.0176 15.3392 18.1647 15.0813C18.3117 14.8234 18.3887 14.5314 18.3879 14.2345C18.3872 13.9376 18.3088 13.6461 18.1605 13.3889L10.9551 1.35686C10.8035 1.10664 10.59 0.899744 10.3351 0.756147C10.0802 0.612551 9.79257 0.537109 9.50001 0.537109C9.20746 0.537109 8.91984 0.612551 8.66495 0.756147C8.41005 0.899744 8.1965 1.10664 8.0449 1.35686V1.35775Z" stroke="#B91C1C" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
49
+ </g>
50
+ {{/if}}
51
+ </g>
52
+ <g transform="translate(0, 144)">
53
+ {{#each personality as | item index |}}
54
+ <g transform="translate(0, {{math 32 '*' index}})">
55
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.style.bg}}
56
+ </g>
57
+ {{/each}}
58
+ </g>
59
+ <g transform="translate(0, 512)">
60
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=border.style.bg}}
61
+ </g>
62
+ </g>
63
+ <g>
64
+ <text x="{{math 273 '+' (math 90 '*' 0)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="600" fill="#9CA3AF">BR</text>
65
+ <text x="{{math 273 '+' (math 90 '*' 1)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">60</text>
66
+ <text x="{{math 273 '+' (math 90 '*' 2)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">75</text>
67
+ <text x="{{math 273 '+' (math 90 '*' 3)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">85</text>
68
+ <text x="{{math 273 '+' (math 90 '*' 4)}}" y="6" text-anchor="start" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">115</text>
69
+ <g transform="translate(644, 2.5)">
70
+ <path d="M3.5 1V8M3.5 8L6.5 5M3.5 8L0.5 5" stroke="#9CA3AF" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
71
+ </g>
72
+ <text x="658" y="6" text-anchor="end" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">نمره خام</text>
73
+
74
+ <line x1="{{math 363 '+' (math 90 '*' 0)}}" x2="{{math 363 '+' (math 90 '*' 0)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
75
+ <line x1="{{math 363 '+' (math 90 '*' 1)}}" x2="{{math 363 '+' (math 90 '*' 1)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
76
+ <line x1="{{math 363 '+' (math 90 '*' 2)}}" x2="{{math 363 '+' (math 90 '*' 2)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
77
+ <line x1="{{math 363 '+' (math 90 '*' 3)}}" x2="{{math 363 '+' (math 90 '*' 3)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
78
+ </g>
79
+ <g transform="translate(0, 22)">
80
+ <rect width="48" height="120" rx="4" fill="#F9FAFB" stroke="#F3F4F6" />
81
+ <text text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="#4B5563" transform="rotate(-90) translate(-60, 24)">فهرست‌های اصلاحی</text>
82
+
83
+ <rect y="186" width="48" height="336" rx="4" fill="#F9FAFB" stroke="#F3F4F6" />
84
+ <text text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="#4B5563" transform="rotate(-90) translate(-354, 24)">الگوهای شخصیت</text>
85
+ {{#if (boolean status.br '!==' 0)}}
86
+ <g transform="translate(15, 406)">
87
+ <path d="M9.50001 6.16575V9.72131M9.50001 12.388H9.5089M8.0449 1.35775L0.83957 13.388C0.691033 13.6452 0.61243 13.9368 0.611579 14.2339C0.610729 14.5309 0.68766 14.823 0.834722 15.0811C0.981783 15.3391 1.19385 15.5542 1.44983 15.7049C1.70581 15.8556 1.99677 15.9366 2.29379 15.94H16.7062C17.0031 15.9365 17.2939 15.8555 17.5498 15.7048C17.8057 15.5542 18.0176 15.3392 18.1647 15.0813C18.3117 14.8234 18.3887 14.5314 18.3879 14.2345C18.3872 13.9376 18.3088 13.6461 18.1605 13.3889L10.9551 1.35686C10.8035 1.10664 10.59 0.899744 10.3351 0.756147C10.0802 0.612551 9.79257 0.537109 9.50001 0.537109C9.20746 0.537109 8.91984 0.612551 8.66495 0.756147C8.41005 0.899744 8.1965 1.10664 8.0449 1.35686V1.35775Z" stroke="#B91C1C" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
88
+ </g>
89
+ {{/if}}
90
+
91
+ <g transform="translate(220, 20)">
92
+ {{#each correction as | item index |}}
93
+ <g transform="translate(0, {{math 32 '*' index}})">
94
+ <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="400" fill="#2563EB">{{item.fa}}</text>
95
+ <text x="8" y="8" text-anchor="end" dy=".3em" font-size="13" font-weight="400" fill="#2563EB">-</text>
96
+ <text x="35" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="#2563EB" class="eng-font">{{item.label}}</text>
97
+ <g transform="translate(54, 0)">
98
+ {{bar item.pixel 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill="url(#blueBar)" clip-path="url(#defaultBar)"}}
99
+ {{#if (boolean item.br '>=' 60)}}
100
+ <text x="{{math item.pixel '-' 6}}" y="8" text-anchor="start" dy=".3em" font-size="15" font-weight="500" fill="#FFFFFF">{{item.br}}</text>
101
+ {{else}}
102
+ <text x="{{math item.pixel '+' 6}}" y="8" text-anchor="end" dy=".3em" font-size="15" font-weight="500" fill="#2563EB">{{item.br}}</text>
103
+ {{/if}}
104
+ <rect x="371.5" width="36" height="16" fill="#EFF6FF" />
105
+ <text x="389.5" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="#2563EB">{{item.raw}}</text>
106
+ </g>
107
+ </g>
108
+ {{/each}}
109
+ <g transform="translate(0, 144)">
110
+ {{#each personality as | item index |}}
111
+ <g transform="translate(0, {{math 32 '*' index}})">
112
+ <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}">{{item.fa}}</text>
113
+ <text x="8" y="8" text-anchor="end" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}">-</text>
114
+ <text x="35" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}" class="eng-font">{{item.label}}</text>
115
+ <g transform="translate(54, 0)">
116
+ {{bar item.pixel 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.style.key clip-path="url(#defaultBar)"}}
117
+ {{#if (boolean item.br '>=' 60)}}
118
+ <text x="{{math item.pixel '-' 6}}" y="8" text-anchor="start" dy=".3em" font-size="15" font-weight="500" fill="#FFFFFF">{{item.br}}</text>
119
+ {{else}}
120
+ <text x="{{math item.pixel '+' 6}}" y="8" text-anchor="end" dy=".3em" font-size="15" font-weight="500" fill="{{item.style.color}}">{{item.br}}</text>
121
+ {{/if}}
122
+ <rect x="371.5" width="36" height="16" fill="{{item.style.bg}}" />
123
+ <text x="389.5" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{item.style.color}}">{{item.raw}}</text>
124
+ </g>
125
+ </g>
126
+ {{/each}}
127
+ </g>
128
+ <g transform="translate(0, 512)">
129
+ <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{border.style.weight}}" fill="{{border.style.color}}">{{border.fa}}</text>
130
+ <text x="8" y="8" text-anchor="end" dy=".3em" font-size="13" font-weight="{{border.style.weight}}" fill="{{border.style.color}}">-</text>
131
+ <text x="35" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="{{border.style.weight}}" fill="{{border.style.color}}" class="eng-font">{{border.label}}</text>
132
+ <g transform="translate(54, 0)">
133
+ {{bar border.pixel 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=border.style.key clip-path="url(#defaultBar)"}}
134
+ {{#if (boolean border.br '>=' 60)}}
135
+ <text x="{{math border.pixel '-' 6}}" y="8" text-anchor="start" dy=".3em" font-size="15" font-weight="500" fill="#FFFFFF">{{border.br}}</text>
136
+ {{else}}
137
+ <text x="{{math border.pixel '+' 6}}" y="8" text-anchor="end" dy=".3em" font-size="15" font-weight="500" fill="{{border.style.color}}">{{border.br}}</text>
138
+ {{/if}}
139
+ <rect x="371.5" width="36" height="16" fill="{{border.style.bg}}" />
140
+ <text x="389.5" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{border.style.color}}">{{border.raw}}</text>
141
+ </g>
142
+ </g>
143
+ </g>
144
+ </g>
145
+
146
+ <g transform="translate(270, 26)" opacity="0.5" filter="url(#linebreak)">
147
+ <line x1="2.5" y1="3.5" x2="2.49998" y2="562.5" stroke="white" stroke-linecap="round"/>
148
+ </g>
149
+ </g>
150
+
151
+ <g transform="translate(0, 650)">
152
+ <g>
153
+ <rect width="20" height="20" rx="4" fill="#007BA4" />
154
+ <text text-anchor="middle" x="10" y="10" dy=".3em" font-size="12" font-weight="600" fill="#FFFFFF" >1</text>
155
+ </g>
156
+ <g transform="translate(22, 2)">
157
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
158
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >2</text>
159
+ </g>
160
+ <g transform="translate(2, 22)">
161
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
162
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >3</text>
163
+ </g>
164
+ <g transform="translate(22, 22)">
165
+ <rect width="17" height="18" rx="4" stroke="#CBD5E1" fill="none" />
166
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >4</text>
167
+ </g>
168
+ </g>
169
+ <g transform="translate(94, 614)">
170
+ {{bar 139 31 (object tr=6 br=0 bl=0 tl=6) (toRad 0) fill=status.v.bg stroke=status.v.fill transform="translate(0.5, .5)"}}
171
+ {{bar 140 32 (object tr=0 br=6 bl=6 tl=0) (toRad 0) fill=status.v.fill transform="translate(0, 31.5)"}}
172
+ <text text-anchor="middle" x="70" y="16" dy=".3em" font-size="12" font-weight="400" fill="{{status.v.fill}}">نمره پایایی (مقیاس VV)</text>
173
+ <text text-anchor="middle" x="70" y="48" dy=".3em" font-size="13" font-weight="400" fill="#FFFFFF">
174
+ <tspan font-size="18" font-weight="500">
175
+ {{status.v.value}}
176
+ </tspan>
177
+ <tspan>
178
+ = {{status.v.text}}
179
+ </tspan>
180
+ </text>
181
+ </g>
182
+ {{#if (boolean (boolean status.x '!==' 0) '||' (boolean status.br '!==' 0))}}
183
+ <g transform="translate(250, 614)">
184
+ <rect width="478" height="60" fill="#FEF2F2" stroke="#B91C1C" stroke-dasharray="6 6" rx="6" />
185
+ <path transform="translate(434, 18)" d="M13.9999 9.4996V14.8329M13.9999 18.8329H14.0132M11.8172 2.2876L1.00923 20.3329C0.786427 20.7188 0.668523 21.1562 0.667247 21.6018C0.665971 22.0473 0.781368 22.4855 1.00196 22.8726C1.22255 23.2597 1.54065 23.5823 1.92462 23.8083C2.30859 24.0344 2.74504 24.1559 3.19057 24.1609H24.8092C25.2546 24.1558 25.6908 24.0342 26.0746 23.8083C26.4584 23.5823 26.7763 23.2598 26.9969 22.8729C27.2174 22.486 27.3329 22.0481 27.3318 21.6028C27.3307 21.1574 27.213 20.7201 26.9906 20.3343L16.1826 2.28627C15.9552 1.91094 15.6348 1.60059 15.2525 1.3852C14.8702 1.1698 14.4387 1.05664 13.9999 1.05664C13.5611 1.05664 13.1296 1.1698 12.7473 1.3852C12.365 1.60059 12.0446 1.91094 11.8172 2.28627V2.2876Z" stroke="#B91C1C" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
186
+ <line x1="415" x2="415" y1="16" y2="44" stroke="#E7E5E4" />
187
+ <text text-anchor="start" x="400" y="30" dy=".3em" font-size="12" font-weight="400" fill="#44403C">آزمون غیر قابل تفسیر است به دلیل:</text>
188
+ {{#if (boolean (boolean status.x '!==' 0) '&&' (boolean status.br '!==' 0))}}
189
+ <text text-anchor="start" dy=".3em" font-size="12" font-weight="400" fill="#44403C">
190
+ <tspan x="212" y="20">
191
+ - نمره خام مقیاس X
192
+ </tspan>
193
+ <tspan x="212" y="43">
194
+ - نمره‌های BR الگوهای شخصیت
195
+ </tspan>
196
+ </text>
197
+ {{else if (boolean status.x '!==' 0) }}
198
+ <text text-anchor="start" x="212" y="30" dy=".3em" font-size="12" font-weight="400" fill="#44403C">- نمره خام مقیاس X</text>
199
+ {{else}}
200
+ <text text-anchor="start" x="212" y="30" dy=".3em" font-size="12" font-weight="400" fill="#44403C">- نمره‌های BR الگوهای شخصیت</text>
201
+ {{/if}}
202
+ </g>
203
+ {{/if}}
204
+ </g>
205
+
206
+ {{/layout}}
@@ -0,0 +1,180 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <filter id="linebreak" x="0" y="0" width="7" height="566" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
4
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
5
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
6
+ <feOffset dx="1"/>
7
+ <feGaussianBlur stdDeviation="1.5"/>
8
+ <feComposite in2="hardAlpha" operator="out"/>
9
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
10
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_364_82049"/>
11
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_364_82049" result="shape"/>
12
+ </filter>
13
+ <linearGradient id="blueBar">
14
+ <stop stop-color="#93C5FD"/>
15
+ <stop offset="1" stop-color="#2563EB"/>
16
+ </linearGradient>
17
+ <linearGradient id="grayBar">
18
+ <stop stop-color="#E2E8F0"/>
19
+ <stop offset="1" stop-color="#CBD5E1"/>
20
+ </linearGradient>
21
+ <linearGradient id="yellowBar">
22
+ <stop stop-color="#FEF08A"/>
23
+ <stop offset="1" stop-color="#EAB308"/>
24
+ </linearGradient>
25
+ <linearGradient id="orangeBar">
26
+ <stop stop-color="#FDBA74"/>
27
+ <stop offset="1" stop-color="#EA580C"/>
28
+ </linearGradient>
29
+ <linearGradient id="redBar">
30
+ <stop stop-color="#FDA4AF"/>
31
+ <stop offset="1" stop-color="#E11D48"/>
32
+ </linearGradient>
33
+ <clipPath id="defaultBar">
34
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0)}}
35
+ </clipPath>
36
+ </defs>
37
+ <g transform="translate(4, 20)">
38
+ <g transform="translate(94, 0)">
39
+ <g transform="translate(274, 50)">
40
+ <g>
41
+ {{#each warnings as | item index |}}
42
+ <g transform="translate(0, {{math 32 '*' index}})">
43
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.style.bg}}
44
+ </g>
45
+ {{/each}}
46
+ </g>
47
+ <g transform="translate(0, 304)">
48
+ {{#each clinical as | item index |}}
49
+ <g transform="translate(0, {{math 32 '*' index}})">
50
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.style.bg}}
51
+ </g>
52
+ {{/each}}
53
+ </g>
54
+ </g>
55
+ <g>
56
+ <text x="{{math 273 '+' (math 90 '*' 0)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="600" fill="#9CA3AF">BR</text>
57
+ <text x="{{math 273 '+' (math 90 '*' 1)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">60</text>
58
+ <text x="{{math 273 '+' (math 90 '*' 2)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">75</text>
59
+ <text x="{{math 273 '+' (math 90 '*' 3)}}" y="6" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">85</text>
60
+ <text x="{{math 273 '+' (math 90 '*' 4)}}" y="6" text-anchor="start" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">115</text>
61
+ <g transform="translate(644, 2.5)">
62
+ <path d="M3.5 1V8M3.5 8L6.5 5M3.5 8L0.5 5" stroke="#9CA3AF" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
63
+ </g>
64
+ <text x="658" y="6" text-anchor="end" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">نمره خام</text>
65
+
66
+ <line x1="{{math 363 '+' (math 90 '*' 0)}}" x2="{{math 363 '+' (math 90 '*' 0)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
67
+ <line x1="{{math 363 '+' (math 90 '*' 1)}}" x2="{{math 363 '+' (math 90 '*' 1)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
68
+ <line x1="{{math 363 '+' (math 90 '*' 2)}}" x2="{{math 363 '+' (math 90 '*' 2)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
69
+ <line x1="{{math 363 '+' (math 90 '*' 3)}}" x2="{{math 363 '+' (math 90 '*' 3)}}" y1="26" y2="586" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
70
+ </g>
71
+ <g transform="translate(0, 50)">
72
+ <rect width="48" height="240" rx="4" fill="#F9FAFB" stroke="#F3F4F6" />
73
+ <text text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="#4B5563" transform="rotate(-90) translate(-120, 24)">نگرانی‌های ابراز شده</text>
74
+
75
+ <rect y="304" width="48" height="208" rx="4" fill="#F9FAFB" stroke="#F3F4F6" />
76
+ <text text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="#4B5563" transform="rotate(-90) translate(-408, 24)">نشانگان بالینی</text>
77
+
78
+ <g transform="translate(220, 0)">
79
+ <g>
80
+ {{#each warnings as | item index |}}
81
+ <g transform="translate(0, {{math 32 '*' index}})">
82
+ <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}">{{item.fa}}</text>
83
+ <text x="8" y="8" text-anchor="end" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}">-</text>
84
+ <text x="35" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}" class="eng-font">{{item.label}}</text>
85
+ <g transform="translate(54, 0)">
86
+ {{bar item.pixel 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.style.key clip-path="url(#defaultBar)"}}
87
+ {{#if (boolean item.br '>=' 60)}}
88
+ <text x="{{math item.pixel '-' 6}}" y="8" text-anchor="start" dy=".3em" font-size="15" font-weight="500" fill="#FFFFFF">{{item.br}}</text>
89
+ {{else}}
90
+ <text x="{{math item.pixel '+' 6}}" y="8" text-anchor="end" dy=".3em" font-size="15" font-weight="500" fill="{{item.style.color}}">{{item.br}}</text>
91
+ {{/if}}
92
+ <rect x="371.5" width="36" height="16" fill="{{item.style.bg}}" />
93
+ <text x="389.5" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{item.style.color}}">{{item.raw}}</text>
94
+ </g>
95
+ </g>
96
+ {{/each}}
97
+ </g>
98
+ <g transform="translate(0, 304)">
99
+ {{#each clinical as | item index |}}
100
+ <g transform="translate(0, {{math 32 '*' index}})">
101
+ <text y="8" text-anchor="start" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}">{{item.fa}}</text>
102
+ <text x="8" y="8" text-anchor="end" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}">-</text>
103
+ <text x="35" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="{{item.style.weight}}" fill="{{item.style.color}}" class="eng-font">{{item.label}}</text>
104
+ <g transform="translate(54, 0)">
105
+ {{bar item.pixel 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.style.key clip-path="url(#defaultBar)"}}
106
+ {{#if (boolean item.br '>=' 60)}}
107
+ <text x="{{math item.pixel '-' 6}}" y="8" text-anchor="start" dy=".3em" font-size="15" font-weight="500" fill="#FFFFFF">{{item.br}}</text>
108
+ {{else}}
109
+ <text x="{{math item.pixel '+' 6}}" y="8" text-anchor="end" dy=".3em" font-size="15" font-weight="500" fill="{{item.style.color}}">{{item.br}}</text>
110
+ {{/if}}
111
+ <rect x="371.5" width="36" height="16" fill="{{item.style.bg}}" />
112
+ <text x="389.5" y="8" text-anchor="middle" dy=".3em" font-size="13" font-weight="400" fill="{{item.style.color}}">{{item.raw}}</text>
113
+ </g>
114
+ </g>
115
+ {{/each}}
116
+ </g>
117
+ </g>
118
+ </g>
119
+
120
+ <g transform="translate(270, 26)" opacity="0.5" filter="url(#linebreak)">
121
+ <line x1="2.5" y1="3.5" x2="2.49998" y2="562.5" stroke="white" stroke-linecap="round"/>
122
+ </g>
123
+ </g>
124
+
125
+ <g transform="translate(0, 650)">
126
+ <g transform="translate(2, 2)">
127
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
128
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >1</text>
129
+ </g>
130
+ <g transform="translate(20, 0)">
131
+ <rect width="20" height="20" rx="4" fill="#007BA4" />
132
+ <text text-anchor="middle" x="10" y="10" dy=".3em" font-size="12" font-weight="600" fill="#FFFFFF" >2</text>
133
+ </g>
134
+ <g transform="translate(2, 22)">
135
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
136
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >3</text>
137
+ </g>
138
+ <g transform="translate(22, 22)">
139
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
140
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >4</text>
141
+ </g>
142
+ </g>
143
+ <g transform="translate(94, 614)">
144
+ {{bar 139 31 (object tr=6 br=0 bl=0 tl=6) (toRad 0) fill=status.v.bg stroke=status.v.fill transform="translate(0.5, .5)"}}
145
+ {{bar 140 32 (object tr=0 br=6 bl=6 tl=0) (toRad 0) fill=status.v.fill transform="translate(0, 31.5)"}}
146
+ <text text-anchor="middle" x="70" y="16" dy=".3em" font-size="12" font-weight="400" fill="{{status.v.fill}}">نمره پایایی (مقیاس VV)</text>
147
+ <text text-anchor="middle" x="70" y="48" dy=".3em" font-size="13" font-weight="400" fill="#FFFFFF">
148
+ <tspan font-size="18" font-weight="500">
149
+ {{status.v.value}}
150
+ </tspan>
151
+ <tspan>
152
+ = {{status.v.text}}
153
+ </tspan>
154
+ </text>
155
+ </g>
156
+ {{#if (boolean (boolean status.x '!==' 0) '||' (boolean status.br '!==' 0))}}
157
+ <g transform="translate(250, 614)">
158
+ <rect width="478" height="60" fill="#FEF2F2" stroke="#B91C1C" stroke-dasharray="6 6" rx="6" />
159
+ <path transform="translate(434, 18)" d="M13.9999 9.4996V14.8329M13.9999 18.8329H14.0132M11.8172 2.2876L1.00923 20.3329C0.786427 20.7188 0.668523 21.1562 0.667247 21.6018C0.665971 22.0473 0.781368 22.4855 1.00196 22.8726C1.22255 23.2597 1.54065 23.5823 1.92462 23.8083C2.30859 24.0344 2.74504 24.1559 3.19057 24.1609H24.8092C25.2546 24.1558 25.6908 24.0342 26.0746 23.8083C26.4584 23.5823 26.7763 23.2598 26.9969 22.8729C27.2174 22.486 27.3329 22.0481 27.3318 21.6028C27.3307 21.1574 27.213 20.7201 26.9906 20.3343L16.1826 2.28627C15.9552 1.91094 15.6348 1.60059 15.2525 1.3852C14.8702 1.1698 14.4387 1.05664 13.9999 1.05664C13.5611 1.05664 13.1296 1.1698 12.7473 1.3852C12.365 1.60059 12.0446 1.91094 11.8172 2.28627V2.2876Z" stroke="#B91C1C" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
160
+ <line x1="415" x2="415" y1="16" y2="44" stroke="#E7E5E4" />
161
+ <text text-anchor="start" x="400" y="30" dy=".3em" font-size="12" font-weight="400" fill="#44403C">آزمون غیر قابل تفسیر است به دلیل:</text>
162
+ {{#if (boolean (boolean status.x '!==' 0) '&&' (boolean status.br '!==' 0))}}
163
+ <text text-anchor="start" dy=".3em" font-size="12" font-weight="400" fill="#44403C">
164
+ <tspan x="212" y="20">
165
+ - نمره خام مقیاس X
166
+ </tspan>
167
+ <tspan x="212" y="43">
168
+ - نمره‌های BR الگوهای شخصیت
169
+ </tspan>
170
+ </text>
171
+ {{else if (boolean status.x '!==' 0) }}
172
+ <text text-anchor="start" x="212" y="30" dy=".3em" font-size="12" font-weight="400" fill="#44403C">- نمره خام مقیاس X</text>
173
+ {{else}}
174
+ <text text-anchor="start" x="212" y="30" dy=".3em" font-size="12" font-weight="400" fill="#44403C">- نمره‌های BR الگوهای شخصیت</text>
175
+ {{/if}}
176
+ </g>
177
+ {{/if}}
178
+ </g>
179
+
180
+ {{/layout}}
@@ -0,0 +1,129 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <filter id="linebreak" x="0" y="0" width="7" height="630" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
4
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
5
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
6
+ <feOffset dx="1"/>
7
+ <feGaussianBlur stdDeviation="1.5"/>
8
+ <feComposite in2="hardAlpha" operator="out"/>
9
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
10
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_407_82399"/>
11
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_407_82399" result="shape"/>
12
+ </filter>
13
+ <linearGradient id="blueBar">
14
+ <stop stop-color="#93C5FD"/>
15
+ <stop offset="1" stop-color="#2563EB"/>
16
+ </linearGradient>
17
+ <linearGradient id="grayBar">
18
+ <stop stop-color="#E2E8F0"/>
19
+ <stop offset="1" stop-color="#CBD5E1"/>
20
+ </linearGradient>
21
+ <linearGradient id="coldGrayBar">
22
+ <stop stop-color="#CBD5E1"/>
23
+ <stop offset="1" stop-color="#94A3B8"/>
24
+ </linearGradient>
25
+ <linearGradient id="hotGrayBar">
26
+ <stop stop-color="#D4D4D8"/>
27
+ <stop offset="1" stop-color="#A1A1AA"/>
28
+ </linearGradient>
29
+ <linearGradient id="yellowBar">
30
+ <stop stop-color="#FEF08A"/>
31
+ <stop offset="1" stop-color="#EAB308"/>
32
+ </linearGradient>
33
+ <linearGradient id="orangeBar">
34
+ <stop stop-color="#FDBA74"/>
35
+ <stop offset="1" stop-color="#EA580C"/>
36
+ </linearGradient>
37
+ <linearGradient id="redBar">
38
+ <stop stop-color="#FDA4AF"/>
39
+ <stop offset="1" stop-color="#E11D48"/>
40
+ </linearGradient>
41
+ <clipPath id="defaultBar">
42
+ {{bar 360 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0)}}
43
+ </clipPath>
44
+ </defs>
45
+ <g transform="translate(4, 20)">
46
+ <g transform="translate(110, -16)">
47
+ <g transform="translate(252, 59)">
48
+ {{#each grasman as | item index |}}
49
+ <g transform="translate(0, {{math 104 '*' index}})">
50
+ <g transform="translate(-252, -4)">
51
+ {{bar 36 72 (object tr=0 br=0 bl=2 tl=2) (toRad 0) fill=item.style.bg transform="translate(0, 4)"}}
52
+ <rect x="36.5" y=".5" width="47" height="79" stroke="{{item.style.border}}" fill="{{item.style.bg}}" rx="4" />
53
+ <line x1="3" x2="33" y1="40" y2="40" stroke="{{item.style.border}}" />
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>
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
+ </g>
58
+ {{#each item.subs as | sub isub |}}
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>
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
+ <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>
65
+ {{bar 300 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=sub.style.bg transform="translate(57, 0)"}}
66
+ </g>
67
+
68
+ {{/each}}
69
+ </g>
70
+ {{/each}}
71
+ </g>
72
+
73
+
74
+ <g>
75
+ <text x="{{math 307 '+' (math 60 '*' 0)}}" y="23" text-anchor="middle" dy=".3em" font-size="12" font-weight="600" fill="#9CA3AF">BR</text>
76
+ <text x="{{math 307 '+' (math 60 '*' 1)}}" y="23" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">60</text>
77
+ <text x="{{math 307 '+' (math 60 '*' 2)}}" y="23" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">70</text>
78
+ <text x="{{math 307 '+' (math 60 '*' 2.5)}}" y="3" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">75</text>
79
+ <text x="{{math 307 '+' (math 60 '*' 3)}}" y="23" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">80</text>
80
+ <text x="{{math 307 '+' (math 60 '*' 4)}}" y="23" text-anchor="middle" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">90</text>
81
+ <text x="{{math 307 '+' (math 60 '*' 5)}}" y="23" text-anchor="start" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">100</text>
82
+ <g transform="translate(622, 20)">
83
+ <path d="M3.5 1V8M3.5 8L6.5 5M3.5 8L0.5 5" stroke="#9CA3AF" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
84
+ </g>
85
+ <text x="633" y="23" text-anchor="end" dy=".3em" font-size="12" font-weight="400" fill="#9CA3AF">نمره خام</text>
86
+
87
+ <line x1="{{math 367 '+' (math 60 '*' 0)}}" x2="{{math 367 '+' (math 60 '*' 0)}}" y1="46" y2="667" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
88
+ <line x1="{{math 367 '+' (math 60 '*' 1)}}" x2="{{math 367 '+' (math 60 '*' 1)}}" y1="46" y2="667" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
89
+ <line x1="{{math 367 '+' (math 60 '*' 1.5)}}" x2="{{math 367 '+' (math 60 '*' 1.5)}}" y1="17" y2="667" stroke="#E5E7EB" stroke-linecap="round"/>
90
+ <line x1="{{math 367 '+' (math 60 '*' 2)}}" x2="{{math 367 '+' (math 60 '*' 2)}}" y1="46" y2="667" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
91
+ <line x1="{{math 367 '+' (math 60 '*' 3)}}" x2="{{math 367 '+' (math 60 '*' 3)}}" y1="46" y2="667" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
92
+ <line x1="{{math 367 '+' (math 60 '*' 4)}}" x2="{{math 367 '+' (math 60 '*' 4)}}" y1="46" y2="667" stroke="#E5E7EB" stroke-dasharray="6 6" stroke-linecap="round"/>
93
+ </g>
94
+
95
+ <g transform="translate(252, 59)">
96
+ {{#each grasman as | item index |}}
97
+ {{#each item.subs as | sub isub |}}
98
+ <g transform="translate(0, {{math (math 104 '*' index) '+' (math 28 '*' isub)}})">
99
+ {{bar sub.pixel 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=sub.style.key transform="translate(57, 0)"}}
100
+ </g>
101
+ {{/each}}
102
+ {{/each}}
103
+ </g>
104
+ <g opacity="0.5" filter="url(#linebreak)" transform="translate(307, 40)">
105
+ <line x1="2.5" y1="3.5" x2="2.5" y2="626.5" stroke="white" stroke-linecap="round"/>
106
+ </g>
107
+ </g>
108
+
109
+ <g transform="translate(0, 650)">
110
+ <g transform="translate(2, 2)">
111
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
112
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >1</text>
113
+ </g>
114
+ <g transform="translate(22, 2)">
115
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
116
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >2</text>
117
+ </g>
118
+ <g transform="translate(0, 20)">
119
+ <rect width="20" height="20" rx="4" fill="#007BA4" />
120
+ <text text-anchor="middle" x="10" y="10" dy=".3em" font-size="12" font-weight="600" fill="#FFFFFF" >3</text>
121
+ </g>
122
+ <g transform="translate(22, 22)">
123
+ <rect width="17" height="17" rx="4" stroke="#CBD5E1" fill="none" />
124
+ <text text-anchor="middle" x="9" y="9" dy=".3em" font-size="10" font-weight="400" fill="#94A3B8" >4</text>
125
+ </g>
126
+ </g>
127
+ </g>
128
+
129
+ {{/layout}}