Skip to content

v2.12.0

Latest
Compare
Choose a tag to compare
@kirchsth kirchsth released this 09 Jun 17:08

New Features & Important Bugfixes

Lay_...() functions have correct orientation in combination with LAYOUT_LANDSCAPE()

Important

PlantUML v2.12.0: Layouts may change with this bugfix.
When LAYOUT_LANDSCAPE() is combined with Lay_*() calls, elements are now positioned correctly based on the new implementation.
Previously, the implementation swapped up/left and down/right (see issue 376).
To restore the old behavior, set !NO_LAY_ROTATE=1. For more details, see Compatibility mode NO_LAY_ROTATE=1.

@startuml 
' the bugfix can be deactivated with following statement
' !NO_LAY_ROTATE = 1

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
LAYOUT_LANDSCAPE()

Person(a, "A")
System(sUp, "B up\nbefore bugfix left")
System(sRight, "C right\nbefore bugfix down")
System(sDown, "D down\nbefore bugfix right")
System(sLeft, "E left\nbefore bugfix up")

Lay_U(a, sUp)
Lay_R(a, sRight)
Lay_D(a, sDown)
Lay_L(a, sLeft)

HIDE_STEREOTYPE()
@enduml

https://www.plantuml.com/plantuml/uml/NP11Qxj04CNl-oackVmJ-2TIwAbGY5MX1Hk3qKEW8AkEkg2hh6Djldt73PIGc-_nU_EUUnX96fgw5iG_e0OXd-fA_K0XDUG89Sg2rBSaB65Mr43Ljsq_Arq31maxrCJ1rJ7AGlUInL7Y9W6ymfCGAwMBTYeH6g9XV74S8-TzpJUcV1hH5Bqc3k-BldE6LkfbmswaibMvuptlJekLVePE9qT2mrRcSK8gZMO_C2kuBqeJhZtwPyyz1Pkj42SqOwytyZ-itVLMdA-SxJPZEh3n1jFmfNEiUlFtborMTCV5gcw8KG_CylL8b_sixsYV9SE-zHzPU-0E3hc9uS1MFiBJmAG8vJLBb-syTsjLR9LTTJDyQop5Dnqksjxc_Fk77sJd98Y3ABdOzpYWBlcfVW40

IntelliJ live templates supports AsciiDoc too

Thanks to @marcelstoer, the IntelliJ live templates can now be used with AsciiDoc as well. See details in Live Templates for IntelliJ (#392).

Tables with missing header and property columns are correct displayed/filled

Before this fix, the following table would display only 2 columns (header had only 2 columns) instead of 4, and the $col3="col3" would be shown in column 2 (3 in name was "ignored"). (#384)

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

' at b) header has only 2 columns, therefore col3 is not displayed
SetPropertyHeader("", $col2Name="header 2")
AddProperty($col1="col1")
AddProperty("", $col2="col2")
AddProperty(" ", " ", "", $col4="col4")
' at a) col3 is displayed in column 2 and not 3
AddProperty("", $col3="col3")

Container(c, "Container")
@enduml

https://www.plantuml.com/plantuml/uml/RL1DQyCm3BtdLsXci1RQX2Kv3GeTlUomZSBOUJYnjXWSETWA8_z-icbpABiOhFVnz7ICh0FFeolkBFLkDWW3ynIVgYhet_B7yZ1tSyJGUs8aBdi_LfFJb3JxoCRPhZgr-tCQVRwzLgEEZ456NoTHQ4iOoYdv5m-W6Rej3AWD1XXq14zkWHfwx-QHuWvum83VFc0QDM0Za6SmDahYWgRuG3u7Fs7WvIMxR9JQmRsGwtSzua5Tl6krBPwDkN8tYV5uKEczGLPzHczr2WJEpvNNPbuhl5n7RzTDrot1qgMHLDDaSeVctzGckpNYLgpNslIIjlu4EY8PEU0V

What's Changed

New Contributors

Full Changelog: v2.11.0...v2.12.0