jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.41k stars 713 forks source link

on Zoom out not able to see all the nodes in single view (Full view) if nodes were more #863

Open Sri-5555 opened 1 month ago

Sri-5555 commented 1 month ago

I have a drawflow with more number of nodes added and connected each other.

With existing I was not able to view all the node in the view even with full zoom out

Can you help me with how to view all the added node and connection in a single view.

image

jerosoler commented 1 month ago

You can adjust the value of the zoom minimum: editor.zoom_min = 0.01

Sri-5555 commented 1 month ago

even with editor.zoom_min = 0.01 i was not able to achive this Is there any other way to zoom out more than 0.1 to see the whole canvas

jerosoler commented 1 month ago

image

For example in demo add en in console:

editor.zoom_min = 0.1

And zoom out with mouse.

Zoom in drawflow is transform in scale of css. transform scale minium value is 0

Sri-5555 commented 1 month ago

Thanks @jerosoler it works.

  1. Is there any way to bring all the node(more nodes were added) to visible when zoomed in by clicking a button
  2. Is there any way can we find the particular node is in the view or not