3 ms·
Congradulations on your release. A few questions, if you will: 1) What happens if Lua execution blocks? Or if you construct an infinite loop of drawing primiti
by veli_joza 9y ago
Congradulations on your release. A few questions, if you will:
1) What happens if Lua execution blocks? Or if you construct an infinite loop of drawing primitives?
2) The page claims that you can switch between code representation and normal mode. Are they somehow kept in sync? For example, if I draw a circle, will it generate an API call in Lua code?
3) The interface seems very similar to Inkscape's. Is this intentional?
- ttd 9y agoI'm doing some small amount of sandboxing for the program-mode drawings, but right now there's nothing preventing an infinite loop of primitive creation from exhausting memory and eventually crashing the application. Switching between normal and program mode has several restrictions, but at no point will your drawing lose any objects (if it does, that's a bug). Creating objects in normal mode does not generate API calls, meaning in order to interact with those objects in program mode, you need to use the method I outlined in this comment: https://news.ycombinator.com/item?id=14555028 https://news.ycombinator.com/item?id=14555028. Additionally, switching back to normal mode after using program mode will "commit" the Lua commands, and the next time you switch back to program mode, it will be as if the drawing was entirely created in normal mode. This piece is a bit of a pain point for me, so this behavior may change in the future. Vexlio's interface was definitely inspired by Inkscape in some areas (perhaps most notably, the color bar at the bottom).