3 ms·
This is explained by a comment from the author (bootywizard) above: Author here - it does but it doesn't, which is why it doesn't always work so well. It never
by ben174 9y ago
This is explained by a comment from the author (bootywizard) above:
Author here - it does but it doesn't, which is why it doesn't always work so well. It never actually keeps track of the shapes in a seperate data model - the text itself is the only data model. When you resize, it retraces out the lines that need editing. I did this as the expected use case is for diagrams in code, where diagrams may be copy pasted in and out of the tool and I'd lose any underlying models that I was working with. For fun: https://github.com/lewish/asciiflow2/blob/master/js-lib/draw.. https://github.com/lewish/asciiflow2/blob/master/js-lib/draw....
- rbonvall 9y agoIt makes sense. That's a good design decision.
- gowld 9y agoThis could be fixed by being more expansive/creative with choice of glyphs, so that two intersecting lines get represented by a glyph that uniquely corresponds to the 2 glyphs that overlap at that position (possibly also encoding z-depth stack in the glyph choice)