Hiding complete interfaces, classes consumes space in rendering

0 votes
asked Apr 22, 2020 in Bug by Matthias
Hello,
when I create two interfaces e.g. like

interface Interface1 {
 + MySuperExtremeLongMethod1ABCDEFGHIJKLMNOPQRSTUVWXYZ
 + MySuperExtremeLongMethod2ABCDEFGHIJKLMNOPQRSTUVWXYZ
 + MySuperExtremeLongMethod3ABCDEFGHIJKLMNOPQRSTUVWXYZ
 + MySuperExtremeLongMethod4ABCDEFGHIJKLMNOPQRSTUVWXYZ
 + MySuperExtremeLongMethod5ABCDEFGHIJKLMNOPQRSTUVWXYZ
 + MySuperExtremeLongMethod6ABCDEFGHIJKLMNOPQRSTUVWXYZ
 + MySuperExtremeLongMethod7ABCDEFGHIJKLMNOPQRSTUVWXYZ
 + MySuperExtremeLongMethod8ABCDEFGHIJKLMNOPQRSTUVWXYZ
}

interface Interface2 {
}

Interface1 <|-- Interface2

When trying to hide the complete interface1 (e.g. in same diagram or others including the interface file) a lot of space for the long methods and the hidden interface is consumed in the generated image
 

hide Interface1

Interface1 <|-- Interface2

hide Interface1

The same problem happens when I use allowmixing with component diagrams and try to hide the Interface1 there as well. It seems like the rendering of the hidden element is done and then just set to hidden on the rendered image
commented Apr 22, 2020 by The-Lu (15,580 points)

Beware, because...

"It looks like this bug is a feature :-)"
(as another in https://forum.plantuml.net/11089/how-to-get-text-into-the-label)

Especially when we want to animate to an image.

Also, perhaps add new behaviour, like:

  • hidden while preserving space [good feature for animation] (--> the current behaviour)
  • hidden without preserving the space (with compact mode) [good feature to save space] (--> a new behaviour)

KR,
Th.

commented Apr 22, 2020 by The-Lu (15,580 points)

Here is the animated image example (while preserving space):

Animated Image

1 Answer

0 votes
answered Apr 22, 2020 by plantuml (244,880 points)
commented Apr 22, 2020 by The-Lu (15,580 points)

Hello,
With the two keyword:

  • "hide": hidden while preserving space [good feature for animation]
  • "remove": remove without preserving the space (with compact mode) [good feature to save space]

That is perfect!
Thanks a lot,

...