tldraw / tldraw-v1

A tiny little drawing app. This is the original 2021-2022 version, released under MIT.
https://old.tldraw.com
MIT License
61 stars 36 forks source link

[feature] DOT language support #60

Closed ayalpani closed 8 months ago

ayalpani commented 1 year ago

Hi Steve, thanks for tldraw. Did you ever think about supporting DOT Language for automatically creating Graphs?

$ echo 'digraph { a -> b }' | tldraw > mygraph.tldr

I believe it would further boost acceptance if it could be used during a developers build process to visualise the project's architecture and processes. After initial build of my tldr file, I would then move things around on the canvas to actually look nice and all changes would somehow be persisted and restored upon opening my tldr file. Something like that:

image

https://beta.tldraw.com/r/v2_9UzERvhtDIGIAUniphcvk

linonetwo commented 1 year ago

I think this can be done by writing a compiler that generates tldr json format. You can try build one yourself as 3rd party project using https://github.com/antlr/antlr4

steveruizok commented 1 year ago

Yes, we've done some prototyping on a feature like this. It worked quite well! But there will be a lot more work to do to go from prototype to feature. I'd like to get a start on it, then release and see where the community takes it.

steveruizok commented 8 months ago

Hi, closing this as we won't be adding new features to this version of tldraw. Check https://github.com/tldraw/tldraw for the latest!