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.
No comments:
Post a Comment