The mindmap's root node could never be centered now

0 votes
asked Jun 2, 2022 in Bug by SuperSaiyanGod (340 points)
edited Jun 4, 2022 by SuperSaiyanGod
All of a sudden, all of my mindmaps' root nodes failed to center. The style is right, of course. It happened a few months ago, the last moment everything was fine, but the next moment everything went bad.

It was just like every root node was added by an invisible leading character. So what could be the problem?

1 Answer

0 votes
answered Jun 3, 2022 by plantuml (295,000 points)
Sorry about that!

Could you post a non-working example? It would help.

Thanks!
commented Jun 4, 2022 by SuperSaiyanGod (340 points)

Now any example is not working correctly. For example, if you're using IntelliJ IDEA and have installed the latest PlantUML plugin, the auto-generated mindmap will be a good demonstration, if the following style specification has been added:

<style>

rootNode {
    FontName 黑体
    FontStyle bold
    FontSize 18
    LineStyle 8.0;3.0
    LineColor red
    BackgroundColor orange
    LineThickness 1.0
    RoundCorner 0
    Shadowing 0.5
    HorizontalAlignment Center
}

</style>
commented Jun 4, 2022 by SuperSaiyanGod (340 points)

I could have added a picture here, but every time I tried, it warned me "Maximum length is 8000 characters". It's so annoying!

commented Jun 4, 2022 by The-Lu (64,340 points)

Hello all,

Here is an example, with your style:

@startmindmap
<style>
rootNode {
    FontName 黑体
    FontStyle bold
    FontSize 18
    LineStyle 8.0;3.0
    LineColor red
    BackgroundColor orange
    LineThickness 1.0
    RoundCorner 0
    Shadowing 0.5
    HorizontalAlignment Center
}
</style>
* root node
** some first level node
*** second level node
*** another second level node
** another first level node
* another root node
@endmindmap

See also this another (comment or answer on) defect:

If that can help PlantUML team for debugging,
Regards.

commented Jun 4, 2022 by The-Lu (64,340 points)

Then, here is a minimal example:

@startmindmap
<style>
rootNode {
    HorizontalAlignment Center
}
</style>
* root node
* another root node
@endmindmap

commented Jun 4, 2022 by SuperSaiyanGod (340 points)
Thanks for your reply! So is there an elegant way to solve this problem?
...