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

Implement D3 Simulation to add a force boundary #304

Open
sorenjohanson opened this issue Jul 2, 2024 · 0 comments
Open

Implement D3 Simulation to add a force boundary #304

sorenjohanson opened this issue Jul 2, 2024 · 0 comments
Labels
enhancement New feature or request low priority

Comments

@sorenjohanson
Copy link
Collaborator

Proposed feature
Right now, nodes can be stretched out endlessly, which in turn can cause issues with browser-based limitations of the <canvas> element. When a canvas element is too big, it can no longer be exported as an image.

One solution would be to add a "simple" bounding box (not so simple, since it'd need to be calculated every time we move a node). A more flexible solution would be to use D3's existing physics simulation capabilities to implement gravity. This would cause nodes to be "pulled" back to the center if they exceed canvas size. Ideally, this should be simpler to implement (since it is a global configuration and not node-based) and could be accompanied by a bounding box.

@sorenjohanson sorenjohanson added the enhancement New feature or request label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

2 participants