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

The position constraint should be parameterized per-node. #12

Closed
mbostock opened this issue Apr 20, 2016 · 1 comment
Closed

The position constraint should be parameterized per-node. #12

mbostock opened this issue Apr 20, 2016 · 1 comment
Assignees

Comments

@mbostock
Copy link
Member

mbostock commented Apr 20, 2016

This would make it easier to apply dynamic position constraints.

Should the position (focus) be re-evaluated at every tick, rather than just at initialization time, though? That would enable this sort of thing:

screen shot 2016-04-20 at 10 45 59 am

screen shot 2016-04-20 at 10 45 53 am

It might be worth optimizing if the position is a constant, then?

@mbostock mbostock self-assigned this Apr 20, 2016
@mbostock
Copy link
Member Author

Also, if the x or y is NaN for a given node, that coordinate should not be constrained.

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

No branches or pull requests

1 participant