mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Bump chartjs-color to version 2.0.0 (#2549)
Fix color animation because the color lib changed the `mix` implementation to match SASS behavior, so the weight specifies the amount of the first color that should be included in the returned color.
This commit is contained in:
parent
85267f0c62
commit
b64e03dbd0
@ -47,7 +47,7 @@
|
||||
"main": "Chart.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"chartjs-color": "^1.0.2",
|
||||
"chartjs-color": "^2.0.0",
|
||||
"moment": "^2.10.6"
|
||||
}
|
||||
}
|
@ -60,7 +60,7 @@ module.exports = function(Chart) {
|
||||
// Color transitions if possible
|
||||
else if (typeof value === 'string') {
|
||||
try {
|
||||
var color = helpers.color(this._start[key]).mix(helpers.color(this._model[key]), ease);
|
||||
var color = helpers.color(this._model[key]).mix(helpers.color(this._start[key]), ease);
|
||||
this._view[key] = color.rgbString();
|
||||
} catch (err) {
|
||||
this._view[key] = value;
|
||||
|
Loading…
Reference in New Issue
Block a user