Webpack build for branch master: d46eec4da4

This commit is contained in:
Travis CI 2018-01-29 04:38:10 +00:00
parent 203873121a
commit 4ac9c27f36
2 changed files with 2 additions and 1 deletions

View file

@ -1542,6 +1542,7 @@ class Util {
static resolveColor(color) {
if (typeof color === 'string') {
if (color === 'RANDOM') return Math.floor(Math.random() * (0xFFFFFF + 1));
if (color === 'DEFAULT') return 0;
color = Colors[color] || parseInt(color.replace('#', ''), 16);
} else if (color instanceof Array) {
color = (color[0] << 16) + (color[1] << 8) + color[2];

File diff suppressed because one or more lines are too long