tuanchauict / MonoSketch

An ASCII graph drawing app
https://monosketch.io
Apache License 2.0
367 stars 9 forks source link

Fix line anchor char is overriden when overlapping lines #599

Closed tuanchauict closed 5 months ago

tuanchauict commented 5 months ago

With this test case

{"shapes":[{"type":"L","i":"02-AAeP9cfntWDQPlfHwGZgIcScyLj","idtemp":true,"v":-835964721,"ps":"H|46|21","pe":"V|89|21","jps":["46|21","89|21"],"e":{"su":"S1","ase":true,"asu":"A6","aee":true,"aeu":"A1","du":"1|0|0"},"em":false},{"type":"L","i":"02-AAeP9cfklJ5FYqo9J6KY3la-Ecx","idtemp":true,"v":2000417950,"ps":"H|62|21","pe":"V|89|21","jps":["62|21","89|21"],"e":{"su":"S1","ase":true,"asu":"A6","aee":true,"aeu":"A1","du":"1|0|0"},"em":false}],"connectors":[]}

Before

├──────────────────────────────────────────▶

After

├───────────────┼──────────────────────────▶