-
-
Notifications
You must be signed in to change notification settings - Fork 28
Honor shapes in C4-Plantuml exporter #21
Comments
Since C4-PlantUML doesn't have a robot shape, I'm not sure it makes sense to convert a Structurizr shape into a sprite, particularly since there are multiple robot sprites. So I've done something different instead, which provides you with the ability to choose which sprite you want to use. For example, this DSL:
Will create this C4-PlantUML diagram: There are two things to note here:
|
@simonbrowndotje that's great! |
No, that's actually how the above example works ... it's using one of the new robot sprites that were added yesterday. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I think something is broken, now despite I added the property
Generated:
I tried to add the tag both before the braces, and inside with Before this change, my tags showed up in the |
It's hard to say what's going on without a full DSL example I'm afraid. |
test.dsl:
stricturizr-TheSystemLandscape.puml:
The tag "multi" does not show up in the .puml file. Just for this to compile - extra_styles.puml:
|
There's no element style for
|
Thanks for adding the shadow attribute! Regarding the behavior, with a previous version (tag
generates:
I think this previous behavior was convenient because it gave the user more freedom. |
Yes, I had to change this because there's a mismatch between how Structurizr treats tags vs how C4-PlantUML treats tags. Since this is an exporter from Structurizr, I decided to switch the semantics to better reflect how Structurizr deals with tags and styling, which provides a more consistent experience across the Structurizr renderer, the PlantUML exports, Mermaid export, etc. The old version used |
It's fine, I have everything I need. I just thought that with the previous behavior, I was free to add as many |
This is related to #11 but not exactly.
Now that C4-Plantuml added the robot shape, it would be useful that the exporter honors the Robot shape in styles:
That should be translated as the sprite "robot".
The text was updated successfully, but these errors were encountered: