Skip to content
Browse files

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

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

0 comments on commit 8f40afd

Please sign in to comment.
Something went wrong with that request. Please try again.