Add option to switch between automatic or manual compilation #145
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OpenSCAD Playground Pull Request
Description
Adds option to switch between manual and automatic compilation.
When manual compilation is enabled, a Build button appears on top (in single and side-by-side mode). You can also use CTRL-ENTER or F5 to build.
Single mode:


Side by side mode:
Is there a related Issue open?
Nope
What kind of change does this Pull Request provide?
Please check the relevant options:
How can the changes of the Pull Request be tested?
Please describe the steps to test the changes, including any special or new setup required.
Problem it solves: I'm trying to work with a bit complex model which takes a while to render. In that case it's nicer to compile on request rather than on every keyboard input. I had lot of "hangs" which requires me to refresh the browser, which required me to copy/paste to a notepad just in case it lost the code on the required refresh. Those were because of refactorings, which cause errors/loops that kind of make sense; if I rename a function fn1 to fn2, but didnt update its usage, the rendering can get stuck.
Thanks for making this app. I like the online version more than the actual app, mostly because of how you can change camera to the object more naturally. I use it to prototype then render in the actual app.