-
-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERD] The size of horizontal lines is not modified according to the number of characters #874
Comments
Hello @claudio-salvio, If all are on the same direction... left to right direction As: @startuml
left to right direction
<style>
header {
HorizontalAlignment center
}
</style>
header "ERD, vertical arrow size variation: example"
hide circle
entity "Entity1" as e1 {}
entity "Entity2" as e2 {}
entity "Entity3" as e3 {}
entity "Entity4" as e4 {}
e1 "e1 e2 " }o.down.o{ "e2 e1 " e2
e2 "e2 e3 " }o..down.o{ "e3 e2 " e3
e3 "e3 e4 " }o..down..o{ "e4 e3 " e4
@enduml If that can help, |
Hello @The-Lum Thanks for your suggestion. Unfortunately it doesn't work for me because the class diagrams and ERDs that I usually use have both vertical and horizontal display. However, when I saw your proposal I remembered that I had once seen something similar while I was building a chart. It is important to note that for As seen below, the horizontal layout example I gave in my original post also looks wrong (in two ways) if you only enter @startuml (%filename())
''title %substr( %filename(), 0, ( %strpos( %filename(), "." ) ) )
hide circle
left to right direction
<style>
header {
HorizontalAlignment center
}
</style>
entity "Entity1" as e1 {}
entity "Entity2" as e2 {}
entity "Entity3" as e3 {}
entity "Entity4" as e4 {}
e1 "e1 e2 " }o.right.o{ "e2 e1 " e2
e2 "e2 e3 " }o..right.o{ "e3 e2 " e3
e3 "e3 e4 " }o..right..o{ "e4 e3 " e4
footer output generated date: %date("yyyy.MM.dd' at 'HH:mm")
@enduml Replacing I hope you enjoy your weekend, |
Hello I found a workaround for the horizontal line sizing problem. Beyond this, it would be desirable to fix the bug so that the horizontal lines behave like the vertical ones when varying the number of characters used to define them. @startuml "ERD, horizontal arrows failed sizing example 'fixed' with skinparam nodesep"
hide circle
skinparam nodesep 150
<style>
header {
HorizontalAlignment center
}
</style>
entity "Entity1" as e1 {}
entity "Entity2" as e2 {}
entity "Entity3" as e3 {}
entity "Entity4" as e4 {}
e1 "e1 e2 " }o.right.o{ "e2 e1 " e2
e2 "e2 e3 " }o..right.o{ "e3 e2 " e3
e3 "e3 e4 " }o..right..o{ "e4 e3 " e4
footer output generated date: %date("yyyy.MM.dd' at 'HH:mm")
@enduml Greetings, |
In entity-relationship diagrams, the size of horizontal lines is not modified according to the number of characters (e.g. dots) placed on the line.
It would be very useful if horizontal lines behaved like vertical lines.
In vertical lines, the length is modified in relation to the number of characters placed on the line.
I suspect that this situation is repeated in class diagrams, since ERDs are a specialization of those.
I would like to take this opportunity to thank all those who contribute with their effort to make PlantUML possible. 👏
Greetings,
Claudio
ℹTIP: To toggle the display between code and image of PlantUML diagrams contained in web pages accessed from browsers, I have found the "Markdown Diagrams" extension very useful.
It is available -at least- for Firefox, Chrome and Edge.
The text was updated successfully, but these errors were encountered: