ncase / loopy

A tool for thinking in systems
http://ncase.me/loopy/
Creative Commons Zero v1.0 Universal
1.64k stars 211 forks source link

[feature-request] zoom out #6

Closed denistsoi closed 4 years ago

denistsoi commented 7 years ago

zooming out, i.e. via browser isn't supported. Creating system flows that require more than say, ten nodes (which is the current maximum capacity of the current canvas)

Seanny123 commented 7 years ago

Being able to pan the canvas would probably also help with this.

ultimape commented 7 years ago

This also would require a more effective saving mechanism as it quickly runs into the limits of how much data can be stored in the URL.

merspieler commented 7 years ago

For data, which is too long for the URL (the max length is different in different browsers), the user could be prompted to copy a string out of a text field (like in cookie clicker) and to save it, e.g. in a text file, of let the user download a text file which he/she has to upload when loading again.

Ryuno-Ki commented 7 years ago

I wonder, whether createObjectURL would help here …

cbarina commented 6 years ago

This also would help with longer text in the nodes - you can zoom in/out to read as some things need more than a word or two :)

xklech commented 5 years ago

@ncase We have quite big models we would like to persist and simulate and as stated in this issue area is too small.

What I was thinking about was to use something like http://ianli.github.io/jquery-infinite-drag/ or something similar so u can move around the model. I tried it but I somehow got stuck that I somehow got the feeling that almost everything is bound to Browser window size. Boundaries for canvas, etc.

Do you have please some advice about where to start looking? Or some other ideas about how to achieve bigger models now we have persistent storage possibility?

1000i100 commented 4 years ago

I'm planning to improve it (zoom on mouse position), but you can now zoom in/out and pan in #20 : https://1000i100.github.io/loopy/2/

1000i100 commented 4 years ago

zoom finalized and camera mode added.

1000i100 commented 4 years ago

@xklech does actual zoom and move do the job for your use-case ?

@denistsoi if it does what you want, you probably can close the issue (even if it will not be merged here but still maintained in my fork).