Tuesday 28 November 2023

Hide or remove unlinked components in PlantUML

PlantUML display all the components by default. You can hide or remove unlinked components using hide or remove commands.

 

Syntax

hide @unlinked
remove @unlinked

 

defaultBehvior.txt

@startuml

component C1
component C2
component C3
component C4
component C5

[C1] --> [C2]
[C1] --> [C5]

@enduml

Above snippet generate below diagram.


 


 

Hide unlinked components

hideUnlinkedComponents.txt

@startuml

hide @unlinked

component C1
component C2
component C3
component C4
component C5

[C1] --> [C2]
[C1] --> [C5]

@enduml

Above snippet generate below diagram.




Remove unliked components

 

removeUnlinkedComponents.txt

@startuml

remove @unlinked

component C1
component C2
component C3
component C4
component C5

[C1] --> [C2]
[C1] --> [C5]

@enduml

 

Above snippet generate below diagram.


 

  

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment