Skip to content

[mindmap] how to apply style to all of a branch #920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hyansuper opened this issue Feb 14, 2022 · 2 comments
Closed

[mindmap] how to apply style to all of a branch #920

hyansuper opened this issue Feb 14, 2022 · 2 comments

Comments

@hyansuper
Copy link

hyansuper commented Feb 14, 2022

how can I do something like the following so that b1, b11 and b12 are all in color lightgreen?

@startmindmap
<style>
mindmapDiagram {
	b1{
	BackgroundColor lightgreen
	}
}
</style>
+ root
++ b1
+++ b11
+++ b12
++ b2
@endmindmap
@The-Lum
Copy link
Collaborator

The-Lum commented Feb 14, 2022

Hello @hyansuper,

It is not yet implemented.
See Wanted features od Defect here:


But, here is a possible workaround:

@startmindmap
+ root

<style>
node {
     BackgroundColor lightgreen
}
</style>

++ b1 
+++ b11
+++ b12

'Then goto normal BackgroundColor 
<style>
node {
     BackgroundColor #f1f1f1
}
</style>

++ b2
@endmindmap

Regards.

@The-Lum
Copy link
Collaborator

The-Lum commented Jan 19, 2023

Hi all,

[This is an Issue Review]
This is now fixed (from 2022 Summer) with:

@startmindmap
<style>
mindmapDiagram {
  .lg * {
    BackgroundColor lightgreen
  }
}
</style>
+ root
++ b1 <<lg>>
+++ b11
+++ b12
++ b2
@endmindmap

  • Thanks @hyansuper for the report.
  • Thanks PlantUML team for your work.

Regards.

@The-Lum The-Lum closed this as completed Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants