From fc12e37eb27ede900253e92ba129678435309edc Mon Sep 17 00:00:00 2001 From: bordun Date: Tue, 9 Mar 2021 16:39:08 +0100 Subject: [PATCH] plot: remove filters property, fix docs --- src/client/widgets/graphs/plot.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/client/widgets/graphs/plot.js b/src/client/widgets/graphs/plot.js index 32f28f20..9009523a 100644 --- a/src/client/widgets/graphs/plot.js +++ b/src/client/widgets/graphs/plot.js @@ -24,19 +24,9 @@ module.exports = class Plot extends StaticProperties(Canvas, {bypass: true, inte pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'}, }, class_specific: { - filters: {type: 'array', value: '', help: [ - 'Each item must be an object with the following properties', - '- `type`: string ("highpass", "highshelf", "lowpass", "lowshelf", "peak", "bandpass" or "notch", default: "peak")', - '- `freq`: number (filter\'s resonant frequency, default: 1000)', - '- `q`: number (Q factor, default: 1)', - '- `gain`: number (default: 0)', - '- `on`: boolean (default: true)', - 'See https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode' - - ]}, pips: {type: 'boolean', value: true, help: 'Set to false to hide the scale'}, - rangeX: {type: 'object', value: {min: 20, max: 22000}, help: 'Defines the min and max values for the x axis (in Hz, logarithmic scale)'}, - rangeY: {type: 'object', value: {min:-6, max:6}, help: 'Defines the min and max values for the y axis (in dB)'}, + rangeX: {type: 'object', value: {min: 0, max: 1}, help: 'Defines the min and max values for the x axis'}, + rangeY: {type: 'object', value: {min: 0, max:1}, help: 'Defines the min and max values for the y axis'}, origin: {type: 'number|boolean', value: 'auto', help: 'Defines the y axis origin. Set to `false` to disable it'}, }, value: {