-
Notifications
You must be signed in to change notification settings - Fork 377
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
Automatic scaling to fit the viewport. #29
Comments
This is referring to the old d3.layout.force.size right? I |
No, it is referring to a hypothetical new force that automatically scales to fit the viewport. This is different from d3.forceCenter, which simply sets the average position (the unweighted centroid) of the nodes to a given position ⟨x,y⟩. |
maybe a d3.forceViewport(width, height) would make sense. |
Closing this issue due to inactivity. Please do not hesitate to add a comment or reopen the issue if you think it is still worth pursuing. see also #89 |
I recall implementing this in the past, but I forgot why I didn’t include it. It seems like it would be a nice thing, perhaps in conjunction with d3.forceCenter. Probably it should be specified as a radius; possibly maximum and minimum radii (as measured from the center of mass).
The text was updated successfully, but these errors were encountered: