Skip to content

upd:HistogramView添加圆角 #278

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

nicknull
Copy link

No description provided.

@xiangyuecn
Copy link
Owner

roundRect方法在 Chrome 99 (Released 2022-03-01)Safari 16 (Released 2022-09-12) 以后的版本才支持。

新代码入侵严重,如果没有配置新参数,应当执行原有逻辑,不然老项目npm更新一下就趴窝了。

新加的代码没有缩进。


新代码逻辑是否正确需要多种position配置下测试,绘制下半部分的dynamicRadius变量未定义。

@nicknull
Copy link
Author

好的 我会修改这部分代码

@nicknull
Copy link
Author

@xiangyuecn 你好 现在这样不知是否可行

@xiangyuecn
Copy link
Owner

xiangyuecn commented Apr 27, 2025

默认值不要影响老代码,如果没有配置新参数,需要执行原有绘制逻辑(有项目会绘制几千条,原有代码绘制逻辑简单),不然老项目npm更新一下就趴窝了

代码有几个地方还是没有缩进

浏览器支持roundRect的时候,不需要调用自己的方法,不支持的时候才走自己的代码


这个pr目前不会合并到主分支,有同样需要圆角的可以先复制这个代码使用

@nicknull
Copy link
Author

已经改为配置项了且默认走原有的业务逻辑

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