You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, nice library! Love the idea of "Change" objects that you receive from hooks to decide what happens in the editor
I'm wondering, is it possible to make the nodes "zoom only on the X axis"? I might phrase it wrong, think of video editor timeline / Blender "strips" / a Gantt chart, where you can zoom and the nodes stretch horizontally, but vertically they dont change
I've hacked this in my prototype project by setting node widths when my zoom state changes. But it had many problems:
user looses some smooth scroll behaviours
nodes need to rerender a lot during the zoom
i found it hard to make zoom math correctly
It might also be that it's not entirely right use case for xyflow. But again, great library! It works well for node UIs
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, nice library! Love the idea of "Change" objects that you receive from hooks to decide what happens in the editor
I'm wondering, is it possible to make the nodes "zoom only on the X axis"? I might phrase it wrong, think of video editor timeline / Blender "strips" / a Gantt chart, where you can zoom and the nodes stretch horizontally, but vertically they dont change
I've hacked this in my prototype project by setting node widths when my zoom state changes. But it had many problems:
It might also be that it's not entirely right use case for xyflow. But again, great library! It works well for node UIs
Beta Was this translation helpful? Give feedback.
All reactions