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: 修复 bar3d 图形在线条连接点处有突出,以及在图形堆叠时存在重复边的问题 #233

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

yixy-only
Copy link
Collaborator

No description provided.

@yixy-only yixy-only self-assigned this Oct 2, 2024
@yixy-only
Copy link
Collaborator Author

由于加入了 line join 和 line cap 的设置,线条可以调整线帽和线条连接样式,按照原先的绘制顺序在左上角会有突出部分。并且在 topFlag 为 false 时仍然多绘制了顶部的其中一条边。
H9Y~ JVGMUWC75AAD%N5NM4

@yixy-only
Copy link
Collaborator Author

调整后图形正常,并且堆叠时无重复边。
image

@yixy-only yixy-only changed the title fix: fix: 修复 bar3d 图形在线条连接点处有突出,以及在图形堆叠时存在重复边的问题 fix: 修复 bar3d 图形在线条连接点处有突出,以及在图形堆叠时存在重复边的问题 Oct 2, 2024
src/egegapi.cpp Outdated
drawpoly(7, pt, pimg);
}
/* 正面右上边界的3个顶点 */
POINT sideVertexes[3] = {{left, top}, {right, top}, {right, bottom}};
Copy link
Owner

Choose a reason for hiding this comment

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

这个变量似乎只在 if(topFlag) 进去的时候才需要? else 里面可以直接使用 left、top等, 你看看要不要优化下? 不过不改也没事...

Copy link
Owner

Choose a reason for hiding this comment

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

不改的话我就直接合入啦~~~

@yixy-only yixy-only requested a review from wysaid October 4, 2024 05:23
@wysaid wysaid merged commit 67b7180 into wysaid:master Oct 4, 2024
1 check passed
@yixy-only yixy-only deleted the refactor_bar3d branch October 4, 2024 05:45
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.

2 participants