Merge pull request #479 from Terny22/gauge-anim-issue
fixed minor animation issue in gauge-widgets
This commit is contained in:
commit
ab34473224
@ -104,7 +104,9 @@ export default class TbAnalogueCompass {
|
||||
var tvPair = cellData.data[cellData.data.length -
|
||||
1];
|
||||
var value = tvPair[1];
|
||||
this.gauge.value = value;
|
||||
if(value !== this.gauge.value) {
|
||||
this.gauge.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -212,7 +212,9 @@ export default class TbAnalogueLinearGauge {
|
||||
var tvPair = cellData.data[cellData.data.length -
|
||||
1];
|
||||
var value = tvPair[1];
|
||||
this.gauge.value = value;
|
||||
if(value !== this.gauge.value) {
|
||||
this.gauge.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -221,7 +221,9 @@ export default class TbAnalogueRadialGauge {
|
||||
var tvPair = cellData.data[cellData.data.length -
|
||||
1];
|
||||
var value = tvPair[1];
|
||||
this.gauge.value = value;
|
||||
if(value !== this.gauge.value) {
|
||||
this.gauge.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -204,7 +204,9 @@ export default class TbCanvasDigitalGauge {
|
||||
this.gauge.options.label = timestampDisplayValue;
|
||||
}
|
||||
var value = tvPair[1];
|
||||
this.gauge.value = value;
|
||||
if(value !== this.gauge.value) {
|
||||
this.gauge.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user