Recent

Author Topic: Diagrams from DOT?  (Read 909 times)

indydev

  • Full Member
  • ***
  • Posts: 118
Diagrams from DOT?
« on: May 15, 2024, 06:07:22 pm »
Am looking for a diagramming control/library that can display from DOT instructions. For the moment, I am outsourcing to graphviz on linux and displaying the result. But this is not ideal.

Looking around I have found TSimplegraph (which has been abandoned?) where DOT was one of the possible roadmap goals.  TAChart is specialized for charts and graphs, and not generalized diagrams, and no mention of DOT. TECScheme looks to be the closest, but there doesn't seem to be a DOT ready import. It isn't mentioned as a goal either (that I can find). I also was unable to find example code. I just see text files in the examples folder. There's a wiki with a nice picture, but I haven't found an example of how to use it. If there is one I just haven't found, I'd appreciate a pointer. That said, there doesn't seem to be any mention of DOT for it.

DOT is a common protocol for diagrams and has been around since the 1990's so it would be nice to have something for it in Lazarus IMO.


Leledumbo

  • Hero Member
  • *****
  • Posts: 8785
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Diagrams from DOT?
« Reply #1 on: May 15, 2024, 06:12:55 pm »
For the moment, I am outsourcing to graphviz on linux and displaying the result. But this is not ideal.
Why? GraphViz is well established and piping is possible. If you want to do it harder you can wrap libgraphviz, but basically if a clean room DOT implementation in Pascal is what you're looking for, I think you have to be the one contributing instead.

indydev

  • Full Member
  • ***
  • Posts: 118
Re: Diagrams from DOT?
« Reply #2 on: May 15, 2024, 06:28:31 pm »
Because I need to run this on Mac, Windows, and Android. I develop in Linux, but most of the users are on Windows and Mac. Also, I didn't say it was impossible. Just not ideal.

I figured there wouldn't be anything going on with it, but I thought I'd ask.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8785
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Diagrams from DOT?
« Reply #3 on: May 17, 2024, 08:21:56 am »
Because I need to run this on Mac, Windows, and Android. I develop in Linux, but most of the users are on Windows and Mac. Also, I didn't say it was impossible. Just not ideal.

I figured there wouldn't be anything going on with it, but I thought I'd ask.
Like apps using it through pipes, you can preship the binary for all target OSes. Well it's a little cumbersome since the binary is not standalone. Otherwise, the other two options I mentioned above are available. Wish you could take the last one and be the contributor instead ;)

 

TinyPortal © 2005-2018