From c2d5a305debebf7fb52af9f6196910a1a0ef4235 Mon Sep 17 00:00:00 2001 From: Marcus Date: Thu, 2 May 2024 16:01:33 +0200 Subject: [PATCH] playground - dont use float for gauge meter value --- playground/html/material-gauge-gh-pages/index.html | 4 ++-- playground/html/material-gauge-gh-pages/material-gauge.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playground/html/material-gauge-gh-pages/index.html b/playground/html/material-gauge-gh-pages/index.html index 079fd33..aa8a03c 100644 --- a/playground/html/material-gauge-gh-pages/index.html +++ b/playground/html/material-gauge-gh-pages/index.html @@ -27,7 +27,7 @@
-
+
@@ -44,7 +44,7 @@ var gauge = new Gauge(document.getElementById("gauge")); - gauge.value(0.75); + gauge.value(75); diff --git a/playground/html/material-gauge-gh-pages/material-gauge.js b/playground/html/material-gauge-gh-pages/material-gauge.js index 17fa69d..777f4ee 100644 --- a/playground/html/material-gauge-gh-pages/material-gauge.js +++ b/playground/html/material-gauge-gh-pages/material-gauge.js @@ -45,7 +45,7 @@ function Gauge(el) { exports.value = function(x) { if (!arguments.length) { return value; } - setValue(x); + setValue(x / 100); return this; };