Add shape 'Arch' for ERD subtype relations

0 votes
asked Oct 27, 2022 in Wanted features by anonymous
In ERD diagrams subtypes are not drawn directly to the supertype but connect onto an arch first. In this arch one can specify an optional xor. The shape for an arch is missing from PlantUML.

The closest I've gotten is using the following snippet. In there the allow_mixing is turned on, and three options are tested x**.

Having more standard shapes in PlantUML would help a lot already. One of them being halve a circle, or maybe even an invisible 'point' to connect to/from.

@startuml

' need to allow mixing to accomplish something with mixed shapes
allow_mixing

' rename the x* variants into x1 to see effect
() "xor\nsubtypes" as x1
stack "xor" as x_1
label "xor\nsubtypes" as x__1

' super/subtype relations using x1 as intermediate connection
Super <|-- x1
x1 -- SubA
x1 -- SubB
@enduml

1 Answer

0 votes
answered Dec 12, 2023 by Marco
...