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

Change node labels default alignment #1261

Closed
vincent0965 opened this issue Jul 13, 2022 · 1 comment
Closed

Change node labels default alignment #1261

vincent0965 opened this issue Jul 13, 2022 · 1 comment

Comments

@vincent0965
Copy link

Modification of the node default position in the settings has no effect

Sigma.js version: 2.3.0
Graphology version: 0.24.1
vue version: 2.6.14

My problem is that when I want to set label for nodes is on the bottom hand side or node inside, and I used to json file save nodes info.

I set defaultLabelAlignment:"bottom" and look at the code,but both its unavail, anything I am doing wrong?
https://github.com/jacomyal/sigma.js/pull/468/files

Is it possible to move the label to others position of the node?

@vincent0965 vincent0965 changed the title Chahge node labels default alignment Change node labels default alignment Jul 14, 2022
@jacomyal jacomyal modified the milestone: v3 Sep 23, 2024
@jacomyal
Copy link
Owner

I decided to take the same decision as for #1357:

After having been thinking a lot on this issue, I decided to not implement it. Right now, sigma's APIs is made so that people who have advanced usecases should write their own label renderers. That's what we do in the demo for instance.

Also, labels rendering APIs might change in the near future (to handle #1319 for instance), so I don't want to commit more code/debt into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants