Merge pull request #479 from Terny22/gauge-anim-issue

fixed minor animation issue in gauge-widgets
This commit is contained in:
Igor Kulikov 2017-12-13 20:16:18 +02:00 committed by GitHub
commit ab34473224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 4 deletions

View File

@ -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;
}
}
}
}

View File

@ -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;
}
}
}
}

View File

@ -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;
}
}
}

View File

@ -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;
}
}
}
}