Until now if you wanted to load a file in the editor, you used the loader-object. Where you would enter the file path and press enter.
I added url based file loading today. It would have been super easy if the editor had a base url. Currently I have multiple versions of the editor as files that I can open and run them through /fs-run/* endpoint.
Anyways, so if I want to run editor five I go to: (url)/fs-run/editor/five.json
for six: (url)/fs-run/editor/six.json
for canvas: (url)/fs-run/editor/canvas-editor.json
and so on.
Today I added:
Which basically says open utils/fileviewer using editor/canvas-editor
This one says open editor/canvas-editor source file using editor/canvas-editor. (editor-editor)
Whenever an element gets active (either using mouse or arrow keys[h, j, k, l]) the editor gets its x, y, w, h and zooms in on that region. This is useful when using only keyboard and don't wanna switch to mouse, the view will automatically follow the cursor. And also works with mouse :)
Just added a component that will run the code you give it and render it in the component itself. So a mini sandbox of sorts. Will be useful to make GUI widgets - inputs, renderers while working on things...
This will, should have access to both states... will run in editor runtime but will have access to iframe runtime through m()