Mind-maps margins

0 votes
asked Apr 7, 2020 in Question / help by astonfe
In mind-maps, if I use text without the surrounding box, left and right margin are different. Is there a way to have the two margins equal?
commented Apr 9, 2020 by albert (3,520 points)
• Which version of plantuml are you using?
• Please show what you got / where your problem lies.

1 Answer

0 votes
answered Apr 9, 2020 by Astonfe

I would like to explain better. I'm using version 1.2020.07beta8. The problem is shown by the code below. For example, note the margin before and after the word "Lkjhgf".


@startmindmap
skinparam {
    dpi 300
    padding 5
    shadowing false
}

<style>
mindmapdiagram {
node {
    margin 5
    padding 5
}
}
</style>

+ Zxcvbn
++ Qwertyuio
+++_ Asd
++++_ Mnbvclk
+++_ Lkjhgf
++++_ Dftretg
++ Asdfghj
@endmindmap

The picture is the following:

http://www.plantuml.com/plantuml/png/HOxFReGW48VlynJSETIawSqqDkcnFVJQIpCwWAYC1AYksVZkYqgoSFbzy-VBD35XICuoEVGGHyiU0pfn1v4VUIjUg-hC7eai6_5sKkoHvlLWZLDKi0FKCMsJUeSY8ulcCl5CgWWT1cEvE9x6FV_wfUo35B-tRcaPf1G_gmff-xTp1ladFYA1FDCtjqitZLVvQnnweqldKwUWaibqZ6lJ3z0efdBM0m00

...