reaviz/reagraph

2D Graph over-rotates on node select

Closed this issue · 0 comments

Describe the bug

When selecting a node on a 2d graph that's been rotated 180 degrees, the graph rotates back 180

Steps to Reproduce the Bug or Issue

  1. Rotate a 2d graph 180 degrees
  2. Select a node
  3. See the graph unnecessarily rotate back 180

Expected behavior

I expect the graph to rotate to the closest flat angle on node select

Screenshots or Videos

Screen.Recording.2024-03-01.at.10.51.45.AM.mov

Platform

  • Reagraph Version: 4.15.18

Your Example Website or App

No response

Additional context

No response