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

Automatic scaling to fit the viewport. #29

Closed
mbostock opened this issue May 12, 2016 · 4 comments
Closed

Automatic scaling to fit the viewport. #29

mbostock opened this issue May 12, 2016 · 4 comments

Comments

@mbostock
Copy link
Member

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).

@mbostock mbostock assigned mbostock and unassigned mbostock May 12, 2016
@dballesteros7
Copy link

This is referring to the old d3.layout.force.size right? I

@mbostock
Copy link
Member Author

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⟩.

@gka
Copy link

gka commented Mar 10, 2017

maybe a d3.forceViewport(width, height) would make sense.

@Fil
Copy link
Member

Fil commented Jun 25, 2020

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

@Fil Fil closed this as completed Jun 25, 2020
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

4 participants