Package is no more fitted to isn’t smallest size

0 votes
asked Aug 3 in Question / help by luclaf (120 points)

Hello,

Thanks first for your great work. 

I’m not sure if it’s a bug or a question, but packages are not fitted to their smallest size when included. Previously I’m quite sure this will work perfectly.

The problem is that when included in the \ISA\LL\Metamodel\Metamodel.puml file, the ISA\LL\Concepts package is still big as if the hidden classes were present.

You will find joined the source code I use. In the out directory there is the PNG files.

This is true either when I use VSCode or directly plantuml.1.2018.9.jar. I have graphviz-2.38.

Can you help me ?

Regards.

Luc

https://1drv.ms/u/s!AlDbZD9x5BNilcYQ8sQmTl-789d-tA

1 Answer

0 votes
answered Aug 3 by plantuml (177,280 points)

Yes, you are right. There have been a slight change. Usually, we try to avoid this, but sometimes we have to somehow impact ascending compatibiliy.

Now, you have to use "remove" keyword instead of "hide" (some info here http://forum.plantuml.net/7337/classes-then-show-only-classes-bearing-given-class-diagram )

In last version, "hide" is used to hide elements (while keeping their original space) and "remove" really remove the elements from the diagram (as the old "hide" keyword was working).

Here is an example:

@startuml
package A {
class A001
class A002
class A003
}
package B {
class B001
class B002
class B003
}
hide A002
remove B002
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIf8JCvEJ4zLS5IevahEIImkLd0qC314C8qGJ6EkMhXo9xXo9uHo9uHo9uZoZCoKL8WfHQcv-MMf42KEgNafGBi1

I hope that you don't have too many diagrams to change.

Regards,

commented Aug 7 by luclaf (120 points)
Hi,
Many thanks for your answer.
Changing hide to remove is straightforward with VS Code: so no problem at all.
Have a good day.
Luc
...