Change diamond style to HIDDEN

0 votes
asked Nov 8 in Wanted features by Everlaast (120 points)
Current diagram

@startuml
object parent
<>helper
parent <|-- helper
helper -- child1
helper -- child2
helper -- child3
@enduml

I need to make the diamond invisible, or replace it with a dot

see also:
https://github.com/plantuml/plantuml/issues/1623
https://stackoverflow.com/questions/42550901/plantuml-script-for-inheritance
https://github.com/mermaid-js/mermaid/issues/5894

1 Answer

0 votes
answered Nov 10 by The-Lu (74,900 points)

Hello E.,

From:

For a dot, You can use interface as:

@startuml
object parent
() " " as helper
parent <|-- helper
helper -- child1
helper -- child2
helper -- child3
@enduml

And if we make the diamond invisible, we make a missing element or a hole appear on the diagram...

@startuml
<style>
diamond {
  Backgroundcolor transparent
  Linecolor transparent
}
</style>

object parent
<> helper 
parent <|-- helper
helper -- child1
helper -- child2
helper -- child3
@enduml

If that can help,
Regards,
Th.

commented Nov 10 by kirchsth (7,140 points)

You could group inheritance too (but I think it works only for inheritance)


BR Helmut

...