mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Added CanvasPattern global flag for jshint
The core.helpers file was failing linting checks as the global CanvasPattern was not defined. Added the `/* global CanvasGradient */` statement to make linting pass. Updates chartjs/Chart.js#1323
This commit is contained in:
parent
04d4adda05
commit
44cc68d0ae
@ -944,6 +944,7 @@ module.exports = function(Chart) {
|
||||
}
|
||||
};
|
||||
helpers.getHoverColor = function(color) {
|
||||
/* global CanvasGradient */
|
||||
return (color instanceof CanvasPattern) ?
|
||||
color :
|
||||
helpers.color(color).saturate(0.5).darken(0.1).rgbString();
|
||||
|
Loading…
Reference in New Issue
Block a user