Skip to content

Commit 5964bee

Browse files
committed
Update attribute, description to remove hsv
1 parent 5d0322a commit 5964bee

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/components/colorscale/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ module.exports = function colorScaleAttrs(context, opts) {
173173
'Sets the colorscale.' + effectDesc,
174174
'The colorscale must be an array containing',
175175
'arrays mapping a normalized value to an',
176-
'rgb, rgba, hex, hsl, hsv, or named color string.',
176+
'rgb, rgba, hex, hsl, or named color string.',
177177
'At minimum, a mapping for the lowest (0) and highest (1)',
178178
'values are required. For example,',
179179
'`[[0, \'rgb(0,0,255)\'], [1, \'rgb(255,0,0)\']]`.',

src/lib/coerce.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ exports.valObjectMeta = {
156156
description: [
157157
'A string describing color.',
158158
'Supported formats:',
159-
'- hex (e.g. \'#d3d3d3\')',
160-
'- rgb (e.g. \'rgb(255, 0, 0)\')',
161-
'- rgba (e.g. \'rgb(255, 0, 0, 0.5)\')',
159+
"- hex (e.g. '#d3d3d3', '#d3d3d3aa)",
160+
"- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')",
161+
"- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')",
162162
'- hsl (e.g. \'hsl(0, 100%, 50%)\')',
163-
'- hsv (e.g. \'hsv(0, 100%, 100%)\')',
164163
'- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)'
165164
].join(' '),
166165
requiredOpts: [],

0 commit comments

Comments
 (0)