Ideas for extra Sandcastle tools
We've had internal talks about ideas for a Sandcastle 2.0 but recently there have been a couple ideas for improvements that could maybe be added to the current Sandcastle. This issue can be used to track discussion about these ideas and any related ideas that come up.
- A screenshot tool for capturing canvas contents (in the past I've used this Sandcastle to print canvas contents as a url)
Another idea is to add a button to capture the current camera parameters and print them to the console for quickly setting up a scene with a fixed view. This Sandcastle gives an example.
This would be quite useful, but the tricky part is how to give the toolbar button access to the viewer variable which is function-scoped in each HTML file.
- Something like monaco editor for writing code in the sandcastle
- Better layout for looking through demos. Smaller image, with descriptions and tags/keywords for searching them?
- Search/filter for demos
When prototyping in Sandcastle, it is easy to lose a lot of work if the browser crashes, because the browser URL doesn't update. My current practice is to manually save updated links in a separate document.
I can think of 2 ways to streamline this process:
- Add a button to "save to browser history", which would update the browser URL via
window.history.pushState() - Automatically update the browser URL whenever the user re-runs the code
Either way, the different versions of the code would then be saved in browser history.