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

Panning and Zooming does not work with 8.3.0 und 8.4.0 #551

Open
bonnm opened this issue Jul 22, 2024 · 0 comments
Open

Panning and Zooming does not work with 8.3.0 und 8.4.0 #551

bonnm opened this issue Jul 22, 2024 · 0 comments
Labels

Comments

@bonnm
Copy link

bonnm commented Jul 22, 2024

Describe the bug
Panning and Zooming does not work. Graph is rendered correctly, Shape, colors, text, edges, everything fine. Even draggin single nodes does work. But panning the whole graph or zooming in/out with mouse wheel has no effect. The graph also is not centered but always drawed in the upper left corner.

To Reproduce
I'm using Angular 16, with bootstrap 4.6 and d3-selection in Version 1.4. to get rid of thline rendering bug #487. Even a very simple graph with no text in nodes and simplest edges does not work. In Edge/Chrome console, there are the following messages when the graph is initially rendered and zoomed:
Error: attribute height: Expected length, "-Infinity".
Error: attribute transform: Expected number, "translate(NaN,NaN)".
Error: attribute transform: Expected number, "…x(0.33,0,0,0.33,NaN,NaN)".

Expected behavior
Panning the whole graph does move the graph and zooming in/out with mouse wheel resizes the graph.

ngx-graph version
8.3.0, 8.4.0
(8.2.* works!)

@bonnm bonnm added the bug label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant