From 7c7a01135b0319fa536d7520b6fc33f8275d27c5 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Tue, 30 Jan 2018 11:49:02 -0500 Subject: [PATCH] fix contour copypasta from filters --- src/traces/contour/attributes.js | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/src/traces/contour/attributes.js b/src/traces/contour/attributes.js index ec187be3ea4..ab1e3ebc7e9 100644 --- a/src/traces/contour/attributes.js +++ b/src/traces/contour/attributes.js @@ -190,17 +190,17 @@ module.exports = extendFlat({ dflt: '=', editType: 'calc', description: [ - 'Sets the filter operation.', + 'Sets the constraint operation.', - '*=* keeps items equal to `value`', + '*=* keeps regions equal to `value`', - '*<* and *<=* keep items less than `value`', + '*<* and *<=* keep regions less than `value`', - '*>* and *>=* keep items greater than `value`', + '*>* and *>=* keep regions greater than `value`', - '*[]*, *()*, *[)*, and *(]* keep items inside `value[0]` to `value[1]`', + '*[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]`', - '*][*, *)(*, *](*, *)[* keep items outside `value[0]` to value[1]`', + '*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]`', 'Open vs. closed intervals make no difference to constraint display, but', 'all versions are allowed for consistency with filter transforms.' @@ -212,22 +212,16 @@ module.exports = extendFlat({ role: 'info', editType: 'calc', description: [ - 'Sets the value or values by which to filter by.', - - 'Values are expected to be in the same type as the data linked', - 'to *target*.', + 'Sets the value or values of the constraint boundary.', 'When `operation` is set to one of the comparison values', '(' + COMPARISON_OPS2 + ')', - '*value* is expected to be a number or a string.', + '*value* is expected to be a number.', - 'When `operation` is set to one of the interval value', + 'When `operation` is set to one of the interval values', '(' + INTERVAL_OPS + ')', - '*value* is expected to be 2-item array where the first item', - 'is the lower bound and the second item is the upper bound.', - - 'Open vs. closed intervals make no difference to constraint display, but', - 'all versions are allowed for consistency with filter transforms.' + '*value* is expected to be an array of two numbers where the first', + 'is the lower bound and the second is the upper bound.', ].join(' ') }, editType: 'calc',