[Style][Mindmap] How to apply a style on a SPECIFIC link ?

0 votes
asked Jan 8 in Question / help by kasra (1,080 points)

Hi,

Let's say we have this very simple mindmap diagram 

@startmindmap

<style>

arrow {

'this is applied to all arrows

}

</style>

* root

** A

** B

@endmindmap

very simple goal : 
 link between root -> A in blue and lineThickness of 3px

 link between root -> B in red and lineThickness of 5px

Is it possible ? I don't see a way of targeting a link 

commented Jan 8 by The-Lu (76,660 points)

Hi K.,

That is not yet possible (or implemented).

See similar request here:

Regards,
Th.

commented Jan 8 by kasra (1,080 points)

Hi,

here are my different tests 

@startmindmap

title By default the style of the class n1 is propagated to links also

<style>

.n1{

linethickness 10

}

</style>

* root

** A

** B <<n1>>

*** B1

*** B2

@endmindmap



@startmindmap

title OK because the style of the class n1 is wrapped inside a node style

<style>

node {

.n1{

linethickness 10

}

}

</style>

* root

** A

** B <<n1>>

*** B1

*** B2

@endmindmap



@startmindmap

title we can apply a style to a node and a different one to all outgoing links

<style>

node {

.n1{

linethickness 10

}

}

arrow {

.a1{

linethickness 3

}

.a2{

linethickness 10

}

}

</style>

* root

** A

** B <<n1>> <<a1>>

*** B1

*** B2

@endmindmap



@startmindmap

title it seams that by default the last one of the category is applied

<style>

node {

.n1{

linethickness 10

}

}

arrow {

.a1{

linethickness 3

}

.a2{

linethickness 10

}

}

</style>

* root

** A

** B <<n1>> <<a1>> <<a2>>

*** B1

*** B2

@endmindmap

Hope it helps to understand the possibilities with nested style.

So for our feature maybe we could have :

** B <<n1>> <<l1_s1,l1_s2,...,ln_sn;l2_s1,l2_s2,...,l2_sn;...;lk_s1,...?lk_sn;>>

I have no idea if it makes sense with other plantuml region. ( the choice of the delimiter may vary ).  lk_sn means link x style n

so if we had

** B

*** B1  

*** B2

....

*** Bn

l2_s1,l2_s2,...,l2_sn  we be applied to the link B-B2

Anyway, I hope to see this feature.

Thanks for your work.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...