cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Ideas for extra Sandcastle tools

Open ebogo1 opened this issue 3 years ago • 3 comments

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)

ebogo1 avatar Apr 20 '22 18:04 ebogo1

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.

ptrgags avatar Apr 20 '22 18:04 ptrgags

  1. Something like monaco editor for writing code in the sandcastle
  2. Better layout for looking through demos. Smaller image, with descriptions and tags/keywords for searching them?
  3. Search/filter for demos

jdfwarrior avatar Jul 02 '22 21:07 jdfwarrior

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.

jjhembd avatar Feb 19 '24 17:02 jjhembd