Browse Source
Merge pull request #479 from Terny22/gauge-anim-issue
fixed minor animation issue in gauge-widgets
pull/481/head
Igor Kulikov
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
12 additions and
4 deletions
-
ui/src/app/widget/lib/analogue-compass.js
-
ui/src/app/widget/lib/analogue-linear-gauge.js
-
ui/src/app/widget/lib/analogue-radial-gauge.js
-
ui/src/app/widget/lib/canvas-digital-gauge.js
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|