@baravak/risloo-profile-cli 4.2.5 → 4.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/samples/JPFQ93.js
CHANGED
|
@@ -67,7 +67,10 @@ class JPFQ93 extends Profile {
|
|
|
67
67
|
// },
|
|
68
68
|
// }));
|
|
69
69
|
// markSum = 378
|
|
70
|
-
|
|
70
|
+
this.dataset.score.forEach((f, i) => {
|
|
71
|
+
this.dataset.score[i].label.percentage = Math.round(((this.dataset.score[i].mark * 100) / this.dataset.score[i].label.width))
|
|
72
|
+
})
|
|
73
|
+
return [{ markSum }];
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
<g transform="translate(0, {{math 5 '+' ( math 51 '*' @key )}})">
|
|
3
3
|
<text y="0" x="169" text-anchor="start" font-size="24px" font-weight="400" dy="24px" fill="#3F3F46">{{label.fr}}</text>
|
|
4
4
|
<g transform="translate(186, 0)">
|
|
5
|
-
{{bar (math label.width '*'
|
|
6
|
-
{{bar (math mark '*'
|
|
7
|
-
<text y="17" x="{{math (math label.width '*'
|
|
8
|
-
<tspan fill="{{label.fill}}" font-size="
|
|
5
|
+
{{bar (math label.width '*' 3.5) 30 (object tl=0 tr=15 bl=0 br=15) (toRad 0) fill=label.background opacity='.8'}}
|
|
6
|
+
{{bar (math mark '*' 3.5) 30 (object tl=0 tr=15 bl=0 br=15) (toRad 0) fill=label.fill opacity='.8'}}
|
|
7
|
+
<text y="17" x="{{math (math label.width '*' 3.5) '+' 8 }}" dy="6px" text-anchor="start" direction="ltr">
|
|
8
|
+
<tspan fill="{{label.fill}}" font-size="27px" font-weight="500">
|
|
9
9
|
{{mark}}
|
|
10
10
|
</tspan>
|
|
11
|
-
<tspan font-size="
|
|
12
|
-
</text>
|
|
11
|
+
<tspan font-size="20px" fill="#71717A" font-weight="400">/ {{label.width}}</tspan>
|
|
12
|
+
</text>
|
|
13
|
+
<g transform="translate({{math 95 '+' (math label.width '*' 3.5)}}, 4)">
|
|
14
|
+
<rect x="0" y="0" rx="4" fill="#F8FAFC" width="50" height="25" />
|
|
15
|
+
<text x="25" y="12.5" dy="0.25em" text-anchor="middle" font-weight="400" font-size="20px" fill="{{label.fill}}">%{{label.percentage}}</text>
|
|
16
|
+
</g>
|
|
13
17
|
</g>
|
|
14
18
|
</g>
|
|
15
19
|
{{/each}}
|