Hide Entities in WBS Diagram?

0 votes
asked Jun 7, 2024 in Question / help by schmidtjano (240 points)
edited Jun 7, 2024 by schmidtjano
Hello!

I am trying to add some <<filler>> entities in my WBS diagram to help align other entities better for pure aesthetics reasons. I have set a style to make these entities' border, background and content white. However, the connectors/arrows from their predecessors are still visible.

I have tried `hide <<filler>>` without success.
I have tried fiddling with the `arrow` style settings as follows, also to no avail:

.filler {
  BackgroundColor lightyellow
  LineColor yellow
  FontColor yellow
  arrow {
   :depth(3) {
    LineColor orange
   }
  }
 }

Please see example diagram below (here I turned the three hidden entities yellow so you can see their locations):

https://www.plantuml.com/plantuml/svg/lLDDZzCm5BptLrZY0fNuQ1SM2KNHbduWf0fAAxWxoTl4MjTlzUmGLOZ_pdCQWr6jLKwrSeXdnZCUExcpJfBh2ZiHcNKd3Vb4y6obP4toA7vDn2j2TFv5V9JbGqtOccg96aaycxsTRzwzOMQh30pO-dQzsCmOsv-5P814BzgWSMTHroW70tBmeQ90NJ7mc-DiIG0c6HZMXRYmXU2Umc9_Rt_4gjKmia-CnNrc8_j88knyLcn9m1Ht7VhUjwPq2arwIyj-ZEkNthVFSB9u-NJE-twCQ3NoTC9PIvtEMyrNjwlrY5wZ4aFWlT8QA9ceLTsu4sYDtN-60Rhm2nkB9D5rVgZWqJNFRrxqqzWGIPeQ_jqmFppyI_Pw-CFyV2fsI4vgyNs_5Lb6Y2xFFJxDn1PhyTamUluN66TuceizM71Y9wtja2hc-mDccjai-8LLWvjVzqbZmSm199KD2uPF8HZpsc-jAX_4Zf1F4CIwKYvo7pJBnXUBu-FFAkZoVlTVMtV91wELj4s1CZHeDOJ5J6xwAvmnTRxC2seUKo7pq3u2YKLrL2PXoaGbla0tpFFaIGIjB_zNk62P-WciJFJu0UHKANMKE28X7thS97kSh8FZzIeSf0Oh5ZKOTwLG9fTQNIUF4-_0L5rX_m00

Does anyone have a tip how to hide the filler entities or format them to be white-on-white?

Many thanks in advance!

JOS

#wbs #style #show-hide-control #hide-connector #hide-arrow

1 Answer

0 votes
answered Mar 7 by dickmaley (4,160 points)

Here is a solution

image

@startwbs
 <style>
 wbsDiagram {
 .root {
  BackgroundColor #142F50
  LineColor #E6EAF1
  RoundCorner 50
  FontColor white
  FontStyle bold
  }
 .screen {
  BackgroundColor white
  LineColor #142F50
  FontColor #142F50
  FontStyle bold
 }
 .dashboard {
  BackgroundColor #142F50
  LineColor white
  RoundCorner 10
  FontColor white
  FontStyle bold
  arrow {
   LineColor white
   }
  } 
 .dashboard2 {
  BackgroundColor #142F50
  LineColor white
  RoundCorner 10
  FontColor white
  FontStyle bold
  arrow {
   LineColor red
   }
  }   
 .module {
  BackgroundColor #142F50
  LineColor #142F50
  RoundCorner 10
  FontColor white
  FontStyle bold
  arrow {
   LineColor red
   }
  }
 .function {
  BackgroundColor #CCCCCC
  FontColor #142F50
  FontStyle bold
  LineColor #142F50
  }
 .tab-function {
  BackgroundColor #777777
  FontColor white
  FontStyle bold
  LineColor #142F50
  RoundCorner 10
  }
 .modal {
  BackgroundColor #D2D6DE
  FontColor #142F50
  FontStyle bold
  LineColor #142F50
  RoundCorner 0
  }
 .filler {
  BackgroundColor white
  LineColor white
  RoundCorner 0
  FontColor white
  arrow {
   :depth(3) {
    LineColor white
   }
  }
 }

 }
 </style>

 * Portal URL <<root>>

 **< Log In <<screen>>
 ***> Reset Password <<modal>>
***< Portal <<screen>>

 ****> Global Search <<function>>
 ****< Quick Profile Edit <<modal>>
 ****< Change Password <<tab-function>>
 ****> Log Out <<tab-function>>

 ****< Dashboard <<dashboard>>
 *****< Filler1 <<filler>>
 *****< Filler2 <<filler>>

 ****> Super Admin <<module>>
 *****< Add New
 *****> Search <<function>>
 *****< Edit
 *****> Archive <<function>>

 ****< Vertical <<dashboard2>>
 *****> Filler3 <<filler>>
 *****> Search <<function>>
 

 ****> System <<module>>
 *****< Add New
 *****> Search <<function>>
 *****< Edit
 *****> Archive <<function>>

 ****< Sales Agent <<module>>
 *****< Add New
 *****> Search <<function>>
 *****< Edit
 *****> Archive <<function>>

 ****> Client <<module>>
 *****< Add New
 *****> Search <<function>>
 *****< Edit
 *****> Archive <<function>>

 @endwbs

...