sol2uml icon indicating copy to clipboard operation
sol2uml copied to clipboard

Add PlantUML output option

Open naddison36 opened this issue 6 years ago • 5 comments

Here's an example PlantUML file https://gitlab.com/oax/asset-gateway-poc/blob/master/doc/dappsys.puml Here's what it renders as https://miro.medium.com/max/3072/1*JsZItNqHas8XV4zWar7U1Q.png

naddison36 avatar Nov 07 '19 01:11 naddison36

I would really like to have this in order to be able to manually edit, rearchitect, and change the level of detail in the generated image.

I looked into the code, and was surprised to see that at no point does it actually pass through the uml language. Where would be the right place to generate the uml? I'm thinking ./src/ts/converter.ts, in a similar manner to convertUmlClasses2Dot()?

maurelian avatar Mar 28 '20 02:03 maurelian

The code to convert the parsed Solidity classes to dot format is in the dotUmlClass function on the UmlClass class. In hindsight, I should have separated the generation of the dot format from the in-memory representation of the Solidity classes. I'll give it a go this weekend.

naddison36 avatar Apr 03 '20 22:04 naddison36

I would love to see this too. PlantUML output quality is a lot higher, even the added colour makes the result visually a lot easier to digest.

aspiers avatar Jan 06 '22 15:01 aspiers