We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d001a2 commit f77f90bCopy full SHA for f77f90b
src/lib/str2rgbarray.js
@@ -9,11 +9,11 @@
9
10
'use strict';
11
12
-var rgba = require('color-rgba');
+var rgba = require('color-normalize');
13
14
function str2RgbaArray(color) {
15
- var colorOut = rgba(color);
16
- return colorOut.length ? colorOut : [0, 0, 0, 1];
+ if(!color) return [0, 0, 0, 1];
+ return rgba(color);
17
}
18
19
module.exports = str2RgbaArray;
test/jasmine/tests/gl2d_click_test.js
@@ -358,11 +358,11 @@ describe('Test hover and click interactions', function() {
358
y: 18,
359
curveNumber: 2,
360
pointNumber: 0,
361
- bgcolor: 'rgb(44, 160, 44)',
362
- bordercolor: 'rgb(255, 255, 255)',
+ bgcolor: 'rgb(255, 127, 14)',
+ bordercolor: 'rgb(68, 68, 68)',
363
fontSize: 13,
364
fontFamily: 'Arial',
365
- fontColor: 'rgb(255, 255, 255)'
+ fontColor: 'rgb(68, 68, 68)'
366
}, {
367
msg: 'scattergl after visibility restyle'
368
});
@@ -406,11 +406,11 @@ describe('Test hover and click interactions', function() {
406
407
408
409
410
411
412
413
414
415
msg: 'scattergl fancy after visibility restyle'
416
0 commit comments