evanw / fsm

Finite State Machine Designer
297 stars 145 forks source link

Add import function to load a previously created fsm #8

Open jessetilro opened 7 years ago

jessetilro commented 7 years ago

It is already possible to store and later load back in a diagram by manipulating the data stored in the browser's local storage. However, doing it through the interface would make it easier.

I would like to suggest adding an export function for JSON (practically dumping the local storage data to a file), in combination with an import function (simply loading this data from a file back into local storage).

roman-ku commented 7 years ago

+1 I would find it useful as well.

gbroques commented 6 years ago

There's a fork with this functionality at https://merfoo.github.io/fsm/

jessetilro commented 6 years ago

@gbroques Thanks, interesting! Too bad this functionality wasn't merged into the upstream repository. Just for further reference, the fork repository is located at https://github.com/Merfoo/fsm.

gbroques commented 6 years ago

Yup it's a shame the upstream repository is missing this functionality.

Merfoo's fork even lets you resize the canvas, and press Ctrl-Z / Ctrl-Y for Redo / Undo.