beta-style: is style management local or global? [Deployment diagram vs Mindmap]

0 votes
asked Feb 2, 2021 in Question / help by The-Lu (64,340 points)

Hello PlantUML,

From last release (v1.2021.1), with style enhancement on Deployment diagram, We have got some questions:

  • Is style management local or global?
    Local with persistence or only global?

Here are some examples "Mind-map vs Deployment":

DiagramMind-mapDeployment
Code
@startmindmap
* a
** b\na b c
<style>
node {
  FontColor green
  HorizontalAlignment right
  LineColor blue
}
</style>
** c\na b c
<style>
node {
  FontColor red
  LineColor red
}
</style>
** d\na b c
@endmindmap
@startuml
node "a"
node "b\na b c"
<style>
node {
  FontColor green
  HorizontalAlignment right
  LineColor blue
}
</style>
node "c\na b c"
<style>
node {
  FontColor red
  LineColor red
}
</style>
node "d\na b c"
@enduml
Output
[See on PlantUML online server]
[See...]
ObservationOn Mind-map, style seems to be local with persistence.
(That's good cheeky)
And on Deployment, style is suddenly global!
The last style overwrites all the others.
(And that is the question...)

In fact, we got used to the mind-map style behaviour! wink

Thanks for your support,
Regards,
Th.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...