diff --git a/src/browser/js/app/widgets/pads/multixy.js b/src/browser/js/app/widgets/pads/multixy.js index 2cf705c7..55c373a7 100644 --- a/src/browser/js/app/widgets/pads/multixy.js +++ b/src/browser/js/app/widgets/pads/multixy.js @@ -62,6 +62,7 @@ var MultiXy = module.exports.MultiXy = function(widgetData) { logScale:widgetData.logScaleY }) this.pads[i].sendValue = ()=>{} + this.pads[i].draw = ()=>{} this.wrapper.append(this.pads[i].widget) this.handles[i] = $(`
${i}
`) @@ -127,6 +128,31 @@ MultiXy.prototype.updateHandlesPosition = function(){ } } +MultiXy.prototype.draw = function(){ + + this.ctx.clearRect(0,0,this.width,this.height) + + this.ctx.fillStyle = this.colors.text + this.ctx.lineWidth = PXSCALE + this.ctx.strokeStyle = this.colors.custom + + for (var i=0;i