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

fix: 修复 axis rerender 不更新布局和 labelOffset 报错 #1293

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

zengyue
Copy link
Member

@zengyue zengyue commented Nov 29, 2021

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

@lgtm-com
Copy link

lgtm-com bot commented Nov 29, 2021

This pull request fixes 2 alerts when merging 36d6a03 into fddc32b - view on LGTM.com

fixed alerts:

  • 2 for Unused variable, import, function or class


// 增量更新,以最大的宽高作为限制
if (maxBBox) {
bbox = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这段逻辑如果去掉的话, 如果多次update 会导致Chart里的layout越来越小

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

具体可以跑下 packages/f2/test/components/interaction/pan.test.tsx 这个用例复现出来

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改好了,这个是update 时 坐标轴没有重置导致的

@lgtm-com
Copy link

lgtm-com bot commented Nov 30, 2021

This pull request fixes 2 alerts when merging 764d236 into e0d4bab - view on LGTM.com

fixed alerts:

  • 2 for Unused variable, import, function or class

Copy link
Member

@ACERY1 ACERY1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@ACERY1 ACERY1 merged commit f08bea2 into v4.0.x Dec 1, 2021
@ACERY1 ACERY1 deleted the fix-axis branch December 1, 2021 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants