Skip to content

Commit 7c7a011

Browse files
committed
fix contour copypasta from filters
1 parent 2f5eae1 commit 7c7a011

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

src/traces/contour/attributes.js

+11-17
Original file line numberDiff line numberDiff line change
@@ -190,17 +190,17 @@ module.exports = extendFlat({
190190
dflt: '=',
191191
editType: 'calc',
192192
description: [
193-
'Sets the filter operation.',
193+
'Sets the constraint operation.',
194194

195-
'*=* keeps items equal to `value`',
195+
'*=* keeps regions equal to `value`',
196196

197-
'*<* and *<=* keep items less than `value`',
197+
'*<* and *<=* keep regions less than `value`',
198198

199-
'*>* and *>=* keep items greater than `value`',
199+
'*>* and *>=* keep regions greater than `value`',
200200

201-
'*[]*, *()*, *[)*, and *(]* keep items inside `value[0]` to `value[1]`',
201+
'*[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]`',
202202

203-
'*][*, *)(*, *](*, *)[* keep items outside `value[0]` to value[1]`',
203+
'*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]`',
204204

205205
'Open vs. closed intervals make no difference to constraint display, but',
206206
'all versions are allowed for consistency with filter transforms.'
@@ -212,22 +212,16 @@ module.exports = extendFlat({
212212
role: 'info',
213213
editType: 'calc',
214214
description: [
215-
'Sets the value or values by which to filter by.',
216-
217-
'Values are expected to be in the same type as the data linked',
218-
'to *target*.',
215+
'Sets the value or values of the constraint boundary.',
219216

220217
'When `operation` is set to one of the comparison values',
221218
'(' + COMPARISON_OPS2 + ')',
222-
'*value* is expected to be a number or a string.',
219+
'*value* is expected to be a number.',
223220

224-
'When `operation` is set to one of the interval value',
221+
'When `operation` is set to one of the interval values',
225222
'(' + INTERVAL_OPS + ')',
226-
'*value* is expected to be 2-item array where the first item',
227-
'is the lower bound and the second item is the upper bound.',
228-
229-
'Open vs. closed intervals make no difference to constraint display, but',
230-
'all versions are allowed for consistency with filter transforms.'
223+
'*value* is expected to be an array of two numbers where the first',
224+
'is the lower bound and the second is the upper bound.',
231225
].join(' ')
232226
},
233227
editType: 'calc',

0 commit comments

Comments
 (0)