Skip to content

Commit

Permalink
caught missing scale on tmpRadius
Browse files Browse the repository at this point in the history
  • Loading branch information
Knight2601 committed Nov 30, 2017
1 parent 2a9014b commit ed7c6de
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/gauge.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ class Gauge extends BaseGauge
max = zone.max
if @options.limitMax and max > @maxValue
max = @maxValue
tmpRadius = @radius
tmpRadius = (@radius * @options.radiusScale)
if (zone.height)
@ctx.lineWidth = @lineWidth * zone.height
scaleMutate = (@lineWidth / 2) * (zone.offset || 1 - zone.height)
Expand Down
2 changes: 1 addition & 1 deletion dist/gauge.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/gauge.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ <h2>Contact</h2>
});
demoGauge.animationSpeed = opts.animationSpeed;
opts.generateGradient = true;
console.log(opts);
demoGauge.setOptions(opts);
demoGauge.ctx.clearRect(0, 0, demoGauge.ctx.canvas.width, demoGauge.ctx.canvas.height);
demoGauge.render();
Expand Down Expand Up @@ -500,6 +501,7 @@ <h2>Contact</h2>
var opts = {
angle: -0.25,
lineWidth: 0.2,
radiusScale:0.9,
pointer: {
length: 0.6,
strokeWidth: 0.05,
Expand Down

0 comments on commit ed7c6de

Please sign in to comment.