Breaking Change (5.0.0-beta.10) #4972
Replies: 5 comments
-
放到 release 的描述中吧。 |
Beta Was this translation helpful? Give feedback.
-
嗯嗯,我在 release 里面引用了这个 issue 的。 |
Beta Was this translation helpful? Give feedback.
-
what happened to functions like getEngine, registerInteraction etc? |
Beta Was this translation helpful? Give feedback.
-
const chart = new Chart();
// ....
const { canvas } = chart.getContext().canvas;
const elements = canvas.document.getElementsByClassName('element');
elements[0].addEventListener('click', () => {}); So for 4.0 users, the best time to upgrade is after releasing 5.1.0. Sorry for the inconvenience caused to you, we'll provide detailed upgrade docs and optimize API docs as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
@pearmini |
Beta Was this translation helpful? Give feedback.
-
Breaking Change (5.0.0-beta.10)
There are some breaking changes for 5.0.0-beta.10.
node.interaction
Change Interaction from array prop to object prop.(#4628)
node.coordinate
Change coordinate from array prop to object prop. (#4637)
node.state
Specify the state of elements by
mark.state
API rather than in thechart.interaction
.(#4649)mark.label.style
Specify style props supported by G element through
label.style
.(#4639)Beta Was this translation helpful? Give feedback.
All reactions