@baravak/risloo-profile-cli 4.36.0 → 4.38.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.36.0",
3
+ "version": "4.38.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": {
@@ -91,9 +91,9 @@ class CAATS93 extends Profile {
91
91
  interprets: [
92
92
  { level: 0, title: "بسیارپایین" },
93
93
  { level: 1, title: "مرزی" },
94
- { level: 2, title: "متوسط پایین" },
95
- { level: 3, title: "متوسط (بهنجار)" },
96
- { level: 4, title: "متوسط بالا" },
94
+ { level: 2, title: "متوسط\nپایین" },
95
+ { level: 3, title: "متوسط\n(بهنجار)" },
96
+ { level: 4, title: "متوسط\nبالا" },
97
97
  { level: 5, title: "سرآمد" },
98
98
  { level: 6, title: "خیلی سرآمد" },
99
99
  ],
@@ -61,11 +61,12 @@ class Raven93 extends Profile {
61
61
  const {
62
62
  dataset,
63
63
  } = this;
64
+ console.log(dataset.score)
64
65
  const report = dataset.score[3]
65
66
  const iq = dataset.score[1].mark?.toString().replace(/[<>]/, '')
66
67
  const iqText = dataset.score[1].mark ?? 0
67
- const raw = dataset.score[2].mark ?? 0
68
- const percentile = dataset.score[3].mark ?? 0
68
+ const raw = dataset.score[0].mark ?? 0
69
+ const percentile = dataset.score[2].mark ?? 0
69
70
  levels[report.mark].selected = true
70
71
  const selected = levels[report.mark]
71
72
  const questions = []
@@ -137,7 +137,7 @@
137
137
  <text x="27" y="233" text-anchor="middle" font-size="20" font-weight="700" fill="#FFFFFF">{{iqText}}</text>
138
138
  <text x="-7" y="227" text-anchor="start" font-size="14" font-weight="500" fill="#334155">{{raw}}</text>
139
139
  <text x="-7" y="237" text-anchor="start" font-size="12" font-weight="400" fill="#64748B">نمره خام</text>
140
- <text x="62" y="227" text-anchor="end" font-size="14" font-weight="500" fill="#334155">{{raw}}</text>
140
+ <text x="62" y="227" text-anchor="end" font-size="14" font-weight="500" fill="#334155">{{percentile}}</text>
141
141
  <text x="62" y="237" text-anchor="end" font-size="12" font-weight="400" fill="#64748B">رتبه درصدی</text>
142
142
  <text x="27" y="245" text-anchor="middle" dy="1em" font-size="14" font-weight="400" fill="#334155">هوشبهر</text>
143
143
  <text x="27" y="245" text-anchor="middle" dy="2.75em" font-size="12" font-weight="400" fill="#64748B">(IQ)</text>