pads: fake slider: choose to cancel default drawing or not
This commit is contained in:
parent
dc08b761c1
commit
6bce9b1af5
2 changed files with 4 additions and 5 deletions
|
|
@ -1,9 +1,10 @@
|
|||
var {Fader} = require('../sliders/fader')
|
||||
|
||||
var _fake_fader = module.exports = function(){
|
||||
var _fake_fader = module.exports = function(widgetData, cancelDraw){
|
||||
|
||||
Fader.apply(this, arguments)
|
||||
|
||||
if (cancelDraw) this.draw = ()=>{}
|
||||
}
|
||||
|
||||
_fake_fader.prototype = Object.create(Fader.prototype)
|
||||
|
|
@ -11,5 +12,3 @@ _fake_fader.prototype = Object.create(Fader.prototype)
|
|||
_fake_fader.prototype.constructor = _fake_fader
|
||||
|
||||
_fake_fader.prototype.sendValue = function(){}
|
||||
|
||||
_fake_fader.prototype.draw = function(){}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ var Xy = module.exports.Xy = function(widgetData) {
|
|||
range:widgetData.rangeX,
|
||||
precision:widgetData.precision,
|
||||
logScale:widgetData.logScaleX
|
||||
}),
|
||||
}, true),
|
||||
y: new Fader({
|
||||
id:1,
|
||||
compact:true,
|
||||
|
|
@ -78,7 +78,7 @@ var Xy = module.exports.Xy = function(widgetData) {
|
|||
precision:widgetData.precision,
|
||||
logScale:widgetData.logScaleY
|
||||
|
||||
})
|
||||
}, true)
|
||||
}
|
||||
|
||||
this.inputs = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue