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

Function as nodeRepulsion option #71

Closed
mikpom opened this issue Feb 27, 2018 · 4 comments
Closed

Function as nodeRepulsion option #71

mikpom opened this issue Feb 27, 2018 · 4 comments

Comments

@mikpom
Copy link

mikpom commented Feb 27, 2018

I was wondering if I could use arbitrary function as layout option nodeRepulsion argument?
Cose layout in the core allows that but I am getting an error if when using the same function for cose-bilkent.

Thanks,
Mikhail

@maxkfranz
Copy link
Member

This is a good idea, but I would argue that it's generally more useful to set functions for the edge options, like the edge length. Anyway, all element-related options should allow functions for per-element values -- like regular COSE -- not just node charge.

@DukeBaird
Copy link

A function for node repulsion or edge length would be quite helpful for me. I tried a quick modification but it seems to be more complicated that I had thought.

@bradh
Copy link

bradh commented Jul 7, 2018

I just added a PR for edge length if you want to try it out - see #74

@ugurdogrusoz
Copy link
Contributor

This is a duplicate of #1.

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

5 participants