diff --git a/src/browser/js/app/widgets/pads/multixy.js b/src/browser/js/app/widgets/pads/multixy.js index a581ef26..5256145e 100644 --- a/src/browser/js/app/widgets/pads/multixy.js +++ b/src/browser/js/app/widgets/pads/multixy.js @@ -28,6 +28,7 @@ module.exports = class MultiXy extends _pads_base { top:'auto', width:'auto', height:'auto', + pips: true, color:'auto', css:'', @@ -55,7 +56,6 @@ module.exports = class MultiXy extends _pads_base { this.npoints = typeof this.getProp('points') == 'object' ? this.getProp('points').length : this.getProp('points') this.labels = typeof this.getProp('points') == 'object' this.pointSize = parseInt(this.getProp('pointSize')) - this.widget[0].style.setProperty("--point-size",this.pointSize + 'rem') this.split = this.getProp('split')? typeof this.getProp('split') == 'object' && this.getProp('split').length == 2 * this.npoints ? @@ -88,10 +88,12 @@ module.exports = class MultiXy extends _pads_base { rangeY:this.getProp('rangeY'), precision:this.precision, logScaleX:this.getProp('logScaleX'), - logScaleY:this.getProp('logScaleY') + logScaleY:this.getProp('logScaleY'), + pointSize: this.getProp('pointSize'), + pips: this.getProp('pips') && i == this.npoints-1, + input:false }}) this.pads[i].sendValue = ()=>{} - this.pads[i].draw = ()=>{} this.wrapper.append(this.pads[i].widget) this.handles[i] = $(`
`) @@ -184,30 +186,17 @@ module.exports = class MultiXy extends _pads_base { this.clear() for (var i=0;i .input { + height: 25rem; + line-height: 25rem; + flex:initial!important; + display: block; + flex-shrink: 0!important; + background: transparent!important; + border: 0!important; + } + > .wrapper { + position: relative; + height: 100%; + width: 100%; + background:var(--color-track); + border: 1rem solid var(--color-bg); + + > canvas { + width:100%; + height:100%; + position: absolute; + pointer-events: none; + z-index: 1; + } + .fader { + pointer-events: none; + position: absolute; + width:100%; + height:100%; + z-index: 0; + --color-knob:transparent; + --color-gauge:transparent; + box-shadow: none; + border: 0; + * { + background: transparent!important; + + } + .wrapper { + border:none; + } + .input { + display: none; + } + } + } + } + + } .panel:not(.tab) > .xy-container, @@ -24,59 +79,6 @@ } } -.pad { - height:100%; - width: 100%; - overflow: hidden; - display: flex; - flex-direction: column; - > .input { - height: 25rem; - line-height: 25rem; - flex:initial!important; - display: block; - flex-shrink: 0!important; - background: transparent!important; - border: 0!important; - } - > .wrapper { - position: relative; - height: 100%; - width: 100%; - background:var(--color-track); - border: 1rem solid var(--color-bg); - - > canvas { - width:100%; - height:100%; - position: absolute; - pointer-events: none; - z-index: 1; - } - .fader { - pointer-events: none; - position: absolute; - width:100%; - height:100%; - z-index: 0; - --color-knob:transparent; - --color-gauge:transparent; - box-shadow: none; - border: 0; - * { - background: transparent!important; - - } - .wrapper { - border:none; - } - .input { - display: none; - } - } - } -} - .rgb-container { .pad { > .wrapper { @@ -127,13 +129,10 @@ .multixy-container { > .pad { - --point-size:10rem; text-align: center; - font-weight: 500; font-size: 12rem; > .wrapper { - padding: calc(var(--point-size) + 1rem); > canvas { top:0; @@ -141,42 +140,30 @@ } .handle { position: absolute; - top: calc( var(--point-size) + 1rem); - left: calc( var(--point-size) + 1rem); - right: calc( var(--point-size) + 1rem); - bottom:calc( var(--point-size) + 1rem); + top: 0; + left: 0; + right: 0; + bottom:0; cursor: -webkit-grab; z-index: 1; &.active { pointer-events: none; } - &:after { - content:""; - position: absolute; - top: calc( -1 * var(--point-size)); - left: calc( -1 * var(--point-size)); - right: calc( -1 * var(--point-size)); - bottom:calc( -1 * var(--point-size)); - } } > .pad { pointer-events: none; position: absolute; - width:calc(100% - 2 * var(--point-size) - 2rem); - height:calc(100% - 2 * var(--point-size) - 2rem); .wrapper { border:0; background: transparent; } canvas { border:0; + left:0; } .input { display: none; } - &:not(:nth-child(2)) { - opacity: 0; - } } } }