Git Product home page Git Product logo

dll2mmd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dll2mmd's Issues

Add an option to hide inherited properties

When I create a diagram that includes a parent class with many properties and methods and multiple classes that inherit from it, I would like to have an option to hide all inherited members on the child classes in the diagram (unless they are explicitly overridden). This would make it easier to see which child classes implement/override specific inherited members.

I would also like it if abstract classes and abstract members were annotated in the diagram output as documented on Mermaid.js

(If this option already exists, it should be documented in the --help response and readme)

Example Input:

public abstract class AbstractParent
{
    public virtual string String { get; set; }

    public abstract int Int { get; set; }
    public virtual DateTime DateTime { get; set; }
    public abstract void Method();
}

public class ConcreteChild : AbstractParent
{
    public override int Int { get; set; }
    public override void Method() { }
}

public class ConcreteGrandChild : ConcreteChild
{
    public override string String { get; set; }
}

Current Output:

classDiagram

class AbstractParent
AbstractParent : +String String
AbstractParent : +Int Int
AbstractParent : +DateTime DateTime
AbstractParent : +Method() Void

class ConcreteChild
ConcreteChild : +Int Int
ConcreteChild : +String String
ConcreteChild : +DateTime DateTime
ConcreteChild : +Method() Void

class ConcreteGrandChild
ConcreteGrandChild : +String String
ConcreteGrandChild : +Int Int
ConcreteGrandChild : +DateTime DateTime
ConcreteGrandChild : +Method() Void


AbstractParent <|-- ConcreteChild
ConcreteChild <|-- ConcreteGrandChild

Desired output with "Hide Inherited" option enabled and <<abstract>> mermaid notation:

classDiagram

class AbstractParent
<<abract>> AbstractParent
AbstractParent : +String String
AbstractParent : +Int Int*
AbstractParent : +DateTime DateTime
AbstractParent : +Method() Void*

class ConcreteChild
ConcreteChild : +Int Int
ConcreteChild : +Method() Void

class ConcreteGrandChild
ConcreteGrandChild : +String String


AbstractParent <|-- ConcreteChild
ConcreteChild <|-- ConcreteGrandChild

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.