Skip to content

is there any way to place node based on center of node's position? #2827

Answered by moklick
Pleizz asked this question in Q&A
Discussion options

You must be logged in to vote

You can use the nodeOrigin prop. By default it's [0, 0]. You want to set it to [0.5, 0.5]. https://reactflow.dev/docs/api/react-flow-props/#nodeorigin

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Pleizz
Comment options

@rickyzhangca
Comment options

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