Hello,
Into the following diagram, the server is positioned on the left side:
@startuml
skinparam defaultTextAlignment center
!define Visio2kNet
https://raw.githubusercontent.com/eduardomozart/Visio2000-BasicNetworkShapes3D/main
!include Visio2kNet/puml/Server.puml
!include Visio2kNet/puml/Personal_computer.puml
!include Visio2kNet/puml/Laptop.puml
<style>
nwdiagDiagram {
server {
BackgroundColor none
LineColor none
}
}
</style>
nwdiag {
fs01 [description = "<U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><U+0020><$Server>\nServidor: SRV01\nPasta comp. : C:\Manuais\nCaminho: \\SRV01\Manuais"]
network LAN {
fs01
client01 [description = "<$Personal_computer>\n Cliente\n <U+0020><U+0020><U+0020><U+0020><U+0020>X:"]
client02 [description = "<$Laptop>\n Cliente\n <U+0020><U+0020><U+0020><U+0020><U+0020>X:"]
client03 [description = "<$Personal_computer>\n Cliente\n <U+0020><U+0020><U+0020><U+0020><U+0020>X:"]
client04 [description = "<$Personal_computer>\n Cliente\n <U+0020><U+0020><U+0020><U+0020><U+0020>X:"]
client05 [description = "<$Personal_computer>\n Cliente\n <U+0020><U+0020><U+0020><U+0020><U+0020>X:"]
}
}
@enduml
But the server is left aligned, as seem here:
https://ibb.co/ZKJfsRV
I would like to know if there's a way to center align the server as seem in:
https://ibb.co/p0kfF6t
I tried to search the nwdiag documentation but it seems that PlantUML uses a heavily modified version of nwdiag and it seems to render and behave different than the source.
I also would like to know if it's possible to right align the text bottom the server on the right as seem into the last image. I was able to do something similar adding a fake server after the fs01, but it's description makes the laptop have a higher width than the others clients, which right now also seens the case on the first computer.
Also, I would like to know if there's any parameter to center align the nwdiag descriptions as it doesn't seems to be possible to center align it using the "DefaultTextAlignment" skinparam.
Also, it doesn't seems to be possible to use <<stereotype>> notation to apply custom styles for specific elements, it would be a nice feature to have.
Also, I couldn't find a way to hide/style the line (arrow) that links the server with the LAN subnet and "hide stereotype" doesn't seem to work also. I tried to create pseudo-hidden elements to somehow make the server aligned to center but I was unable to.
Also, it seems that the network "description" and "address" is always aligned to the right, there's anyway to change it's alignment? e.g. when using the following as network name:
network DMZ {
description = "Root DFS/\n\
├── Diagramas\n\
├── Manuais\n\
├── Memorandos \n\
├── Modelos\n\
├── Programas\n\
├── Público\n\
├── Relatórios\n\
└── Segurança"
}
I'm unable to align it to the left and the tree is drawn wrong. I know, it's a bit dirty, but the tree isn't rendered as expected because of the right alignment of network label.