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(label): 处理venn图label遮挡问题 #2861

Merged
merged 7 commits into from Sep 26, 2021
Merged

fix(label): 处理venn图label遮挡问题 #2861

merged 7 commits into from Sep 26, 2021

Conversation

Angelii
Copy link
Contributor

@Angelii Angelii commented Sep 18, 2021

PR includes

  • fixed #0
  • add / modify test cases
  • documents, demos

Screenshot

Before After

@github-actions
Copy link
Contributor

github-actions bot commented Sep 18, 2021

🎊 PR Preview 6eea55a has been successfully built and deployed to https://antvis-G2Plot-preview-pr-2861.surge.sh?type=diff&date=2021-09-24

🕐 Build time: 122.063s

🤖 By surge-preview

}
row[PATH_FIELD] = path;
Copy link
Member

Choose a reason for hiding this comment

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

row path 直接这么改?确定没问题?circle-path和intersection-path是一样的?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

intersectionAreaPath内部做了判断处理,包括了circlePath方法:
image

const { x, y } = labelCfg.data;
const { offsetX, offsetY } = labelCfg.customLabelInfo;
return {
content: labelCfg.content[index],
Copy link
Member

Choose a reason for hiding this comment

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

看起来只是复写了 getLabelPoint 方法,label 布局调整(自动隐藏或自动省略的布局会有吗)

@visiky
Copy link
Member

visiky commented Sep 22, 2021

ci 没过?检查下?

@Angelii
Copy link
Contributor Author

Angelii commented Sep 22, 2021

ci 没过?检查下?

嗯嗯

@Angelii Angelii closed this Sep 22, 2021
@Angelii Angelii reopened this Sep 22, 2021
@visiky visiky merged commit bec4bb1 into master Sep 26, 2021
@visiky visiky deleted the fix-venn-label branch September 26, 2021 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants