Skip to content

Commit

Permalink
Use the new isolated key for animations (chartjs#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored Mar 15, 2021
1 parent 402a047 commit 60de536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default {
defaults: {
drawTime: 'afterDatasetsDraw',
dblClickSpeed: 350, // ms
animation: {
animations: {
numbers: {
properties: ['x', 'y', 'x2', 'y2', 'width', 'height'],
type: 'number'
Expand Down Expand Up @@ -156,7 +156,7 @@ function resolveAnimations(chart, animOpts, mode) {
}

function updateElements(chart, state, options, mode) {
const animations = resolveAnimations(chart, options.animation, mode);
const animations = resolveAnimations(chart, options.animations, mode);

const annotations = state.annotations;
const elements = resyncElements(state.elements, annotations);
Expand Down

0 comments on commit 60de536

Please sign in to comment.