C4-PlantUML icon indicating copy to clipboard operation
C4-PlantUML copied to clipboard

Show/Hide Container or Click to Expand

Open takumade opened this issue 2 years ago • 1 comments

Is there an option to expand and collapse container or I am dreaming

  1. Expand shows all the components
  2. Collapse hides all the components

Been searching for that and I cant find that anywhere

takumade avatar Jul 31 '22 01:07 takumade

Not sure if this is what you mean, but as described in the "Hide attributes, methods..." section of the PlantUML Class Diagram manual, the hide attribute allows hiding elements.

As C4 PlantUML adds "stereotypes" (which look like <<foo>>) to elements, these can be used to hide elements of a specific type.

The following elements could be hidden:

  • <<boundary>>
  • <<container>>
  • <<person>>
  • <<system>>
  • <<external_person>>
  • <<external_system>>
  • <<external_container>>

(besides using hide rectangle or hide database)

To give you an idea, using the Container diagram for Internet Banking System as example.

Going through each element in turn, we get:

hide <<boundary>>
hide <<container>>
hide <<person>>
hide <<external_system>>

Potherca avatar Jul 31 '22 10:07 Potherca

This issue has been automatically marked as stale because it has not had activity in the past 60 days. It will be closed in seven days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 30 '22 18:09 stale[bot]