ChristopherChudzicki / math3d-react

A user-friendly 3d graphing calculator for the web. Create, share, and animate 3d mathematical scenes.
https://www.math3d.org
Mozilla Public License 2.0
249 stars 34 forks source link

how to save visualizations offline (local) and reload them later? #318

Open richlysakowski opened 2 years ago

richlysakowski commented 2 years ago

This is a totally cool tool that I would like to use to learn graphing equations more, but I need basic functionality to save parameter sets and equations offline to reload them later.

Documentation or explanations would really help. Do you have any design specifications that you can post in this repo? That would help a lot so we can see the design center and requirements. Documentation is missing. Are there any instructions for use? It is unclear how to link variables, functions, and sliders to build animations.

What is the PostgreSQL database on the backend used for?

o-b-o commented 2 years ago

There are some examples on the top right corner where it says "examples", they include things like these:

https://www.math3d.org/sliders_intro

If you wanted to save visualizations locally, you would have to run a math3d node on your machine, and run the postgreSQL server on your machine

o-b-o commented 2 years ago

The PostgreSQL backend is used to save the visualizations on the server.

o-b-o commented 2 years ago

If running a server is too much, you can find a Share button, next to the Examples one, which saves your work to the online server (which hasn't failed me yet). And you can reload your work by going to the link. (Just don't lose it!)

ChristopherChudzicki commented 2 years ago

but I need basic functionality to save parameter sets and equations offline to reload them later.

I suspect you want the "Share" functionality that @o-b-o mentioned:

If running a server is too much, you can find a Share button, next to the Examples one, which saves your work to the online server (which hasn't failed me yet). And you can reload your work by going to the link. (Just don't lose it!)

The local database stuff is more for local development, e.g., if you wanted to change how math3d works or contribute a feature back to this repository.

As @o-b-o mentioned, though, you do need to keep track of the URLs yourself. There's no login system in math3d (yet...) so we can't show a "list of your previously saved graphs" or something like that.