Comments (8)
Removing the whole styles {}
block also preserves the behavior.
from export.
I think I spotted it:
properties {
#plantuml.includes https://raw.githubusercontent.com/plantuml/plantuml-stdlib/master/tupadr3/font-awesome-5/users.puml
#c4plantuml.tags true
#c4plantuml.legend false
plantuml.sequenceDiagram true
}
Commenting and uncommenting c4plantuml.legend false
makes the difference between showing or not the stereotype.
from export.
It's the call to SHOW_LEGEND()
in the PlantUML that's causing the stereotypes to appear or not. These two examples both render differently:
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
System(SoftwareSystem, "Software System")
SHOW_LEGEND()
@enduml
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
System(SoftwareSystem, "Software System")
@enduml
You'll need to ask the C4-PlantUML team why this happens ... I suspect it's because you generally want the legend or the stereotypes, but not both, and not neither.
from export.
Why not adding HIDE_STEREOTYPES()
when c4plantuml.legend
is false
then?
from export.
Anyways I can ask to confirm.
from export.
I found this plantuml-stdlib/C4-PlantUML#37 which could be related.
from export.
@simonbrowndotje they confirmed, I think structurizr should just add the HIDE_STEREOTYPES()
call as I suggested above, since your hypothesis was correct.
from export.
Didn't test it yet but fix should look like:
--- a/src/main/java/com/structurizr/export/plantuml/C4PlantUMLExporter.java
+++ b/src/main/java/com/structurizr/export/plantuml/C4PlantUMLExporter.java
@@ -165,10 +165,13 @@ public class C4PlantUMLExporter extends AbstractPlantUMLExporter {
@Override
protected void writeFooter(View view, IndentingWriter writer) {
+ writer.writeLine();
if (includeLegend(view)) {
- writer.writeLine();
writer.writeLine("SHOW_LEGEND()");
}
+ else {
+ writer.writeLine("HIDE_STEREOTYPE()");
+ }
super.writeFooter(view, writer);
}
from export.
Related Issues (20)
- Extend the legend based on styles/tags HOT 2
- Allow "returning" arrows with different name in sequence diagrams HOT 11
- Use C4 definitions from plantuml standard library instead of including from git HOT 3
- Dark mode interfaces not well supported by Mermaid exporter HOT 1
- Add a network diagram (nwdiag) exporter based on the deployment specification
- Mermaid diagrams have a yellow border
- Export for filtered views HOT 6
- WebSequenceDiagrams exporter only shows relationship descriptions defined in the dynamic view
- WebSequenceDiagrams exporter has a triple >>> ending the stereotype
- Different fonts in Linux and Mac HOT 9
- Use Plantuml stdlib C4 include syntax rather than Github URL based HOT 2
- Only add the model elements tags to the elements in the generated C4Plantuml files HOT 1
- Show additional properties / details in deploymentNode diagrams HOT 5
- StructurizrPlantUMLExporter crashes when used in native binaries
- Internal property 'structurizr.dsl.identifier' on exported diagrams should be hidden HOT 2
- shadow property for both plantuml exporters HOT 2
- Export workspace as DSL.json
- link to further down diagram HOT 1
- Multiple groups with same name not rendered correctly (PlantUML) HOT 3
- Support for C4-PlantUML's ComponentDb and ComponentQueue in C4PlantUMLExporter?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from export.