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

粗边线宽度的折线形状难以选中并拖动 #122

Open
lzhida opened this issue Jun 27, 2024 · 1 comment
Open

粗边线宽度的折线形状难以选中并拖动 #122

lzhida opened this issue Jun 27, 2024 · 1 comment

Comments

@lzhida
Copy link

lzhida commented Jun 27, 2024

我项目中有设置形状边线宽度的需求,当把边线宽度设置到比较大的值,并保存到data中时,会出现难以选中和拖动形状的问题,我这边测试使用折线类型;
我查阅代码,发现应该是 isPointInLine 的 lineWidth 固定为 5 的问题;
当我把宽度设置为50时,我必须选中中间的 5 宽度才能选中和拖动;
图片

@heylight
Copy link
Owner

我项目中有设置形状边线宽度的需求,当把边线宽度设置到比较大的值,并保存到data中时,会出现难以选中和拖动形状的问题,我这边测试使用折线类型; 我查阅代码,发现应该是 isPointInLine 的 lineWidth 固定为 5 的问题; 当我把宽度设置为50时,我必须选中中间的 5 宽度才能选中和拖动; 图片

这里的lineWidth确实应该使用全局lineWidth的值,我改一下加到下一个迭代里

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

No branches or pull requests

2 participants