jerosoler / Drawflow

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

how to set default zoom to 0.6 ? #677

Closed Gsmraaj closed 1 year ago

Gsmraaj commented 1 year ago

hi sir,i want to set the default zoom to 0.6 .

jerosoler commented 1 year ago

Try:

 const editor = new Drawflow(id);
    editor.zoom = 0.6;
    editor.start();
    editor.zoom_refresh();
Gsmraaj commented 1 year ago

thank you so much sir , it worked