Skip to content

Commit

Permalink
Updated config.value parameter on gauge refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
toorshia committed Nov 19, 2012
1 parent 0533d95 commit 7f152c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ JustGage.prototype.refresh = function(val) {
var color = getColorForPercentage((val - this.config.min) / (this.config.max - this.config.min), this.config.levelColors, this.config.levelColorsGradient);
this.canvas.getById(this.config.id+"-txtvalue").attr({"text":originalVal + this.config.symbol});
this.canvas.getById(this.config.id+"-level").animate({pki: [val, this.config.min, this.config.max, this.params.widgetW, this.params.widgetH, this.params.dx, this.params.dy, this.config.gaugeWidthScale, this.config.donut], "fill":color}, this.config.refreshAnimationTime, this.config.refreshAnimationType);
this.config.value = val;
};

/** Generate shadow */
Expand Down

0 comments on commit 7f152c2

Please sign in to comment.