Provide an ability to state class names for interfaces so that those are passed to svg path elements as css classes

+4 votes
asked Mar 14, 2019 in Wanted features by boshka (3,960 points)
edited Mar 14, 2019 by boshka

in relation to the question: http://forum.plantuml.net/7700/apply-css-style-classes-to-component-and-interfaces

could we do a simple thing?

@startuml

component A as A {

}

component B as B {

}

A -[class=ClassA ClassB]-> B: test

@enduml

So, that in the SVG the ClassA and ClassB would be passed to the related path element as

<path class="ClassA ClassB" ...

?

commented Mar 15, 2019 by boshka (3,960 points)
having the ability to define classes for interfaces and components will allow such thing as dynamic highlighting the desired elements on svg diagrams using javascript

1 Answer

0 votes
answered Mar 26, 2019 by dragonlode (140 points)
I made a framework for animating SVG diagrams from data obtained via a REST query. This uses class to define the object type to be animated and other attributes to specify data to that class such as its partial path in a tree structure, the rest being derived from its nesting with other objects. So, this leads on to the request that we should have, not just class but any attribute name.

A -[alias="somePath\",class=ClassA ClassB]-> B:test
...