hide @unlinked / remove @unlinked does not hide/remove unlinked parent

0 votes
asked Oct 4, 2023 in Bug by boshka (3,960 points)
edited Oct 4, 2023 by boshka
Please see the following code:

@startuml

hide @unlinked

rectangle a as a {
  component b as b {
  }
}
rectangle c as c {
}

b--c: test

@enduml

http://www.plantuml.com/plantuml/umla/JOsn3KCX34Jxcy8B_0LIiOenLe829W9JHUmUIFMRAzuxwONXt7tM0hnoKWhJIhQt9g2hEDkpA37nsFC5aRJwQQRc50-CVxYmRcyvGhPOGBmkUP3hS22efHFw0G00

The expectation is that "a" would be hidden/removed, while "b" and "c" would be displayed since linked ("b" to be displayed without parent "a")

There is also the same issue about "remove @unlinked"

I admit that the existing behavior might be a feature and not bug. In this case, can a modifier be implemented which would cause my expected behavior to happen?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...