@baravak/risloo-profile-cli 4.40.3 → 4.43.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 +1 -1
- package/src/handlebars/helpers/lineWrap.js +41 -18
- package/src/publish/json/profiles/YMQ93.json +1278 -0
- package/src/samples/YMQ93.js +272 -0
- package/views/profiles/samples/YMQ93_1.hbs +134 -0
- package/views/profiles/samples/YMQ93_2.hbs +133 -0
- package/views/profiles/samples/YMQ93_3.hbs +132 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{{#> layout}}
|
|
2
|
+
<defs>
|
|
3
|
+
<filter id="li" x="0" y="0" width="7" height="306" 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_4717_119118"/>
|
|
11
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4717_119118" result="shape"/>
|
|
12
|
+
</filter>
|
|
13
|
+
{{#each colors as | color key | }}
|
|
14
|
+
<linearGradient id="{{key}}L" y1="10" y2="10">
|
|
15
|
+
<stop stop-color="{{color.[2]}}"/>
|
|
16
|
+
<stop offset="1" stop-color="{{color.[3]}}" opacity="0.5"/>
|
|
17
|
+
</linearGradient>
|
|
18
|
+
<linearGradient id="{{key}}R" y1="10" y2="10">
|
|
19
|
+
<stop stop-color="{{color.[3]}}" opacity="0.5" />
|
|
20
|
+
<stop offset="1" stop-color="{{color.[2]}}"/>
|
|
21
|
+
</linearGradient>
|
|
22
|
+
<linearGradient id="{{key}}I" x1="32.5" y1="9" x2="0.5" y2="9" gradientUnits="userSpaceOnUse">
|
|
23
|
+
<stop stop-color="{{color.[3]}}" stop-opacity="0.5"/>
|
|
24
|
+
<stop offset="0.5" stop-color="{{color.[2]}}"/>
|
|
25
|
+
<stop offset="1" stop-color="{{color.[3]}}" stop-opacity="0.5"/>
|
|
26
|
+
</linearGradient>
|
|
27
|
+
{{/each}}
|
|
28
|
+
</defs>
|
|
29
|
+
<g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
|
|
30
|
+
<g transform="translate(0, 160)">
|
|
31
|
+
<text x="48.5" y="1" text-anchor="middle" dy=".85em" font-size="12" font-weight="400" fill="#94A3B8">
|
|
32
|
+
<tspan>
|
|
33
|
+
انحراف
|
|
34
|
+
</tspan>
|
|
35
|
+
<tspan x="48.5" dy="1em">
|
|
36
|
+
معیار
|
|
37
|
+
</tspan>
|
|
38
|
+
</text>
|
|
39
|
+
<text x="104" y="7" text-anchor="middle" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">میانگین</text>
|
|
40
|
+
<text x="866" y="7" text-anchor="middle" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">نمره خام</text>
|
|
41
|
+
<path d="M 838 3.5 v 7 m 0 0 l 3 -3 m -3 3 l -3 -3" stroke="#94A3B8" stroke-width="0.75" stroke-linecap="round" stroke-linejoin="round"/>
|
|
42
|
+
<rect y="121" width="899" height="100" fill="#F8FAFC" rx="12" />
|
|
43
|
+
<text x="322" y="7" text-anchor="middle" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">1</text>
|
|
44
|
+
<line x1="321.5" y1="20.5" x2="321.5" y2="320" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
|
|
45
|
+
|
|
46
|
+
<text x="422" y="7" text-anchor="middle" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">2</text>
|
|
47
|
+
<line x1="421.5" y1="20.5" x2="421.5" y2="320" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
|
|
48
|
+
|
|
49
|
+
<text x="522" y="7" text-anchor="middle" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">3</text>
|
|
50
|
+
<line x1="521.5" y1="20.5" x2="521.5" y2="320" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
|
|
51
|
+
|
|
52
|
+
<text x="622" y="7" text-anchor="middle" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">4</text>
|
|
53
|
+
<line x1="621.5" y1="20.5" x2="621.5" y2="320" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
|
|
54
|
+
|
|
55
|
+
<text x="722" y="7" text-anchor="middle" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">5</text>
|
|
56
|
+
<line x1="721.5" y1="20.5" x2="721.5" y2="320" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
|
|
57
|
+
|
|
58
|
+
<text x="822" y="7" text-anchor="start" dy="0.3em" font-size="12" font-weight="400" fill="#94A3B8">6</text>
|
|
59
|
+
<line x1="821.5" y1="20.5" x2="821.5" y2="320" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="6 6"/>
|
|
60
|
+
<g transform="translate(0, 21)">
|
|
61
|
+
{{#each items as | item index |}}
|
|
62
|
+
<g transform="translate(0, {{math index '*' 100}})">
|
|
63
|
+
<g transform="translate(24, 16)">
|
|
64
|
+
{{#each label.norms as | norm ni |}}
|
|
65
|
+
<g transform="translate(0, {{math 24 '*' ni}})">
|
|
66
|
+
<rect width="48" height="20" fill="url(#{{norm.key}}R)" rx="4" />
|
|
67
|
+
<text x="24" y="10" text-anchor="middle" dy="0.3em" font-size="13" font-weight="400" fill="{{norm.colors.[1]}}">{{norm.sdText}}</text>
|
|
68
|
+
|
|
69
|
+
<rect x="56" width="48" height="20" fill="url(#{{norm.key}}L)" rx="4" />
|
|
70
|
+
<text x="80" y="10" text-anchor="middle" dy="0.3em" font-size="13" font-weight="400" fill="{{norm.colors.[1]}}">{{norm.meanText}}</text>
|
|
71
|
+
</g>
|
|
72
|
+
{{/each}}
|
|
73
|
+
</g>
|
|
74
|
+
<g transform="translate(312, 36)">
|
|
75
|
+
<rect width="510" height="28" fill="#E2E8F0" opacity=".75" />
|
|
76
|
+
{{bar (math 10 '+' (math (math item.mean '-1') '*' 100)) 28 (object tr=2 br=2 tl=0 bl=0) (toRad 0) fill="#475569"}}
|
|
77
|
+
<text x="{{math 10 '+' (math (math item.mean '-1') '*' 100)}}" y="-13" text-anchor="middle" dy="0.3em" font-size="16" font-weight="600" fill="{{norm.colors.[1]}}">{{meanText}}</text>
|
|
78
|
+
<text x="-9" y="14" text-anchor="start" dy="0.3em" font-size="13" font-weight="400" fill="#475569">{{label.short}}</text>
|
|
79
|
+
<text x="-35" y="14" text-anchor="start" dy="0.3em" font-size="13" font-weight="400" fill="#475569">-</text>
|
|
80
|
+
<text x="-46" y="14" text-anchor="start" dy="0.3em" font-size="13" font-weight="400" fill="#475569">{{label.fa}}</text>
|
|
81
|
+
<text x="522" y="14" text-anchor="start" dy="0.3em" font-size="12" font-weight="300" fill="#64748B" direction="ltr">
|
|
82
|
+
<tspan font-size="18" font-weight="600" fill="#1E293B">{{mark}}</tspan>
|
|
83
|
+
<tspan>/</tspan>
|
|
84
|
+
<tspan font-size="13" font-weight="400">{{label.max}}</tspan>
|
|
85
|
+
</text>
|
|
86
|
+
<g transform="translate(0, 3)">
|
|
87
|
+
{{#each label.norms as | norm ni |}}
|
|
88
|
+
<g transform="translate({{norm.pixels.start}}, {{math 8 '*' ni}})">
|
|
89
|
+
<rect width="2" height="6" fill="{{norm.colors.[0]}}" />
|
|
90
|
+
<rect y="2" width="{{norm.pixels.width}}" height="2" fill="{{norm.colors.[0]}}" />
|
|
91
|
+
<circle cx="{{math (math norm.pixels.width '/' 2) '-' 3}}" cy="3" r="3" fill="{{norm.colors.[0]}}" />
|
|
92
|
+
<rect x="{{math norm.pixels.width '-' 2}}" width="2" height="6" fill="{{norm.colors.[0]}}" />
|
|
93
|
+
</g>
|
|
94
|
+
{{/each}}
|
|
95
|
+
</g>
|
|
96
|
+
</g>
|
|
97
|
+
</g>
|
|
98
|
+
{{/each}}
|
|
99
|
+
</g>
|
|
100
|
+
<g transform="translate(309, 17.5)" opacity="0.5" filter="url(#li)">
|
|
101
|
+
<line x1="2.5" y1="3.5" x2="2.5" y2="302.5" stroke="white" stroke-linecap="round"/>
|
|
102
|
+
</g>
|
|
103
|
+
</g>
|
|
104
|
+
<g transform="translate(164, 650)">
|
|
105
|
+
<rect width="571" height="32" fill="none" stroke="#E2E8F0" rx="16" />
|
|
106
|
+
<g transform="translate(167, 7)">
|
|
107
|
+
<rect width="32" height="18" fill="url(#personalityI)" />
|
|
108
|
+
<rect y="6" width="2" height="6" fill="{{colors.personality.[0]}}" />
|
|
109
|
+
<rect x="0" y="8" width="32" height="2" fill="{{colors.personality.[0]}}" />
|
|
110
|
+
<circle r="3" cx="16" cy="9" fill="{{colors.personality.[0]}}" />
|
|
111
|
+
<rect x="30" y="6" width="2" height="6" fill="{{colors.personality.[0]}}" />
|
|
112
|
+
<text x="-6" y="9" text-anchor="start" dy="0.3em" font-size="11" font-weight="400" fill="#57534E">هنجار گروه اختلالات شخصیت</text>
|
|
113
|
+
</g>
|
|
114
|
+
<g transform="translate(359, 7)">
|
|
115
|
+
<rect width="32" height="18" fill="url(#clinicalI)" />
|
|
116
|
+
<rect y="6" width="2" height="6" fill="{{colors.clinical.[0]}}" />
|
|
117
|
+
<rect x="0" y="8" width="32" height="2" fill="{{colors.clinical.[0]}}" />
|
|
118
|
+
<circle r="3" cx="16" cy="9" fill="{{colors.clinical.[0]}}" />
|
|
119
|
+
<rect x="30" y="6" width="2" height="6" fill="{{colors.clinical.[0]}}" />
|
|
120
|
+
<text x="-6" y="9" text-anchor="start" dy="0.3em" font-size="11" font-weight="400" fill="#57534E">هنجار گروه اختلالات بالینی</text>
|
|
121
|
+
</g>
|
|
122
|
+
<g transform="translate(507, 7)">
|
|
123
|
+
<rect width="32" height="18" fill="url(#baselineI)" />
|
|
124
|
+
<rect y="6" width="2" height="6" fill="{{colors.baseline.[0]}}" />
|
|
125
|
+
<rect x="0" y="8" width="32" height="2" fill="{{colors.baseline.[0]}}" />
|
|
126
|
+
<circle r="3" cx="16" cy="9" fill="{{colors.baseline.[0]}}" />
|
|
127
|
+
<rect x="30" y="6" width="2" height="6" fill="{{colors.baseline.[0]}}" />
|
|
128
|
+
<text x="-6" y="9" text-anchor="start" dy="0.3em" font-size="11" font-weight="400" fill="#57534E">هنجار گروه سالم</text>
|
|
129
|
+
</g>
|
|
130
|
+
</g>
|
|
131
|
+
</g>
|
|
132
|
+
{{/layout}}
|