@jsenv/navi 0.18.30 → 0.18.31
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/jsenv_navi.js +6 -0
- package/dist/jsenv_navi.js.map +5 -5
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -30172,6 +30172,12 @@ const Meter = ({
|
|
|
30172
30172
|
}) => {
|
|
30173
30173
|
const defaultRef = useRef();
|
|
30174
30174
|
const ref = rest.ref || defaultRef;
|
|
30175
|
+
value = Number(value);
|
|
30176
|
+
min = Number(min);
|
|
30177
|
+
max = Number(max);
|
|
30178
|
+
if (low !== undefined) low = Number(low);
|
|
30179
|
+
if (high !== undefined) high = Number(high);
|
|
30180
|
+
if (optimum !== undefined) optimum = Number(optimum);
|
|
30175
30181
|
const clampedValue = value < min ? min : value > max ? max : value;
|
|
30176
30182
|
const fillRatio = max === min ? 0 : (clampedValue - min) / (max - min);
|
|
30177
30183
|
let children = caption;
|