Permalink
Browse files

Revert "Revert "Revert "added option 'angleAperture' || default = 360"""

This reverts commit 8f40afd.
  • Loading branch information...
1 parent 8f40afd commit 5a4c1c410fdc48717c55b04023dd0111a89f9abb @FabrizioC committed Jun 27, 2012
Showing with 2 additions and 3 deletions.
  1. BIN .DS_Store
  2. +2 −3 js/jquery.knob.js
View
BIN .DS_Store
Binary file not shown.
View
@@ -49,7 +49,7 @@ $(function () {
};
this.angle = function (nv) {
- return (nv - opt.min) * opt.angleAperture / (opt.max - opt.min);
+ return (nv - opt.min) * PI2 / (opt.max - opt.min);
};
this.draw = function (nv) {
@@ -242,8 +242,7 @@ $(function () {
,'tickWidth' : $this.data('tickWidth') || 0.02
,'tickColorizeValues' : $this.data('tickColorizeValues') || true
,'skin' : $this.data('skin') || 'default'
- ,'angleOffset': degreeToRadians($this.data('angleoffset'))
- ,'angleAperture': degreeToRadians($this.data('angleaperture')) || 2 * Math.PI
+ ,'angleOffset': degreeToRadians($this.data('angleoffset'))
// Hooks
,'draw' :

0 comments on commit 5a4c1c4

Please sign in to comment.