-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
refactor: walkthrough label #2981
Conversation
This pull request introduces 1 alert and fixes 3 when merging 2dc96c9 into bdde7f3 - view on LGTM.com new alerts:
fixed alerts:
|
*/ | ||
protected getDefaultOffset(offset: number) { | ||
protected getLabelOffset(offset: number | string): number { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
很多处地方都调用了 getDefaultOffset
,但实际上并不需要,并且也不是默认 offset;改名为 getLabelOffset
, 且在获取 labelCfg 中调用,设置 labelCfg.offset
;
labelCfg
(用户配置) -> labelOffsetPoint
-> labelItem
(详细可以看类型定义)
This pull request introduces 1 alert and fixes 3 when merging 91a3c44 into 4dcf6c9 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 2 alerts and fixes 3 when merging 81d4c27 into 4dcf6c9 - view on LGTM.com new alerts:
fixed alerts:
|
Pull Request Test Coverage Report for Build 350991689
💛 - Coveralls |
81d4c27
to
86e4c02
Compare
This pull request introduces 2 alerts and fixes 3 when merging 86e4c02 into 4dcf6c9 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 2 alerts and fixes 3 when merging f7aeaee into 4dcf6c9 - view on LGTM.com new alerts:
fixed alerts:
|
* refactor(docs): 饼图 & 玫瑰图文案和demo走查 * refactor(pie-label): 移除饼图 inner-label 自定义;G2 内置对 string offset 处理 详细:antvis/G2#2981 * docs(pie): 饼图 colorField 为必选,同时显式说明饼图label type有哪些类型 * feat(pie-label): 饼图 label offset 适配,自动根据标签 type 调整 offset * refactor(docs): 文档优化 * refactor(docs): 文档走查 * feat(testcases): 修复单测
* refactor(docs): 饼图 & 玫瑰图文案和demo走查 * refactor(pie-label): 移除饼图 inner-label 自定义;G2 内置对 string offset 处理 详细:antvis/G2#2981 * docs(pie): 饼图 colorField 为必选,同时显式说明饼图label type有哪些类型 * feat(pie-label): 饼图 label offset 适配,自动根据标签 type 调整 offset * refactor(docs): 文档优化 * refactor(docs): 文档走查 * feat(testcases): 修复单测
Checklist
npm test
passes修复问题