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?

  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
* Class Templates
**:template <typename T>
class cname{
void f1()
}; <<n1>>

2 Answers

0 votes
answered Apr 28, 2020 by The-Lu (19,740 points)

Hello S.

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

Good job, and good customization,


0 votes
answered Apr 28, 2020 by plantuml (250,820 points)

The actual syntax is not very logical (see here)

So in last beta we now accept both syntax (yours and the actual one)