Skip to content

Commit

Permalink
value min max
Browse files Browse the repository at this point in the history
  • Loading branch information
A-J-Bauer committed Mar 15, 2024
1 parent c95a9bd commit 5906f0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("MinifyVersionPublishToFolder")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+baaa3f35ee2bef13a8dd7c15f4640a7961338d7d")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c95a9bd4b88803a0a765afa9614ead4a905a8024")]
[assembly: System.Reflection.AssemblyProductAttribute("MinifyVersionPublishToFolder")]
[assembly: System.Reflection.AssemblyTitleAttribute("MinifyVersionPublishToFolder")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bc74ef6c96b18e21c5a1f2abb25e669a85088985d38fe1a083b5ea9dd2b82e67
19261feb27d2decff4c3364e03053e130f66928061c92c55a4138104b21a06b9
10 changes: 5 additions & 5 deletions vgauge.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// vgauge.js 1.0.5, copyright (c) 2024 A.J.Bauer, licensed under the MIT License,see LICENSE.txt for full license text.
// vgauge.js 1.0.6, copyright (c) 2024 A.J.Bauer, licensed under the MIT License,see LICENSE.txt for full license text.

class VGauge {
static isNonEmptyString(s) {
Expand Down Expand Up @@ -569,11 +569,11 @@ class VGauge {

set value(value) {
if (this._value !== value) {
if (value < this._min) {
this._value = this._min;
if (value < this._settings.min) {
this._value = this._settings.min;
}
else if (value > this._max) {
this._value = this._max;
else if (value > this._settings.max) {
this._value = this._settings.max;
}
else {
this._value = parseFloat(value);
Expand Down

0 comments on commit 5906f0c

Please sign in to comment.