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

辐射型布局如何控制辐射方向和辐射角度 #2484

Closed
1 task
Youmyin opened this issue Dec 29, 2020 · 2 comments
Closed
1 task

辐射型布局如何控制辐射方向和辐射角度 #2484

Youmyin opened this issue Dec 29, 2020 · 2 comments
Labels
feature Outdate This issue is too old to be resolved

Comments

@Youmyin
Copy link

Youmyin commented Dec 29, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

当树结构变成辐射树的时候,需要将direction改为RL,最终的辐射树每一层总是会辐射成一个圈,即使是在数据很少的情况下,比如第二层只有4个节点,但是任然会呈一个圈状辐射出去,这样就浪费了页面布局,会显得很空旷。如果使用普通的radial布局,辐射方向是随意的,当我想要从顶至下,范围为0-180°的一个半圆形布局时无法实现

What does the proposed API look like?

给radial的layout增加两个属性
(1)direction----方向
类似树图的几个方向的定义,比如从上至下辐射,从左至右辐射等
(2)angle-----角度
把辐射限定在一个范围内,参数类型为Array,包括开始角度和结束角度,如果范围较小而数据过多会发生重叠,可以nodeSize进行碰撞检测失效,提供此辐射方向下比较合适的辐射角度

@Yanyan-Wang
Copy link
Contributor

感谢意见,由于该 feature 需求量不大,暂时没有考虑进行排期支持。所以欢迎社区共建。

Copy link

github-actions bot commented Dec 8, 2023

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.
这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Outdate This issue is too old to be resolved
Projects
None yet
Development

No branches or pull requests

3 participants