Skip to content

Rotate 2D Graph? #523

Answered by vasturiano
rsimon asked this question in Q&A
Jun 27, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@rsimon thanks for reaching out.

There isn't a built-in way to rotate the canvas itself, but you could achieve this by simply changing the x,y coordinates of the nodes themselves, based on your mouse handling events. For each of the nodes you can access and modify their current coordinates by manipulating the x and y attributes of each node object.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rsimon
Comment options

Answer selected by rsimon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants