@tekkare/auriga 0.2.131 → 0.2.132
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/dist/module.json
CHANGED
|
@@ -136,7 +136,7 @@ export default defineComponent({
|
|
|
136
136
|
return "#85CB68";
|
|
137
137
|
} else if (props.reverseColors ? value <= scale.value[8] : value >= scale.value[1]) {
|
|
138
138
|
return "#BDDD51";
|
|
139
|
-
} else if (props.reverseColors ? value
|
|
139
|
+
} else if (props.reverseColors ? value > scale.value[8] : value >= scale.value[0]) {
|
|
140
140
|
return "#F9E855";
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -148,10 +148,14 @@ export default defineComponent({
|
|
|
148
148
|
}
|
|
149
149
|
function setupScale() {
|
|
150
150
|
minimalValue.value = Math.floor(
|
|
151
|
-
Math.min(
|
|
151
|
+
Math.min(
|
|
152
|
+
...props.data.filter((f) => f.value !== null).map((x) => x.value)
|
|
153
|
+
)
|
|
152
154
|
);
|
|
153
155
|
maximalValue.value = Math.ceil(
|
|
154
|
-
Math.max(
|
|
156
|
+
Math.max(
|
|
157
|
+
...props.data.filter((f) => f.value !== null).map((x) => x.value)
|
|
158
|
+
)
|
|
155
159
|
);
|
|
156
160
|
const step = (maximalValue.value - minimalValue.value) / 10;
|
|
157
161
|
if (minimalValue.value !== null) {
|
|
@@ -136,7 +136,7 @@ export default defineComponent({
|
|
|
136
136
|
return "#85CB68";
|
|
137
137
|
} else if (props.reverseColors ? value <= scale.value[8] : value >= scale.value[1]) {
|
|
138
138
|
return "#BDDD51";
|
|
139
|
-
} else if (props.reverseColors ? value
|
|
139
|
+
} else if (props.reverseColors ? value > scale.value[8] : value >= scale.value[0]) {
|
|
140
140
|
return "#F9E855";
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -151,10 +151,14 @@ export default defineComponent({
|
|
|
151
151
|
}
|
|
152
152
|
function setupScale() {
|
|
153
153
|
minimalValue.value = Math.floor(
|
|
154
|
-
Math.min(
|
|
154
|
+
Math.min(
|
|
155
|
+
...props.data.filter((f) => f.value !== null).map((x) => x.value)
|
|
156
|
+
)
|
|
155
157
|
);
|
|
156
158
|
maximalValue.value = Math.ceil(
|
|
157
|
-
Math.max(
|
|
159
|
+
Math.max(
|
|
160
|
+
...props.data.filter((f) => f.value !== null).map((x) => x.value)
|
|
161
|
+
)
|
|
158
162
|
);
|
|
159
163
|
const step = (maximalValue.value - minimalValue.value) / 10;
|
|
160
164
|
if (minimalValue.value !== null) {
|
|
@@ -122,7 +122,7 @@ export default defineComponent({
|
|
|
122
122
|
return "#85CB68";
|
|
123
123
|
} else if (props.reverseColors ? value <= scale.value[8] : value >= scale.value[1]) {
|
|
124
124
|
return "#BDDD51";
|
|
125
|
-
} else if (props.reverseColors ? value
|
|
125
|
+
} else if (props.reverseColors ? value > scale.value[8] : value >= scale.value[0]) {
|
|
126
126
|
return "#F9E855";
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -137,10 +137,14 @@ export default defineComponent({
|
|
|
137
137
|
}
|
|
138
138
|
function setupScale() {
|
|
139
139
|
minimalValue.value = Math.floor(
|
|
140
|
-
Math.min(
|
|
140
|
+
Math.min(
|
|
141
|
+
...props.data.filter((f) => f.value !== null).map((x) => x.value)
|
|
142
|
+
)
|
|
141
143
|
);
|
|
142
144
|
maximalValue.value = Math.ceil(
|
|
143
|
-
Math.max(
|
|
145
|
+
Math.max(
|
|
146
|
+
...props.data.filter((f) => f.value !== null).map((x) => x.value)
|
|
147
|
+
)
|
|
144
148
|
);
|
|
145
149
|
const step = (maximalValue.value - minimalValue.value) / 10;
|
|
146
150
|
if (minimalValue.value !== null) {
|