@baravak/risloo-profile-cli 3.5.2 → 4.0.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.
@@ -0,0 +1,76 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <clipPath id="bar240x16">
4
+ {{bar 240 16 (object tr=8 tl=0 br=8 bl=0) (toRad 0)}}
5
+ </clipPath>
6
+ <clipPath id="bar20x246">
7
+ {{bar 20 246 (object tl=0 tr=0 bl=10 br=10) (toRad 180) }}
8
+ </clipPath>
9
+ <linearGradient id="line-bar" x1="0%" y1="0%" x2="100%" y2="0%">
10
+ <stop offset="0%" style="stop-color:#88BDFF;stop-opacity:1" />
11
+ <stop offset="100%" style="stop-color:#2563EB;stop-opacity:1" />
12
+ </linearGradient>
13
+ </defs>
14
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
15
+ {{bar 828 40 (object tr=0 tl=0 bl=12 br=12) (toRad 0) fill="#F8FAFC" transform="translate(0, 594)"}}
16
+ {{bar 828 634 (object tr=12 tl=12 bl=12 br=12) (toRad 0) stroke="#CBD5E1" fill="none"}}
17
+ <g transform="translate(495, 594)">
18
+ {{bar 25 25 (object tr=8 br=8 bl=8 tl=8) (toRad 0) fill="none" stroke="#E2E8F0" transform="translate(-25, 7.5)"}}
19
+ <text x="-12.5" y="20" dy="0.25em" text-anchor="middle" font-size="14" font-weight="400" fill="#475569">7</text>
20
+ <text x="-33" y="20" dy="0.25em" text-anchor="start" font-size="14" font-weight="400" fill="#52525B">تفاهم / توافق / اختلاف</text>
21
+ </g>
22
+ {{!-- Section 1 --}}
23
+ <g transform="translate(18.5, 12)">
24
+ <rect height="220" width="791" opacity=".1" />
25
+ <g transform="translate(16, 16)">
26
+ <rect height="188" width="356" opacity=".1" fill="red" />
27
+ <g>
28
+ <text x="115" y="3" dy="0.75em" text-anchor="start" font-size="14" font-weight="400" fill="#52525B">با هم مخالفیم</text>
29
+ </g>
30
+ <rect x="121" y="0" width="1" height="188" rx="0.25" fill="#FFFFFF" style="filter: drop-shadow(2px 0px 2px rgba(0,0,0, .5));"/>
31
+ </g>
32
+ <g transform="translate(436, 38)">
33
+ <rect height="144" width="339" opacity=".1" fill="blue" />
34
+ </g>
35
+ </g>
36
+ <text x="749" y="252" dy="-.25em" text-anchor="end" font-size="14" font-weight="400" fill="#9CA3AF">بخش اول</text>
37
+ <line x1="12" y1="264" y2="264" x2="816" stroke="#CBD5E1" stroke-linecap="round" stroke-dasharray="6 6"/>
38
+ <text x="20" y="276" dy=".75em" text-anchor="end" font-size="14" font-weight="400" fill="#9CA3AF">بخش دوم</text>
39
+ {{!-- Section 2 --}}
40
+ <g transform="translate(60.5, 296)">
41
+ <g transform="translate(16, 22)">
42
+ <g transform="translate(0, 8)">
43
+ {{#each s2.items as |item index|}}
44
+ <g transform="translate(0, {{math index '*' 30}})">
45
+ <text x="173" y="0" font-size="14" font-weight="400" fill="#4B5563" dy="0.75em">{{item.label.fr}}</text>
46
+ <g transform="translate(180, 0)">
47
+ {{bar (math item.label.max '*' 10) 16 (object tr=8 tl=0 br=8 bl=0) (toRad 0) fill="#F3F4F6" opacity=".8"}}
48
+ {{bar (math item.mark '*' 10) 16 (object tr=8 tl=0 br=8 bl=0) (toRad 0) fill="url(#line-bar)" clip-path="url(#bar240x16)" opacity=".8"}}
49
+ <text x="{{math 8 '+' (math item.label.max '*' 10)}}" direction="ltr">
50
+ <tspan fill="#2563EB" font-size="18" font-weight="500" dy=".75em" text-anchor="start">{{item.mark}}</tspan>
51
+ <tspan fill="#4B5563" font-size="12" font-weight="400"> / {{item.label.max}}</tspan>
52
+ </text>
53
+ <g transform="translate({{math 57 '+' (math item.label.max '*' 10)}}, 0)">
54
+ <rect x="0" y="0" rx="4" fill="#EFF6FF" width="35" height="16" />
55
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="12" fill="#2563EB">%{{item.percentage}}</text>
56
+ </g>
57
+ </g>
58
+ </g>
59
+ {{/each}}
60
+ </g>
61
+ <rect x="179" y="0" width="1" height="242" rx="0.25" fill="#FFFFFF" style="filter: drop-shadow(2px 0px 2px rgba(0,0,0, .5));"/>
62
+ </g>
63
+ <g transform="translate(610, 16)">
64
+ <text x="0" dy=".75em" text-anchor="end" font-weight="400" font-size="14" fill="#475569">164</text>
65
+ {{bar 20 246 (object tl=10 tr=10 bl=0 br=0) (toRad 0) fill="#F3F4F6" transform="translate(29, 6)"}}
66
+ {{bar 20 (math 1.5 '*' s2.raw) (object tl=0 tr=0 bl=10 br=10) (toRad 180) fill="#475569" transform="translate(49, 252)" clip-path="url(#bar20x246)"}}
67
+ <g transform="translate(57, 252)">
68
+ <text x="0" y="-{{math 1.5 '*' s2.raw}}" text-anchor="end" font-weight="500" font-size="20" fill="#334155">{{s2.raw}}</text>
69
+ <text x="0" y="-{{math 1.5 '*' s2.raw}}" dy="1em" text-anchor="end" font-weight="400" font-size="12" fill="#475569">%{{s2.percentage}}</text>
70
+ </g>
71
+ <rect x="28" y="252" width="22" height="2" rx="1" fill="#FFFFFF" style="filter: drop-shadow(2px 0px 3px rgba(0,0,0, .5));"/>
72
+ <text transform="rotate(-90, 0, 0) translate(-211, 6)" dy=".75em" text-anchor="start" font-weight="400" font-size="14" fill="#334155">نمره کل</text>
73
+ </g>
74
+ </g>
75
+ </g>
76
+ {{/ layout}}
@@ -0,0 +1,154 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <clipPath id="barxs1me">
4
+ {{bar 144 16 (object tr=4 br=4 bl=0 tl=0) (toRad 0)}}
5
+ </clipPath>
6
+ <linearGradient id="bgxs1me" x1="0%" y1="0%" x2="100%" y2="0%">
7
+ <stop offset="0%" style="stop-color:#99F6E4;stop-opacity:1" />
8
+ <stop offset="100%" style="stop-color:#0D9488;stop-opacity:1" />
9
+ </linearGradient>
10
+
11
+ <clipPath id="barxs1partner">
12
+ {{bar 144 16 (object tr=4 br=4 bl=0 tl=0) (toRad 180)}}
13
+ </clipPath>
14
+ <linearGradient id="bgxs1partner" x1="0%" y1="0%" x2="100%" y2="0%">
15
+ <stop offset="0%" style="stop-color:#FBCFE8;stop-opacity:1" />
16
+ <stop offset="100%" style="stop-color:#DB2777;stop-opacity:1" />
17
+ </linearGradient>
18
+
19
+ <clipPath id="barxs1total">
20
+ {{bar 18 180 (object tr=0 tl=0 br=4 bl=4) (toRad 180)}}
21
+ </clipPath>
22
+
23
+ <clipPath id="barxs2me">
24
+ {{bar 160 16 (object tr=8 br=8 bl=0 tl=0) (toRad 0)}}
25
+ </clipPath>
26
+ <linearGradient id="bgxs2me" x1="0%" y1="0%" x2="100%" y2="0%">
27
+ <stop offset="0%" style="stop-color:#BAE6FD;stop-opacity:1" />
28
+ <stop offset="100%" style="stop-color:#0284C7;stop-opacity:1" />
29
+ </linearGradient>
30
+
31
+ <clipPath id="barxs2partner">
32
+ {{bar 160 16 (object tr=8 br=8 bl=0 tl=0) (toRad 180)}}
33
+ </clipPath>
34
+ <linearGradient id="bgxs2partner" x1="0%" y1="0%" x2="100%" y2="0%">
35
+ <stop offset="0%" style="stop-color:#C7D2FE;stop-opacity:1" />
36
+ <stop offset="100%" style="stop-color:#4F46E5;stop-opacity:1" />
37
+ </linearGradient>
38
+
39
+ </defs>
40
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
41
+ {{bar 828 40 (object tr=0 tl=0 bl=12 br=12) (toRad 0) fill="#F8FAFC" transform="translate(0, 594)"}}
42
+ {{bar 828 634 (object tr=12 tl=12 bl=12 br=12) (toRad 0) stroke="#CBD5E1" fill="none"}}
43
+ <g transform="translate(525, 594)">
44
+ {{bar 25 25 (object tr=8 br=8 bl=8 tl=8) (toRad 0) fill="none" stroke="#E2E8F0" transform="translate(-25, 7.5)"}}
45
+ <text x="-12.5" y="20" dy="0.25em" text-anchor="middle" font-size="14" font-weight="400" fill="#475569">8</text>
46
+ <text x="-33" y="20" dy="0.25em" text-anchor="start" font-size="14" font-weight="400" fill="#4B5563">هماهنگی‌های ویژگی‌های شخصیتی</text>
47
+ </g>
48
+ {{!-- Section 1 --}}
49
+ <g transform="translate(132, 45)">
50
+
51
+ <g transform="translate(0, 36)">
52
+ {{#each s1.items as |item index|}}
53
+ <g transform="translate(0, {{math index '*' 32}})">
54
+ {{!-- Partner --}}
55
+ <g>
56
+ {{bar 144 16 (object tr=4 br=4 bl=0 tl=0) (toRad 180) fill="#F3F4F6" opacity=".8" transform="translate(219, 16)"}}
57
+ {{bar (math 8 '*' item.partner.raw) 16 (object tr=4 br=4 bl=0 tl=0) (toRad 180) fill="url(#bgxs1partner)" opacity=".8" clip-path="url(#barxs1partner)" transform="translate(219, 16)"}}
58
+ <text x="67" y="0" dy="0.85em" text-anchor="start" font-size="16" font-weight="500" fill="#DB2777">{{item.partner.raw}}</text>
59
+ <g transform="translate(0, 0)">
60
+ <rect x="0" y="0" rx="4" fill="#F9FAFB" width="35" height="16" />
61
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="12" fill="#DB2777">%{{item.partner.percentage}}</text>
62
+ </g>
63
+ </g>
64
+ {{!-- Title --}}
65
+ <g transform="translate(220, 0)">
66
+ <text x="62" y="0" dy=".85em" text-anchor="middle" font-size="14" font-weight="400" fill="#4B5563">{{item.title}}</text>
67
+ </g>
68
+ {{!-- Me --}}
69
+ <g transform="translate(344, 0)">
70
+ {{bar 144 16 (object tr=4 br=4 bl=0 tl=0) (toRad 0) fill="#F3F4F6" opacity=".8"}}
71
+ {{bar (math 4 '*' item.me.raw) 16 (object tr=4 br=4 bl=0 tl=0) (toRad 0) fill="url(#bgxs1me)" opacity=".8" clip-path="url(#barxs1me)"}}
72
+ <text x="152" y="0" dy="0.85em" text-anchor="end" font-size="16" font-weight="500" fill="#0D9488">{{item.me.raw}}</text>
73
+ <g transform="translate(184, 0)">
74
+ <rect x="0" y="0" rx="4" fill="#F9FAFB" width="35" height="16" />
75
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="12" fill="#0D9488">%{{item.me.percentage}}</text>
76
+ </g>
77
+ </g>
78
+ </g>
79
+ {{/each}}
80
+ </g>
81
+ <text x="220" y="0" dy="1em" text-anchor="start" font-size="12" font-weight="400" fill="#DB2777">شباهت با همسر آینده‌ام</text>
82
+ <text x="343" y="0" dy="1em" text-anchor="end" font-size="12" font-weight="400" fill="#0D9488">من</text>
83
+ <text x="77" y="0" dy="1em" text-anchor="middle" font-size="12" font-weight="400" fill="#9CA3AF">18</text>
84
+ <line x1="77" x2="77" y1="19" y2="33" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="3 3"/>
85
+ <rect x="219" y="28" width="1" height="160" rx="0.25" fill="#FFFFFF" style="filter: drop-shadow(-1px 0px 2px rgba(0,0,0, .5));"/>
86
+ <text x="488" y="0" dy="1em" text-anchor="middle" font-size="12" font-weight="400" fill="#9CA3AF">36</text>
87
+ <line x1="488" x2="488" y1="19" y2="33" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="3 3"/>
88
+ <rect x="343" y="28" width="1" height="160" rx="0.25" fill="#FFFFFF" style="filter: drop-shadow(1px 0px 2px rgba(0,0,0, .5));"/>
89
+ </g>
90
+ <g transform="translate(728, 45)">
91
+ <text x="0" y="0" dy=".75em" text-anchor="end" font-size="12" font-weight="400" fill="#475569">180</text>
92
+ <text x="47" y="{{math 6 '+' (math 186 '-' s1.me.raw)}}" dy="-.25em" text-anchor="end" font-size="18" font-weight="500" fill="#334155">{{s1.me.raw}}</text>
93
+ <text x="47" y="{{math 6 '+' (math 186 '-' s1.me.raw)}}" dy=".75em" text-anchor="end" font-size="12" font-weight="400" fill="#475569">%{{s1.me.percentage}}</text>
94
+ {{bar 18 180 (object tr=0 tl=0 br=4 bl=4) (toRad 180) fill="#F3F4F6" transform="translate(40, 186)"}}
95
+ {{bar 18 s1.me.raw (object tr=0 tl=0 br=4 bl=4) (toRad 180) fill="#475569" transform="translate(40, 186)" clip-path="url(#barxs1total)"}}
96
+ <rect x="20" y="186" width="22" height="2" rx="1" fill="#FFFFFF" style="filter: drop-shadow(2px 0px 3px rgba(0,0,0, .5));"/>
97
+ <text transform="rotate(-90, 0, 0) translate(-188, 3)" dy=".75em" text-anchor="end" font-weight="400" font-size="14" fill="#334155">نمره کل</text>
98
+ </g>
99
+ <g transform="translate(21, 45)">
100
+ <text x="64" y="0" dy=".75em" text-anchor="end" font-size="12" font-weight="400" fill="#57534E">90</text>
101
+ <text x="35" y="{{math 6 '+' (math 186 '-' (math s1.partner.raw '*' 2))}}" dy="-.25em" text-anchor="start" font-size="18" font-weight="500" fill="#44403C">{{s1.partner.raw}}</text>
102
+ <text x="35" y="{{math 6 '+' (math 186 '-' (math s1.partner.raw '*' 2))}}" dy=".75em" text-anchor="start" font-size="12" font-weight="400" fill="#57534E">%{{s1.partner.percentage}}</text>
103
+ {{bar 18 180 (object tr=0 tl=0 br=4 bl=4) (toRad 180) fill="#F5F5F4" transform="translate(60, 186)"}}
104
+ {{bar 18 (math s1.partner.raw '*' 2) (object tr=0 tl=0 br=4 bl=4) (toRad 180) fill="#57534E" transform="translate(60, 186)" clip-path="url(#barxs1total)"}}
105
+ <rect x="40" y="186" width="22" height="2" rx="1" fill="#FFFFFF" style="filter: drop-shadow(2px 0px 3px rgba(0,0,0, .5));"/>
106
+ <text transform="rotate(-90, 0, 0) translate(-188, 64)" dy=".75em" text-anchor="end" font-weight="400" font-size="14" fill="#44403C">نمره کل</text>
107
+ </g>
108
+ <text x="749" y="285" dy="-.25em" text-anchor="end" font-size="14" font-weight="400" fill="#9CA3AF">بخش اول</text>
109
+ <line x1="12" y1="297" y2="297" x2="816" stroke="#CBD5E1" stroke-linecap="round" stroke-dasharray="6 6"/>
110
+ <text x="20" y="309" dy=".75em" text-anchor="end" font-size="14" font-weight="400" fill="#9CA3AF">بخش دوم</text>
111
+ {{!-- Section 2 --}}
112
+ <g transform="translate(85, 361)">
113
+ {{!-- <rect width="658" height="188" opacity=".1" /> --}}
114
+ <g transform="translate(0, 36)">
115
+ {{#each s2.items as |item index|}}
116
+ <g transform="translate(0, {{math index '*' 32}})">
117
+ {{!-- Partner --}}
118
+ <g>
119
+ {{bar 160 16 (object tr=8 br=8 bl=0 tl=0) (toRad 180) fill="#F3F4F6" opacity=".8" transform="translate(235, 16)"}}
120
+ {{bar (math 8 '*' item.partner.raw) 16 (object tr=8 br=8 bl=0 tl=0) (toRad 180) fill="url(#bgxs2partner)" opacity=".8" clip-path="url(#barxs2partner)" transform="translate(235, 16)"}}
121
+ <text x="67" y="0" dy="0.85em" text-anchor="start" font-size="16" font-weight="500" fill="#52525B">{{item.partner.raw}}</text>
122
+ <g transform="translate(0, 0)">
123
+ <rect x="0" y="0" rx="4" fill="#F9FAFB" width="35" height="16" />
124
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="12" fill="#52525B">%{{item.partner.percentage}}</text>
125
+ </g>
126
+ </g>
127
+ {{!-- Title --}}
128
+ <g transform="translate(236, 0)">
129
+ <text x="93" y="0" dy=".85em" text-anchor="middle" font-size="14" font-weight="400" fill="#4B5563">{{item.title}}</text>
130
+ </g>
131
+ {{!-- Me --}}
132
+ <g transform="translate(422, 0)">
133
+ {{bar 160 16 (object tr=8 br=8 bl=0 tl=0) (toRad 0) fill="#F3F4F6" opacity=".8"}}
134
+ {{bar (math 8 '*' item.me.raw) 16 (object tr=8 br=8 bl=0 tl=0) (toRad 0) fill="url(#bgxs2me)" opacity=".8" clip-path="url(#barxs2me)"}}
135
+ <text x="168" y="0" dy="0.85em" text-anchor="end" font-size="16" font-weight="500" fill="#0284C7">{{item.me.raw}}</text>
136
+ <g transform="translate(200, 0)">
137
+ <rect x="0" y="0" rx="4" fill="#F9FAFB" width="35" height="16" />
138
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="12" fill="#0284C7">%{{item.me.percentage}}</text>
139
+ </g>
140
+ </g>
141
+ </g>
142
+ {{/each}}
143
+ </g>
144
+ <text x="236" y="0" dy="1em" text-anchor="start" font-size="12" font-weight="400" fill="#52525B">همسر آینده‌م</text>
145
+ <text x="421" y="0" dy="1em" text-anchor="end" font-size="12" font-weight="400" fill="#0284C7">من</text>
146
+ <text x="75" y="0" dy="1em" text-anchor="middle" font-size="12" font-weight="400" fill="#9CA3AF">20</text>
147
+ <line x1="75" x2="75" y1="19" y2="33" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="3 3"/>
148
+ <rect x="235" y="28" width="1" height="160" rx="0.25" fill="#FFFFFF" style="filter: drop-shadow(-1px 0px 2px rgba(0,0,0, .5));"/>
149
+ <text x="582" y="0" dy="1em" text-anchor="middle" font-size="12" font-weight="400" fill="#9CA3AF">20</text>
150
+ <line x1="582" x2="582" y1="19" y2="33" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="3 3"/>
151
+ <rect x="421" y="28" width="1" height="160" rx="0.25" fill="#FFFFFF" style="filter: drop-shadow(1px 0px 2px rgba(0,0,0, .5));"/>
152
+ </g>
153
+ </g>
154
+ {{/ layout}}
@@ -0,0 +1,88 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <clipPath id="bar300x16">
4
+ {{bar 400 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0)}}
5
+ </clipPath>
6
+ {{#each colors}}
7
+ <linearGradient id="barx{{@index}}" x1="0%" y1="0%" x2="100%" y2="0%">
8
+ <stop offset="0%" style="stop-color:{{start}};stop-opacity:1" />
9
+ <stop offset="100%" style="stop-color:{{end}};stop-opacity:1" />
10
+ </linearGradient>
11
+ {{/each}}
12
+ </defs>
13
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
14
+ {{!-- <rect width="780" height="506" opacity=".1" /> --}}
15
+ <g transform="translate(0, 61)">
16
+ {{#each items as |item index|}}
17
+ <g transform="translate(0, {{math 32 '*' index}})">
18
+ {{!-- <rect width="400" height="16" opacity=".1" /> --}}
19
+ <text x="180" y="0" dy="1em" text-anchor="middle" font-weight="{{ternary (boolean item.params.level '>' 0) '600' '400'}}" font-size="13" fill="{{ternary (boolean item.params.level '>' 0) item.params.col '#4B5563'}}">{{item.en}}</text>
20
+ <text x="150" y="0" dy="1em" text-anchor="middle" font-weight="{{ternary (boolean item.params.level '>' 0) '600' '400'}}" font-size="13" fill="{{ternary (boolean item.params.level '>' 0) item.params.col '#4B5563'}}">-</text>
21
+ <text x="137" y="0" dy=".9em" text-anchor="start" font-weight="{{ternary (boolean item.params.level '>' 0) '600' '400'}}" font-size="13" fill="{{ternary (boolean item.params.level '>' 0) item.params.col '#4B5563'}}">{{item.title}}</text>
22
+ {{bar 400 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.params.background transform="translate(205, 0)"}}
23
+ <g transform="translate(609, 0)">
24
+ <rect width="26" height="16" fill="{{item.params.background}}" rx="2" />
25
+ <text x="13" dy=".9em" text-anchor="middle" font-weight="400" font-size="13" fill="{{ternary (boolean item.params.level '>' 0) item.params.col '#4B5563'}}">{{item.raw}}</text>
26
+ </g>
27
+ </g>
28
+ {{/each}}
29
+ <g transform="translate(0, -61)">
30
+ <text x="254.5" dy=".9em" y="24.5" text-anchor="middle" font-weight="500" font-size="13" fill="#65A30D">سالم</text>
31
+ <text x="304" dy=".9em" text-anchor="middle" font-weight="400" font-size="12" fill="#9CA3AF">1</text>
32
+ <line x1="304" y1="25.5" x2="304" y2="373.5" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
33
+
34
+ <text x="378.5" dy=".9em" y="24.5" text-anchor="middle" font-weight="500" font-size="13" fill="#EAB308">احتمال اختلال</text>
35
+ <text x="454" dy=".9em" text-anchor="middle" font-weight="400" font-size="12" fill="#9CA3AF">2.5</text>
36
+ <line x1="454" y1="25.5" x2="454" y2="373.5" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
37
+
38
+ <text x="479.5" dy=".9em" y="24.5" text-anchor="middle" font-weight="500" font-size="13" fill="#EA580C">اختلال</text>
39
+ <text x="504" dy=".9em" text-anchor="middle" font-weight="400" font-size="12" fill="#9CA3AF">3</text>
40
+ <line x1="504" y1="25.5" x2="504" y2="373.5" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
41
+
42
+ <text x="550.5" dy=".9em" y="24.5" text-anchor="middle" font-weight="500" font-size="13" fill="#E11D48">اختلال جدی</text>
43
+ <text x="604" dy=".9em" text-anchor="middle" font-weight="400" font-size="12" fill="#9CA3AF">4</text>
44
+ <line x1="604" y1="25.5" x2="604" y2="373.5" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
45
+ </g>
46
+ {{#each items as |item index|}}
47
+ <g transform="translate(0, {{math 32 '*' index}})">
48
+ {{bar (math item.mean '*' 100) 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=item.params.gr transform="translate(205, 0)" clipPath="url(#bar300x16)"}}
49
+ <text x="{{math (math item.mean '*' 100) '+' (ternary (boolean item.params.level '>' 0) 199 211)}}" dy=".85em" text-anchor="{{ternary (boolean item.params.level '>' 0) 'start' 'end'}}" font-weight="500" font-size="16" fill="{{ternary (boolean item.params.level '>' 0) '#FFFFFF' item.params.col}}">{{item.mean}}</text>
50
+ </g>
51
+ {{/each}}
52
+ </g>
53
+ <rect x="204" y="25.5" width="1" height="348" rx="0.25" fill="#FFFFFF" stroke-linecap="round" style="filter: drop-shadow(2px 0px 2px rgba(0,0,0, .5));"/>
54
+
55
+ <g transform="translate(704, 5.5)">
56
+ <text x="0" dy=".75em" text-anchor="end" font-weight="400" font-size="12" fill="#475569">360</text>
57
+ <text x="49" y="{{math 6 '+' (math 360 '-' total)}}" dy=".25em" text-anchor="end" font-weight="500" font-size="18" fill="#334155">{{total}}</text>
58
+ {{bar 18 360 (object tr=0 br=2 bl=2 tl=0) (toRad 180) transform="translate(43, 366)" fill="#F8FAFC"}}
59
+ {{bar 18 total (object tr=0 br=2 bl=2 tl=0) (toRad 180) transform="translate(43, 366)" fill="#475569"}}
60
+ <rect x="24" y="366" width="20" height="2" rx="1" fill="#FFFFFF" style="filter: drop-shadow(2px 0px 3px rgba(0,0,0, .5));"/>
61
+ <text transform="rotate(-90, 0, 0) translate(-368, 6)" dy=".75em" text-anchor="end" font-weight="400" font-size="12" fill="#475569">نمره کل</text>
62
+ </g>
63
+ <g transform="translate(74, 438)">
64
+ <g>
65
+ <path d="M 2 0 l 66 0 l -8 14 l 8 14 l -66 0 a 2 2 0 0 1 -2 -2 l 0 -24 a 2 2 0 0 1 2 -2 z m 308 0 a 2 2 0 0 1 2 2 l 0 24 a 2 2 0 0 1 -2 2 l -238 0 l -8 -14 l 8 -14 Z" fill="#0891B2" />
66
+ <text x="34" y="14" dy=".35em" text-anchor="middle" font-weight="500" font-size="14" fill="#ffffff">{{gsi}}</text>
67
+ <rect x="268" y="4" width="40" height="20" rx="2" fill="#FFFFFF" />
68
+ <text x="288" y="14" dy=".4em" text-anchor="middle" font-weight="400" font-size="13" fill="#0891B2">GSI</text>
69
+ <text x="260" y="14" dy=".25em" text-anchor="start" font-weight="400" font-size="13" fill="#ffffff">شاخص شدت کلی</text>
70
+ </g>
71
+ <g transform="translate(324, 0)">
72
+ <path d="M 2 0 l 66 0 l -8 14 l 8 14 l -66 0 a 2 2 0 0 1 -2 -2 l 0 -24 a 2 2 0 0 1 2 -2 z m 308 0 a 2 2 0 0 1 2 2 l 0 24 a 2 2 0 0 1 -2 2 l -238 0 l -8 -14 l 8 -14 Z" fill="#0891B2" />
73
+ <text x="34" y="14" dy=".35em" text-anchor="middle" font-weight="500" font-size="14" fill="#ffffff">{{psdi}}</text>
74
+ <rect x="268" y="4" width="40" height="20" rx="2" fill="#FFFFFF" />
75
+ <text x="288" y="14" dy=".4em" text-anchor="middle" font-weight="400" font-size="13" fill="#0891B2">PSDI</text>
76
+ <text x="260" y="14" dy=".25em" text-anchor="start" font-weight="400" font-size="13" fill="#ffffff">شاخص ناراحتی نشانه‌های مثبت</text>
77
+ </g>
78
+ <g transform="translate(162, 40)">
79
+ <path d="M 2 0 l 66 0 l -8 14 l 8 14 l -66 0 a 2 2 0 0 1 -2 -2 l 0 -24 a 2 2 0 0 1 2 -2 z m 308 0 a 2 2 0 0 1 2 2 l 0 24 a 2 2 0 0 1 -2 2 l -238 0 l -8 -14 l 8 -14 Z" fill="#0891B2" />
80
+ <text x="34" y="14" dy=".35em" text-anchor="middle" font-weight="500" font-size="14" fill="#ffffff">{{pst}}</text>
81
+ <rect x="268" y="4" width="40" height="20" rx="2" fill="#FFFFFF" />
82
+ <text x="288" y="14" dy=".4em" text-anchor="middle" font-weight="400" font-size="13" fill="#0891B2">PST</text>
83
+ <text x="260" y="14" dy=".25em" text-anchor="start" font-weight="400" font-size="13" fill="#ffffff">جمع نشانه‌های مثبت</text>
84
+ </g>
85
+ </g>
86
+ </g>
87
+
88
+ {{/layout}}
@@ -0,0 +1,86 @@
1
+ {{#> layout}}
2
+ <defs>
3
+ <clipPath id="bar300x16">
4
+ {{bar 300 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0)}}
5
+ </clipPath>
6
+ <linearGradient id="normal" x1="0%" y1="0%" x2="100%" y2="0%">
7
+ <stop offset="0%" style="stop-color:#A5B4FC;stop-opacity:1" />
8
+ <stop offset="100%" style="stop-color:#6366F1;stop-opacity:1" />
9
+ </linearGradient>
10
+
11
+ <linearGradient id="critical" x1="0%" y1="0%" x2="100%" y2="0%">
12
+ <stop offset="0%" style="stop-color:#FDA4AF;stop-opacity:1" />
13
+ <stop offset="100%" style="stop-color:#E11D48;stop-opacity:1" />
14
+ </linearGradient>
15
+ </defs>
16
+
17
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
18
+ <g transform="translate(0,41)">
19
+ {{#each items as |item index|}}
20
+ <g transform="translate(0,{{math 32 '*' index}})">
21
+ {{!-- <rect height="16" width="148" transform="translate(88,0)" opacity=".1" />
22
+ <rect height="16" width="32" transform="translate(204,0)" opacity=".1" />
23
+ <rect height="16" width="5" transform="translate(191,0)" opacity=".1" />
24
+ <rect height="16" width="50" transform="translate(133,0)" opacity=".1" /> --}}
25
+ <text x="181" y="0" text-anchor="start" dy=".85em" font-size="13" font-weight="{{ternary item.warn '700' '400'}}" fill="{{ternary item.warn (ternary item.is_critical '#E11D48' '#1F2937') '#4B5563'}}">{{item.label.fr}}</text>
26
+ <text x="191" y="0" text-anchor="end" dy=".9em" font-size="13" font-weight="{{ternary item.warn '700' '400'}}" fill="{{ternary item.warn (ternary item.is_critical '#E11D48' '#1F2937') '#4B5563'}}">-</text>
27
+ <text x="220" y="0" text-anchor="middle" dy="1em" font-size="13" font-weight="{{ternary item.warn '700' '400'}}" fill="{{ternary item.warn (ternary item.is_critical '#E11D48' '#1F2937') '#4B5563'}}">{{item.up}}</text>
28
+ {{bar 300 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=(ternary is_critical "#FFF1F2" "#EEF2FF") transform="translate(241,0)"}}
29
+ <g transform="translate(544, 0)">
30
+ <rect x="0" y="0" rx="4" fill="{{ternary is_critical '#FFF1F2' '#F9FAFB'}}" width="35" height="16" />
31
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="12" fill="{{ternary is_critical '#E11D48' '#4F46E5'}}">%{{item.percentage}}</text>
32
+ </g>
33
+ <g transform="translate(606, 0)">
34
+ {{#if item.a5}}
35
+ <line x1="{{item.a5_line.[0]}}" x2="{{item.a5_line.[1]}}" y1="8" y2="8" stroke="#D1D5DB" />
36
+ <g transform="translate(0, 0)">
37
+ <rect x="0" y="0" rx="4" fill="#E11D48" width="35" height="16" />
38
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#FFFFFF">گ5</text>
39
+ </g>
40
+ {{#each item.a5 as |aItem aIndex|}}
41
+ <g transform="translate({{aItem.start}}, 0)">
42
+ <rect x="0" y="0" rx="4" fill="#FFF1F2" width="24" height="16" />
43
+ <text x="12" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#E11D48">{{aItem.item}}</text>
44
+ </g>
45
+ {{/each}}
46
+ {{/if}}
47
+
48
+ {{#if item.a6}}
49
+ <line x1="{{item.a6_line.[0]}}" x2="{{item.a6_line.[1]}}" y1="8" y2="8" stroke="#D1D5DB" />
50
+ <g transform="translate({{item.a6_start}}, 0)">
51
+ <rect x="0" y="0" rx="4" fill="#BE123C" width="35" height="16" />
52
+ <text x="17.5" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#FFFFFF">گ6</text>
53
+ </g>
54
+ {{#each item.a6 as |aItem aIndex|}}
55
+ <g transform="translate({{aItem.start}}, 0)">
56
+ <rect x="0" y="0" rx="4" fill="#FFE4E6" width="24" height="16" />
57
+ <text x="12" y="9" dy="0.25em" text-anchor="middle" font-weight="400" font-size="13" fill="#BE123C">{{aItem.item}}</text>
58
+ </g>
59
+ {{/each}}
60
+ {{/if}}
61
+ </g>
62
+ </g>
63
+ {{/each}}
64
+ <text x="291" y="-42" text-anchor="middle" dy="1em" font-size="12" font-weight="400" fill="#9CA3AF">5</text>
65
+ <line x1="291" y1="-16" x2="291" y2="568" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
66
+ <text x="341" y="-42" text-anchor="middle" dy="1em" font-size="12" font-weight="400" fill="#9CA3AF">10</text>
67
+ <line x1="341" y1="-16" x2="341" y2="568" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
68
+ <text x="391" y="-42" text-anchor="middle" dy="1em" font-size="12" font-weight="500" fill="#6B7280">15</text>
69
+ <line x1="391" y1="-16" x2="391" y2="568" stroke="#6B7280"/>
70
+ <text x="441" y="-42" text-anchor="middle" dy="1em" font-size="12" font-weight="400" fill="#9CA3AF">20</text>
71
+ <line x1="441" y1="-16" x2="441" y2="568" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
72
+ <text x="491" y="-42" text-anchor="middle" dy="1em" font-size="12" font-weight="400" fill="#9CA3AF">25</text>
73
+ <line x1="491" y1="-16" x2="491" y2="568" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
74
+ <text x="541" y="-42" text-anchor="middle" dy="1em" font-size="12" font-weight="400" fill="#9CA3AF">30</text>
75
+ <line x1="541" y1="-16" x2="541" y2="568" stroke="#E5E7EB" stroke-linecap="round" stroke-dasharray="6 6"/>
76
+ {{#each items as |item index|}}
77
+ <g transform="translate(0,{{math 32 '*' index}})">
78
+ {{bar (math item.mark '*' 10) 16 (object tr=2 br=2 bl=0 tl=0) (toRad 0) fill=fill transform="translate(241,0)"}}
79
+ <text x="{{math (math item.mark '*' 10) '+' 235}}" y="0" text-anchor="start" dy=".85em" font-size="16" font-weight="500" fill="#FFFFFF">{{item.mark}}</text>
80
+ </g>
81
+ {{/each}}
82
+ </g>
83
+ <rect x="240" y="25" width="1" height="584" rx="0.25" fill="#FFFFFF" stroke-linecap="round" style="filter: drop-shadow(1px 0px 3px rgba(0,0,0, 1));"/>
84
+ </g>
85
+
86
+ {{/layout}}
@@ -25,7 +25,7 @@
25
25
  dy="4">
26
26
  {{concat info.title (ternary titleAppend titleAppend '')}}
27
27
  </text>
28
- <a href="http://risloo.ir" target="_blank" fill="white">
28
+ <a href="https://{{iENV.domain}}" target="_blank" fill="white">
29
29
  <text
30
30
  class="eng-font"
31
31
  x="0"
@@ -35,7 +35,7 @@
35
35
  text-anchor="end"
36
36
  letter-spacing="2"
37
37
  dy="5">
38
- RISLOO.IR
38
+ {{iENV.domainUC}}
39
39
  </text>
40
40
  </a>
41
41
  </g>