terrastruct / text-to-diagram-site

Compare syntax, layouts, outputs between languages for generating diagrams with text.
https://text-to-diagram.com
GNU General Public License v3.0
397 stars 15 forks source link

make the list of PlantUML "Features" more fair #49

Open VladimirAlexiev opened 11 months ago

VladimirAlexiev commented 11 months ago

Continuing #40 , I looked at the list Features at the bottom of https://text-to-diagram.com/?b=plantuml. Here are my comments on features marked as not supported by PlantUML

In addition:

VladimirAlexiev commented 11 months ago

Here's a fixed diagram for https://text-to-diagram.com/?b=plantuml&example=chess . I removed the square brackets, used long arrows for the arrows going across the cluster:

@startuml
' Actors
"Hans Niemann" as hans

rectangle "defendants" {
  "Magnus Carlsen" as mc
  "Play Magnus Group" as playmagnus
  "Chess.com" as chesscom
  "Hikaru Nakamura" as naka

  mc -> playmagnus: Owns majority
  playmagnus <-> chesscom: Merger talks
  chesscom -> naka: Sponsoring
}

' Accusations
hans -> defendants: suing for $100M

' Offense
naka --> hans : Accused of cheating on his stream
mc --> hans : Lost then withdrew with accusations
chesscom --> hans: 72 page report of cheating
@enduml

Here is the result (which for me is rendered in github using https://chrome.google.com/webstore/detail/plantuml-visualizer/ffaloebcmkogfdkemcekamlmfkkmgkcf). I think it's quite competitive to the d2 result:

image

VladimirAlexiev commented 11 months ago

Here is a fixed diagram for https://text-to-diagram.com/?b=plantuml&example=text . Compile error: PlantUML does not support rich text is a very unfair statement. The only thing I couldn't do is include quotes in the text, since that's used to delimit the text

@startuml
rectangle description as "
== Hope is a good breakfast, but it is a bad supper

* Look into my eyes and try to forget that you have a Macy's charge card!
* The **Tree of Learning** bears the noblest fruit, but noble fruit tastes bad.

  There is nothing new under the sun, but there are lots of old things we don't know yet

* //Ambrose Bierce//
"

rectangle x

description -> x
@enduml