hrgdavor / jscadui

MIT License
30 stars 9 forks source link

feature: data url export #88

Closed hrgdavor closed 2 months ago

hrgdavor commented 9 months ago

Export current script as gzipped data url

platypii commented 9 months ago

Not exactly this feature, but related:

I would like to make it so that if you open jscad.app and then hit ctrl-s for save, it pops up a save dialog, and then you can save the file locally, and continue editing it in the browser while updating the saved file any time you hit ctrl-s.

This will make it easy for users to go from experimenting in the browser, to saving their first designs as a .js file.

This idea inspired by the https://excalidraw.com/ workflow.

hrgdavor commented 9 months ago

oh, nice, that is a cool idea. I like it.

if I drag drop a script, browser will allow saving but with a browser based dialog.

image

I will have to use some other shortcut to render if I do not want to save file. But saving and re-render is actually the perfect choice for CTRL+S.

hrgdavor commented 9 months ago

I would like to make it so that if you open jscad.app and then hit ctrl-s for save,

made this in #92