From ea6fdbd0a97ec790202ae90d962670960055a7e0 Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 21 Sep 2020 21:19:25 +0200 Subject: [PATCH] widgets: clean unused props --- src/client/widgets/frames/frame.js | 2 +- src/client/widgets/frames/html.js | 2 +- src/client/widgets/frames/image.js | 2 +- src/client/widgets/frames/svg.js | 2 +- src/client/widgets/graphs/eq.js | 2 +- src/client/widgets/graphs/plot.js | 2 +- src/client/widgets/graphs/visualizer.js | 2 +- src/client/widgets/indicators/led.js | 2 +- src/client/widgets/indicators/text.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/client/widgets/frames/frame.js b/src/client/widgets/frames/frame.js index 38681c1b..01b05494 100644 --- a/src/client/widgets/frames/frame.js +++ b/src/client/widgets/frames/frame.js @@ -15,7 +15,7 @@ class Frame extends StaticProperties(Widget, {bypass: true}) { return super.defaults({ - }, ['decimals', 'bypass'], { + }, ['decimals', 'typeTags', 'bypass', 'ignoreDefaults'], { value: {type: 'string', value: '', help: [ 'External web page URL.', diff --git a/src/client/widgets/frames/html.js b/src/client/widgets/frames/html.js index 650ef46a..fc36d477 100644 --- a/src/client/widgets/frames/html.js +++ b/src/client/widgets/frames/html.js @@ -37,7 +37,7 @@ class Html extends StaticProperties(Widget, {bypass: true}) { '  : src, width, height', ]}, - }, ['decimals', 'bypass'], {}) + }, ['decimals', 'typeTags', 'bypass', 'ignoreDefaults'], {}) } diff --git a/src/client/widgets/frames/image.js b/src/client/widgets/frames/image.js index c5c65885..da396f08 100644 --- a/src/client/widgets/frames/image.js +++ b/src/client/widgets/frames/image.js @@ -25,7 +25,7 @@ module.exports = class Image extends StaticProperties(Widget, {bypass: true}) { 'When true, sending `reload` to the widget reloads its image without changing its value' ]} - }, ['decimals', 'bypass'], { + }, ['decimals', 'typeTags', 'bypass', 'ignoreDefaults'], { value: {type: 'string', value: '', help: [ '- File `url` or `path` (relative to the session file location by default, falling back to absolute path)', diff --git a/src/client/widgets/frames/svg.js b/src/client/widgets/frames/svg.js index 0f7bc433..83b3f5db 100644 --- a/src/client/widgets/frames/svg.js +++ b/src/client/widgets/frames/svg.js @@ -22,7 +22,7 @@ class Svg extends StaticProperties(Widget, {bypass: true}) { 'Svg xml definition (will be wrapped in a `< svg />` element)', ]}, - }, ['decimals', 'bypass'], {}) + }, ['decimals', 'typeTags', 'bypass', 'ignoreDefaults'], {}) } diff --git a/src/client/widgets/graphs/eq.js b/src/client/widgets/graphs/eq.js index 6dfbc170..fd381f6d 100644 --- a/src/client/widgets/graphs/eq.js +++ b/src/client/widgets/graphs/eq.js @@ -32,7 +32,7 @@ class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false, smoo rangeY: {type: 'object', value: {min:-6, max:6}, help: 'Defines the min and max values for the y axis (in dB)'}, origin: {type: 'number|boolean', value: 'auto', help: 'Defines the y axis origin. Set to `false` to disable it'}, - }, ['interaction', 'decimals', 'typeTags', 'bypass']) + }, ['interaction', 'decimals', 'typeTags', 'bypass', 'ignoreDefaults']) } diff --git a/src/client/widgets/graphs/plot.js b/src/client/widgets/graphs/plot.js index 9660f351..a20467b0 100644 --- a/src/client/widgets/graphs/plot.js +++ b/src/client/widgets/graphs/plot.js @@ -27,7 +27,7 @@ module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, inte bars: {type: 'boolean', value: false, help: 'Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing)'}, pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'}, - }, ['interaction', 'decimals', 'typeTags', 'bypass'], { + }, ['interaction', 'decimals', 'typeTags', 'bypass', 'ignoreDefaults'], { value: {type: 'array|string', value: '', help: [ '- `Array` of `y` values', diff --git a/src/client/widgets/graphs/visualizer.js b/src/client/widgets/graphs/visualizer.js index fd100213..e139259d 100644 --- a/src/client/widgets/graphs/visualizer.js +++ b/src/client/widgets/graphs/visualizer.js @@ -27,7 +27,7 @@ class Visualizer extends StaticProperties(Plot, {rangeX: {min: '', max: ''}, dot pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'}, freeze: {type: 'boolean', value: false, help: 'Set to `true` to freeze current view and ignore incoming values'} - }, ['interaction', 'decimals', 'typeTags', 'bypass'], {}) + }, ['interaction', 'decimals', 'typeTags', 'bypass', 'ignoreDefaults'], {}) } diff --git a/src/client/widgets/indicators/led.js b/src/client/widgets/indicators/led.js index 41dffdba..1aca0b1d 100644 --- a/src/client/widgets/indicators/led.js +++ b/src/client/widgets/indicators/led.js @@ -23,7 +23,7 @@ module.exports = class Led extends StaticProperties(Widget, {bypass: true, inter logScale: {type: 'boolean', value: false, help: 'If `mode` is `intensity`, set to `true` to use logarithmic scale.'}, borderRadius: {type: 'string', value: '', help: 'Css border-radius property.'}, - }, ['interaction', 'decimals', 'bypass'], { + }, ['interaction', 'decimals', 'bypass', 'ignoreDefaults'], { value: {type: 'number|array|string', value: '', help: [ 'If `mode` is `intensity`:', diff --git a/src/client/widgets/indicators/text.js b/src/client/widgets/indicators/text.js index f3b4dbe6..e919c774 100644 --- a/src/client/widgets/indicators/text.js +++ b/src/client/widgets/indicators/text.js @@ -23,7 +23,7 @@ module.exports = class Text extends StaticProperties(Widget, {bypass: true, inte ]}, align: {type: 'string', value: 'center', choices: ['center', 'left', 'right'], help: 'Css text-align property.'}, - }, ['interaction', 'decimals', 'bypass'], {}) + }, ['interaction', 'decimals', 'bypass', 'ignoreDefaults'], {}) }