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

Nodes are too long #4

Open
wangyu-kelly opened this issue Oct 31, 2014 · 8 comments
Open

Nodes are too long #4

wangyu-kelly opened this issue Oct 31, 2014 · 8 comments

Comments

@wangyu-kelly
Copy link

For some flat structure, nodes' names are too long to have an overall picture. So when the nodes have long names, you may hide some words of these names, and only show the whole name when your mouse is moved on these nodes.

@leungwensen
Copy link
Collaborator

woking on this one

@leungwensen
Copy link
Collaborator

done

@xumingming
Copy link
Contributor

目前的显示方式是把一个模块的父级的名字也写在模块的名字里面,比如模块 aaa-bbb-ccc 如果在com.alipay下面,那么现在是显示成 com.alipay/aaa-bbb-ccc的,而这个 issue 实现之后,这种名字都只能显示一部分了,除非把父级的名字(com.alipay)从名字里面拿掉, 否则图就没办法看了。比较实际的办法可能是把父级以一个单独的字段保存到node的属性里面去,比如在另外一个 issue 里面提到的tag或者type字段

@leungwensen leungwensen reopened this Nov 3, 2014
@leungwensen
Copy link
Collaborator

这的确是个问题。。。那要不这样,分析出来的模块名称再做一次处理,自动提取type和部分包名?这个issue后续和自动着色那个一起做吧。

做这个的话就有几个问题:

  • 在后台做还是前端做;
  • type是自动分析还是可配置的;
  • type可配置的话是用配置文件还是用参数;

@leungwensen
Copy link
Collaborator

还是说不要缩短节点名称比较好啊?

@xumingming
Copy link
Contributor

感觉先不要缩短比较简单点。其实即使把com.alipay这种包名从名字里面拿掉,有时候名字还是会很长,特别是 java 里面。

@leungwensen
Copy link
Collaborator

好的,那保留toolTip然后先不缩短吧。

leungwensen added a commit that referenced this issue Nov 4, 2014
@leungwensen
Copy link
Collaborator

已回退,保留issue以后改进

leungwensen added a commit that referenced this issue Nov 4, 2014
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

3 participants