mermaid
mermaid copied to clipboard
Class: interface realization / lollipop
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
I will start work on this after January 6th. Unless someone else is interested :)
@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.
I think that resolves part of it. The other part was being able to do something like the following:
@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.
@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:
This feature is incomplete, as the classbox surrounding the interface needs to be deleted.
Please let me know if you have any comments, thanks!
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.
Closing this issue as lolipop funcitonality has been merged. If the other item still needs to be addressed please open a new issue