SLIDE editor webapp
Experimental web app to preview and edit Geometry Stash slide files. Most of the custom JS I wrote is in draw.js. You are free the download the source and do whatever you like with it. Pull requests will be accepted. There is no support provided for this web app.
The interface has three panes
- Tree structure view on the left
- Canvas preview in the upper right
- Textarea view in the lower right
- Paste slide file code into the textarea in the lower right. The editor will update the canvas and tree structure view on the left.
Edit the tree structure view OR the textarea. The canvas preview and other untouched input panes will be updated. If your edit is not proper JSON, the JS update loop will stop executing. The preview and input panes will not update to reflect any changes afterwards until the ellipse element is removed. I recommend you keeping the browser JS console open to monitor for errors. 3 (optional) Press Refresh button in the top menu bar to manually update all three panes with the contents of the master internal dictionary/map that the web app has been updating. *The master dictionary holds the contents of the last edit that is valid JSON. * If you are not monitoring for errors in console, this is your best way of confirming that input is valid or not!
- To use the MOVE arrow buttons, you must enter an offset in the Move by text box in the top menu bar.
Setting Text element text key value to a number will cause invalid JSON due to code treating the number as not a string. Workaround is to edit the value directly in the textarea pane.
Safari does not support the HTML canvas ellipse element and the JS update loop will stop executing when an ellipse element is inputted. The preview and input panes will not update to reflect any changes afterwards until the ellipse element is removed. This app was developed and tested on Google Chrome so please use Chrome with this.