Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Break Change] chart.node -> chart.getNode, chart.context -> chart.getContext #4685

Closed
pearmini opened this issue Feb 23, 2023 · 0 comments · Fixed by #4690
Closed

[Break Change] chart.node -> chart.getNode, chart.context -> chart.getContext #4685

pearmini opened this issue Feb 23, 2023 · 0 comments · Fixed by #4690
Assignees
Labels
Milestone

Comments

@pearmini
Copy link
Member

API 做以下调整:

  • chart.node() -> chart.getNode()
  • chart.context() -> chart.getContext()

在 G2 的 Chart API 非创建容器的约定如下:

  • chart.getXXX: getter
  • chart.xxx: getter and setter

基于此,所以需要调整。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants