Skip to content
Discussion options

You must be logged in to vote

Hello, and thank you for the kind words 🙏 Really glad to hear you find the library useful!
1. Difference between node.position and getPositionInFlow(...)
• node.position represents the coordinates of the node inside the flow (its logical canvas position).
• getPositionInFlow(...) is meant for translating external event coordinates (e.g. a mouse click from the screen) into flow coordinates. If you pass a node’s position into it, you’ll naturally see a difference because that method isn’t intended for converting internal positions back.
2. Centering nodes horizontally
The library doesn’t provide a built-in method for aligning nodes only on the X or Y axis. It only has centerCanvas, which re…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yll0rd-irembo
Comment options

You must be logged in to vote
0 replies
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