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