chartjs / chartjs-plugin-annotation

Annotation plugin for Chart.js
MIT License
603 stars 325 forks source link

Define default init animation logic to each annotation element #863

Closed stockiNail closed 1 year ago

stockiNail commented 1 year ago

This PR is moving the init animation defaults in a signle poitn and based on annotation type

stockiNail commented 1 year ago

Changing the signature of init callback from types stand point, I think it is a breaking change. @kurkle do you think we could add to version 3 if the code it is ok for you, of course?

EDIT: wait for PR #838 merging because this PR must add the breaking change to migration guide.