Applying style to multiline node in mindmap diagram

0 votes
asked Apr 28, 2020 in Question / help by sivaram
In the following diagram, I am trying to apply style n1 to a particular node, I am able to apply style to a single line node, where as for multiline node it gives my syntax error, what is the correct syntax?

@startmindmap
<style>
  mindmapDiagram {
  Scale 10
  LineColor Black
   node {
    FontName Roboto
    Padding 5
    Margin 15
   ' RoundCorner 11
    LineColor black
    BackgroundColor #cc33cc-#0c33ac
    FontColor white
    LineStyle 0
    LineThickness 1
    DiagonalCorner 50
  }
  rootNode {
   Padding 10
   FontStyle  Italic
}
  leafNode {
    Padding 7
 }
  .n1 {
    BackgroundColor #dc33cc-#0c33ac
    FontStyle  Italic
    FontColor white
  }
}
</style>
* Class Templates
**:template <typename T>
class cname{
void f1()
...
}; <<n1>>
@endmindmap

2 Answers

0 votes
answered Apr 28, 2020 by The-Lu (74,900 points)

Hello S.

A solution is to put '<<n1>>' just before the ';' for the multi-line node on mindmap:

Good job, and good customization,

Regards,
Th.

0 votes
answered Apr 28, 2020 by plantuml (295,800 points)

The actual syntax is not very logical (see here)

So in last beta http://beta.plantuml.net/plantuml.jar we now accept both syntax (yours and the actual one)

...