We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当我缩放图片或者是canvas宽高修改时,刷新数据后,折线的线宽不会跟随等比放大或缩小,
代码中是固定 lineWidth 的,应该和点一点,根据比例进行调整绘制的宽度
lineWidth
The text was updated successfully, but these errors were encountered:
缩放的目的是帮用户清晰地查看标注位置,lineWidth只是一个辅助,做到能看清楚,能操作就行 如果lineWidth跟着等比例变化,就可能出现满屏都是lineWidth
另外,点也不会等比例缩放,你说的应该是圆吧?
Sorry, something went wrong.
我不知道别人会不会有lineWidth的需求,我这边的测试效果就是,当缩放图片时,点是会变化的,但是线宽不会变化; 我这边用多边形举例: 设置线宽100,当我缩小图片时,绘制出来的线宽还是100,线宽应该也要跟着缩小才符合,如下面的第二张图,缩小到一定范围,标注就超出范围了
标注关心的是数据,所有的数据不会随着画布缩放而发生改变,也不存在超出图片的情况。 lineWidth只是辅助展示,在视图上即便超出了也没有关系,标注数据有没有超出,这个是关键。 当然业务因需求不同,可以做一个自定义配置,来等比例展示lineWidth,但是我觉得这么做没意义。
No branches or pull requests
当我缩放图片或者是canvas宽高修改时,刷新数据后,折线的线宽不会跟随等比放大或缩小,
代码中是固定
lineWidth
的,应该和点一点,根据比例进行调整绘制的宽度The text was updated successfully, but these errors were encountered: