Re:Show HN: Vexlio – Create precise, beautiful diagrams
by jpfed on Wednesday June 14, 2017 @02:46PM
(#14554991)
Am I correct in thinking that diagrams have something like a "program-mode" part and a "normal-mode" part? From a new diagram, if I place some objects in normal mode and then switch to program mode, there's no textual representation of those objects.
[ Parent
| on HN ]
Re:Show HN: Vexlio – Create precise, beautiful diagrams
by ttd on Wednesday June 14, 2017 @02:50PM
(#14555028)
In your scenario, the way to gain access to the objects you created in normal mode (e.g. to modify their properties) is by using the `Layer:getObject()` method to retrieve objects by their index. You can see an example in the "Modifying Existing Drawing Elements" in the program mode section of the user guide: https://www.vexlio.com/user-guide/#program-mode
Re:Show HN: Vexlio – Create precise, beautiful diagrams
by mipmap04 on Wednesday June 14, 2017 @03:00PM
(#14555134)
I think it would be nice if, when drawing shapes, it would generate the Lua code and the program mode text would persist when switching between modes. I definitely realize that would be quite the task.