@@ -36,34 +36,34 @@ const yPotentialPos = computed(() => calcuateVerticalPositionInSVG(getRating(pro
36
36
<line x1 =" 615" y1 =" 376" x2 =" 615" y2 =" 0" style =" stroke : #b1b4b6 ; stroke-width : 1 ;" ></line >
37
37
<line x1 =" 615" y1 =" 376" x2 =" 0" y2 =" 376" style =" stroke : #b1b4b6 ; stroke-width : 1 ;" ></line >
38
38
39
- <rect width =" 78" height =" 50" x =" 72" y =" 25" :style =" {fill: colors.band.A }" >
39
+ <rect width =" 78" height =" 50" x =" 72" y =" 25" :style =" {fill: ratings['A'].bandColor }" >
40
40
</rect >
41
- <rect width =" 118" height =" 50" x =" 72" y =" 75" :style =" {fill: colors.band.B }" >
41
+ <rect width =" 118" height =" 50" x =" 72" y =" 75" :style =" {fill: ratings['B'].bandColor }" >
42
42
</rect >
43
- <rect width =" 158" height =" 50" x =" 72" y =" 125" :style =" {fill: colors.band.C }" >
43
+ <rect width =" 158" height =" 50" x =" 72" y =" 125" :style =" {fill: ratings['C'].bandColor }" >
44
44
</rect >
45
- <rect width =" 198" height =" 50" x =" 72" y =" 175" :style =" {fill: colors.band.D }" >
45
+ <rect width =" 198" height =" 50" x =" 72" y =" 175" :style =" {fill: ratings['D'].bandColor }" >
46
46
</rect >
47
- <rect width =" 238" height =" 50" x =" 72" y =" 225" :style =" {fill: colors.band.E }" >
47
+ <rect width =" 238" height =" 50" x =" 72" y =" 225" :style =" {fill: ratings['E'].bandColor }" >
48
48
</rect >
49
- <rect width =" 278" height =" 50" x =" 72" y =" 275" :style =" {fill: colors.band.F }" >
49
+ <rect width =" 278" height =" 50" x =" 72" y =" 275" :style =" {fill: ratings['F'].bandColor }" >
50
50
</rect >
51
- <rect width =" 318" height =" 50" x =" 72" y =" 325" :style =" {fill: colors.band.G }" >
51
+ <rect width =" 318" height =" 50" x =" 72" y =" 325" :style =" {fill: ratings['G'].bandColor }" >
52
52
</rect >
53
53
54
- <rect width =" 72" height =" 50" x =" 0" y =" 25" :style =" {fill: colors.score.A }" >
54
+ <rect width =" 72" height =" 50" x =" 0" y =" 25" :style =" {fill: ratings['A'].scoreColor }" >
55
55
</rect >
56
- <rect width =" 72" height =" 50" x =" 0" y =" 75" :style =" {fill: colors.score.B }" >
56
+ <rect width =" 72" height =" 50" x =" 0" y =" 75" :style =" {fill: ratings['B'].scoreColor }" >
57
57
</rect >
58
- <rect width =" 72" height =" 50" x =" 0" y =" 125" :style =" {fill: colors.score.C }" >
58
+ <rect width =" 72" height =" 50" x =" 0" y =" 125" :style =" {fill: ratings['C'].scoreColor }" >
59
59
</rect >
60
- <rect width =" 72" height =" 50" x =" 0" y =" 175" :style =" {fill: colors.score.D }" >
60
+ <rect width =" 72" height =" 50" x =" 0" y =" 175" :style =" {fill: ratings['D'].scoreColor }" >
61
61
</rect >
62
- <rect width =" 72" height =" 50" x =" 0" y =" 225" :style =" {fill: colors.score.E }" >
62
+ <rect width =" 72" height =" 50" x =" 0" y =" 225" :style =" {fill: ratings['E'].scoreColor }" >
63
63
</rect >
64
- <rect width =" 72" height =" 50" x =" 0" y =" 275" :style =" {fill: colors.score.F }" >
64
+ <rect width =" 72" height =" 50" x =" 0" y =" 275" :style =" {fill: ratings['F'].scoreColor }" >
65
65
</rect >
66
- <rect width =" 72" height =" 50" x =" 0" y =" 325" :style =" {fill: colors.score.G }" >
66
+ <rect width =" 72" height =" 50" x =" 0" y =" 325" :style =" {fill: ratings['G'].scoreColor }" >
67
67
</rect >
68
68
69
69
<text role =" presentation" aria-hidden =" true" x =" 0" y =" 0" style =" font-size : 40px ; font-family : sans-serif ; fill : #0b0c0c ; font-weight : bold ;" >
@@ -104,12 +104,12 @@ const yPotentialPos = computed(() => calcuateVerticalPositionInSVG(getRating(pro
104
104
Potential
105
105
</text >
106
106
107
- <svg aria-hidden =" true" x =" 415" :y =" yCurrentPos" width =" 90" height =" 50" class =" rating-current rating-label" :style =" {fill: colors.score [currentRating]}" >
107
+ <svg aria-hidden =" true" x =" 415" :y =" yCurrentPos" width =" 90" height =" 50" class =" rating-current rating-label" :style =" {fill: ratings [currentRating].scoreColor }" >
108
108
<polygon points =" 0,25 25,50 100,50 100,0 25,0 0,25" ></polygon >
109
109
<text x =" 35" y =" 31" fill =" black" >{{ currentScore }} {{ currentRating }}</text >
110
110
</svg >
111
111
112
- <svg aria-hidden =" true" x =" 515" :y =" yPotentialPos" width =" 90" height =" 50" class =" rating-potential rating-label" :style =" {fill: colors.score [potentialRating]}" >
112
+ <svg aria-hidden =" true" x =" 515" :y =" yPotentialPos" width =" 90" height =" 50" class =" rating-potential rating-label" :style =" {fill: ratings [potentialRating].scoreColor }" >
113
113
<polygon points =" 0,25 25,50 100,50 100,0 25,0 0,25" ></polygon >
114
114
<text x =" 35" y =" 31" fill =" black" >{{ potentialScore }} {{ potentialRating }}</text >
115
115
</svg >
0 commit comments