- removed knob pan option (looked too ugly, use css var to hide gauge instead)
- knob/fader/toggle gauge width reduced to 2px, looks slicker
This commit is contained in:
parent
f732feff29
commit
aed0812b04
8 changed files with 65 additions and 64 deletions
|
|
@ -22,8 +22,6 @@ module.exports.options = {
|
|||
separator2:'behaviour',
|
||||
|
||||
absolute:false,
|
||||
pan:false,
|
||||
|
||||
|
||||
separator3:'osc',
|
||||
|
||||
|
|
@ -59,7 +57,6 @@ module.exports.create = function(widgetData,container) {
|
|||
range = widgetData.range,
|
||||
unit = widgetData.unit?' '+widgetData.unit.trim(): '',
|
||||
absolute = widgetData.absolute,
|
||||
pan = widgetData.pan,
|
||||
logScale = widgetData.logScale,
|
||||
roundFactor = Math.pow(10,widgetData.precision)
|
||||
|
||||
|
|
@ -167,9 +164,6 @@ module.exports.create = function(widgetData,container) {
|
|||
knob[0].setAttribute('style','transform:rotateZ('+r+'deg)')
|
||||
handle[0].setAttribute('style','transform:rotateZ('+(r-45)+'deg)')
|
||||
|
||||
if (pan && r<135) {mask.removeClass('pan-right').addClass('pan-left')}
|
||||
else if (pan) {mask.removeClass('pan-left').addClass('pan-right')}
|
||||
|
||||
if (r>180) {knob.addClass('d3')}
|
||||
else if (r>90) {knob.removeClass('d3').addClass('d2')}
|
||||
else {knob.removeClass('d3 d2')}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue