mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
72.38k stars 6.59k forks source link

Mapping diagram #1873

Open vanillajonathan opened 3 years ago

vanillajonathan commented 3 years ago

A mapping diagram to describe how something maps from one thing to another.

Example how properties from one model map to to properties on another model.

Pseudocode

mappingDiagram
    model UserEntity {
        GivenName
        Surname
        Telephone
    }

    model UserDto {
        FirstName
        LastName
        PhoneNumber
    }

    UserEntity:GivenName -- UserDto:FirstName
    UserEntity:Surname -- UserDto:LastName
    UserEntity:Telephone -- UserDto:PhoneNumber
vanillajonathan commented 3 years ago

I just discovered that PlantUML support this with class diagrams.

@startuml
class UserEntity {
    UserId
    Surname
    GivenName
    Telephone
}

class UserDto {
    Id
    FirstName
    LastName
    PhoneNumber
}

UserEntity::UserId- UserDto::Id
UserEntity::GivenName - UserDto::FirstName
UserEntity::Surname - UserDto::LastName
UserEntity::Telephone - UserDto::PhoneNumber
@enduml

tymokvo commented 10 months ago

Hello, this is a feature that makes Mermaid difficult to adopt as a replacement for PlantUML. I assume that there has not been progress on this due to the Contributor Needed label?

jgreywolf commented 2 weeks ago

I am sorry for the LONG delay - but I am now actively working on an update to the class diagram syntax that will address this, and other, issues.

Should have something within a couple of days :)