From b2153b9df45703887b139e49b765fec0992bc76f Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 18 Apr 2019 17:30:13 +0200 Subject: [PATCH] encoder: compact option --- src/client/app/widgets/sliders/encoder.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/app/widgets/sliders/encoder.js b/src/client/app/widgets/sliders/encoder.js index 89b40ff1..9cc2de32 100644 --- a/src/client/app/widgets/sliders/encoder.js +++ b/src/client/app/widgets/sliders/encoder.js @@ -41,6 +41,7 @@ module.exports = class Encoder extends Widget { _encoder: 'encoder', + compact: {type: 'boolean', value: false, help: 'Set to `true` to display a compact alternative for the widget.'}, ticks: {type: 'number', value: 360, help: 'defines the granularity / verbosity of the encoder (number of step for a 360° arc)'}, back: {type: '*', value: -1, help: 'Defines which value is sent when rotating the encoder anticlockwise'}, forth: {type: '*', value: 1, help: 'Defines which value is sent when rotating the encoder clockwise'}, @@ -91,6 +92,7 @@ module.exports = class Encoder extends Widget { range:{min:0,max:this.ticks}, origin:this.ticks/2, pips:false, + compact: this.getProp('compact') }, parent: this}) this.knob.widget.classList.add('drag-knob')