mermaid icon indicating copy to clipboard operation
mermaid copied to clipboard

Class: interface realization / lollipop

Open mestaritonttu opened this issue 5 years ago • 6 comments

There doesn't seem to be a way to define this currently: https://www.uml-diagrams.org/realization.html

PlantUML calls it lollipop: https://plantuml.com/class-diagram and supports it like this:

bar ()- foo
bar ()-- foo
foo -() bar

mestaritonttu avatar Dec 15 '19 12:12 mestaritonttu

I will start work on this after January 6th. Unless someone else is interested :)

jgreywolf avatar Jan 03 '20 17:01 jgreywolf

@jgreywolf I think this will be resolved by PR #1171 as that adds supports for dashed lines. After this PR the following relations will be available.

image

ashishjain0512 avatar Jan 03 '20 18:01 ashishjain0512

I think that resolves part of it. The other part was being able to do something like the following:

image

jgreywolf avatar Jan 03 '20 18:01 jgreywolf

@jgreywolf I would be happy to help with that last part, do you have any pointers for me? I am new to the project. Thank you.

adamguild avatar Jan 12 '21 14:01 adamguild

@jgreywolf I have made some changes regarding the lollipop interface diagram I have made an imcomplete PR #3154 : https://github.com/mermaid-js/mermaid/pull/3154 With the current changes, the lollipop diagram would be generated like: image

This feature is incomplete, as the classbox surrounding the interface needs to be deleted.

Please let me know if you have any comments, thanks!

may4everL avatar Jun 20 '22 02:06 may4everL

I have update the code according to the changes of the code base Please refer to the PR #3311 The redundant classbox for this simple interface is not handled yet.

may4everL avatar Aug 10 '22 13:08 may4everL

Closing this issue as lolipop funcitonality has been merged. If the other item still needs to be addressed please open a new issue

jgreywolf avatar Jan 26 '23 20:01 jgreywolf