beta-style: improve descendant pseudo selector on Mindmap

0 votes
asked Nov 10, 2020 in Wanted features by The-Lu (48,920 points)

Hello PlantUML team,

This day: we test descendant pseudo selector on WBS and Mindmap;

From:

And with the same code:

1/ This is OK for WBS

@startwbs
<style>
.mexicoStyle * {
     BackgroundColor lightblue
     FontColor Blue
     RoundCorner 10
}
</style>
* World
** America
*** Canada
*** Mexico <<mexicoStyle>>
**** Chihuahua
*** USA
**** Texas
*** New York
** Europe
*** England
*** Germany
*** Spain
@endwbs


2/ But: KO for Mindmap (Chihuahua is not colored in blue)

@startmindmap
<style>
.mexicoStyle * {
     BackgroundColor lightblue
     FontColor Blue
     RoundCorner 10
}
</style>
* World
** America
*** Canada
*** Mexico <<mexicoStyle>>
**** Chihuahua
*** USA
**** Texas
*** New York
** Europe
*** England
*** Germany
*** Spain
@endmindmap

Then:

  • Could we have got the same result between WBS and Mindmap, about descendant pseudo selector?


Thanks for your support,
Regards,
Th.

commented Jul 15 by The-Lu (48,920 points)

Hello PlantUML team,

Is it possible to do the same thing with `:depth` (currently KO on Mindmap and WBS), as:

MindMap

@startmindmap
<style>
:depth(3) * {
  LineColor transparent
  BackGroundColor transparent
  Padding 2
}
</style>
* r0
** a
*** a1
**** a11
*** a2
**** a21
***** <color:red>a211
** b
*** b1
**** b11
**** b12
*** b2
** c
@endmindmap

WBS

@startwbs
<style>
:depth(3) * {
  LineColor transparent
  BackGroundColor transparent
  Padding 2
}
</style>
* r0
** a
*** a1
**** a11
*** a2
**** a21
***** <color:red>a211
** b
*** b1
**** b11
**** b12
*** b2
** c
@endwbs​

See initial request here:

1 Answer

0 votes
answered Jul 22 by plantuml (278,480 points)
selected Jul 25 by The-Lu
 
Best answer

Thanks for your examples.

All those issues should be finally fixed in last snapshot.

Tell us if you find other issues!

Best regards,

...