Skip to content

Instantly share code, notes, and snippets.

@askalee
Created June 21, 2018 05:54
Show Gist options
  • Save askalee/71be4a4ca3fa5195add85a50f027711f to your computer and use it in GitHub Desktop.
Save askalee/71be4a4ca3fa5195add85a50f027711f to your computer and use it in GitHub Desktop.
plantuml: Group items with a hidden package for better layout
' reference: http://forum.plantuml.net/3648/invisible-packages-improve-layout-diagrams-visible-packages
@startuml
skinparam shadowing false
'skinparam backgroundColor red
skinparam package {
fontColor blue
stereotypeFontColor red
}
skinparam package<<Layout>> {
borderColor Transparent
backgroundColor Transparent
fontColor Transparent
stereotypeFontColor Transparent
}
package p1 <<Dummy>> {
class Foo1 <<Other>>
}
package p2 <<Layout>> {
class Foo2
}
@enduml
@brlin-tw
Copy link

Thanks for the gist, appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment