How to place a new node inside viewing are of the flow. #428
-
Sometimes my users pan to some area, and adding a node makes it appear in a non-visible location. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Without some code example I can't really tell what you're asking of me. So your visible area is something like |
Beta Was this translation helpful? Give feedback.
Without some code example I can't really tell what you're asking of me.
If you want to know what the currently visible viewport is, you can check the
viewport
prop on the store.It will give you an
x
,y
andzoom
value.So your visible area is something like
x
+ the width of your container,y
+ the height of your container.