ricktu288 / ray-optics

A web app for creating and simulating 2D geometric optical scenes, with a gallery of (interactive) demos.
https://phydemo.app/ray-optics/
Apache License 2.0
1.31k stars 220 forks source link

Grid setting not saved in json files #103

Closed dorrington closed 11 months ago

dorrington commented 1 year ago

Hi.

Is there any specific reason why the Grid, Snap To Grid, and Lock Objects setting shouldn't be saved in the json files?

I have this working on my local copy (backwards compatible), so am happy to submit the changes if this is a desirable feature.

Any thoughts?

Cheers, Adrian.

ricktu288 commented 1 year ago

I just checked the history and found that this behavior was already there when I first added the "export to JSON" feature in 2011, a long time before I made this project available on GitHub. I forgot what I was thinking about at that time, and I didn't think of it since that.

As for the current version, yes, saving those in the JSON file is a desirable feature. Please submit that.