Net2Vis icon indicating copy to clipboard operation
Net2Vis copied to clipboard

Name label overlap with each other

Open sky1ove opened this issue 3 years ago • 3 comments

Name label overlap with each other as shown in the picture ssss It could be solved if the label is rotated a little bit.

sky1ove avatar Sep 04 '21 22:09 sky1ove

Thank you for that remark. Adding an option to rotate the labels as you suggested would be a great addition. I currently don't have the time to address this, I hope to get though most of these issues in October. Otherwise if you want to implement something, I can give you pointers as to where to change code.

Sparkier avatar Sep 05 '21 11:09 Sparkier

Thank you for replying. I wish I could help, but I'm still new to this area, so I'm not sure if I can help. You can let me know the location of the pointers. I can try it.

On Sun, Sep 5, 2021 at 6:17 AM Alex Bäuerle @.***> wrote:

Thank you for that remark. Adding an option to rotate the labels as you suggested would be a great addition. I currently don't have the time to address this, I hope to get though most of these issues in October. Otherwise if you want to implement something, I can give you pointers as to where to change code.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/viscom-ulm/Net2Vis/issues/26#issuecomment-913134080, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIXO3EPCOPXYEVDTJJDXFTUANGWBANCNFSM5DNWHSSA .

sky1ove avatar Sep 05 '21 19:09 sky1ove

This would probably require another input like this: https://github.com/viscom-ulm/Net2Vis/blob/0ffca8207c24da70f6f45dfd01ca924c3b782732/net2vis/src/components/preferences/NetworkPreferencesComponent.js#L237-L244

including a state param that reflects this setting.

Then, in https://github.com/viscom-ulm/Net2Vis/blob/0ffca8207c24da70f6f45dfd01ca924c3b782732/net2vis/src/components/network/NameLabelComponent.js, you want to apply the rotation depending on this state variable.

Sparkier avatar Oct 25 '21 15:10 Sparkier