Git Product home page Git Product logo

Comments (5)

coldacid avatar coldacid commented on May 18, 2024 1

Unfortunately, PlantUML doesn't support custom shapes and probably never will. You can override the Person and Person_Ext macros to use the actor shape but even styled it leaves much to be desired in the output; I tried it a couple times and the results were unappealing compared to just using rectangles.

As for generating C4-PlantUML output with the Structurizr .NET libraries, you might be interested in https://gist.github.com/coldacid/465fa8f3a4cd3fdd7b640a65ad5b86f4 which is a writer for workspaces and individual views using C4-PlantUML.

from c4-plantuml.

haakoo avatar haakoo commented on May 18, 2024

I see, I'll stick with this for now then.

Another quick question, shouldn't the files be .iuml or have I misunderstood the difference between between the file endings?

And the files should have @startuml and @enduml - no?

from c4-plantuml.

coldacid avatar coldacid commented on May 18, 2024

If you look at WriteProlog() and WriteEpilog() in PlantUMLWriterBase you'll see that it does emit the @startuml and @enduml tags for each diagram. As for file extension, PlantUML honestly doesn't care and will parse out diagrams from any text files with those tags. .puml is pretty normal for standalone diagrams though, with .pinc or .iuml for included files.

from c4-plantuml.

haakoo avatar haakoo commented on May 18, 2024

I was thinking of C4.puml and the three other files in this repo.

Anyway, closing this as it's not much we can do before PlantUML changes.

from c4-plantuml.

ccll avatar ccll commented on May 18, 2024

You could just put a PlantUML sprite icon in Person rectangle like this:

!include <C4/C4_Container>
!include <awslib/AWSCommon>
!include <awslib/General/Users>
...
Person(user, "Users\n\n<$Users,color=white>\n\nUsers of our system")
...

image

from c4-plantuml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.