beta-style: HorizontalAlignment management for Component or Deployment diagram

0 votes
asked Jan 25 in Wanted features by The-Lu (30,700 points)

Hello PlantUML team,

How to manage, by style (for component or deployment element):

  •     HorizontalAlignment (left, right or center)

Here is an example, where this field seems to be ignored:

@startuml
<style>
component {
  HorizontalAlignment center
}
database {
  HorizontalAlignment center
}
</style>

component c [
a
abc
a b c d
]

database d [
a
abc
a b c d
]
@enduml


[See on PlantUML online server]

Thanks for yours works,
Regards,
Th.

related to an answer for: How can I align the text of components?

1 Answer

0 votes
answered Feb 2 by plantuml (257,860 points)
selected Feb 2 by The-Lu
 
Best answer
Thanks for the report.

This should be fixed in last release V1.2021.1
commented Feb 2 by The-Lu (30,700 points)
edited Feb 2 by The-Lu

Thanks for this correction.

But after some tests, I am disappointed:

  • Style is local or global?

I open a new case for that. wink

Thanks a lot for your support,
Regards,
Th.

...