Giter Club home page Giter Club logo

Comments (13)

pbhogale avatar pbhogale commented on April 28, 2024 4

and another year has passed. this would be really nice !

from mermaid.

danilosampaio avatar danilosampaio commented on April 28, 2024

sorry about formatting... :)

from mermaid.

danilosampaio avatar danilosampaio commented on April 28, 2024

something like this:

Java_Client_Server_Architecture_Diagram.jpg

from mermaid.

knsv avatar knsv commented on April 28, 2024

Sorry but there are no such functionality today. This would be something like subgraphs in DOT/grapwiz. I am not ruling it out in the future but there are no work going on right now for achieving that right now.

I am open for suggestions of nifty syntax and implementations! :)

from mermaid.

danilosampaio avatar danilosampaio commented on April 28, 2024

Hi guys,
i have been thinking about a syntax to represent that, and before i venture out in the implementation, i'd like share with you:

graph ||
    A
    B|A
    C|D
    E

the code above wil generate the following diagram:

---------------------------------------------
|                 A                          |
-------------------------------------        |
----------------------------------   |       |
|              B                  |  |       |
----------------------------------    -------  
--------------------    ---------------------
|         C         |  |         D           |
--------------------    ---------------------
---------------------------------------------
|                    E                       |
---------------------------------------------

what do you guys think?

from mermaid.

knsv avatar knsv commented on April 28, 2024

👍
I am open for more diagram types! And it is great to have more people contributing!

Some comments:

  • It would be wise to choose another keyword instead of graph, this will be used for identifying the diagram and directing mermaid to the correct parser/renderer. Maybe architecture or something like that.
  • Whats does the '| |' in the top mean, perhaps part of the identifying process?
  • When A shares space with in the second row, should it possible to choose the width somehow?

I have updated the structure to accommodate more diagram types easier. I have also put together i guide for adding a new diagram type ( in the wiki ). This outlines the steps required. It is just a draft so if you encounter anything that is unclear, feel free to ask and/or update the guide.

Another comment, if possible, try to stick with d3 for doing the drawing. It is there already so it should be easy to use. This way we don't have to add another dependency for the library. Other drawing tools can ofc be added if there are good reasons for it.

from mermaid.

danilosampaio avatar danilosampaio commented on April 28, 2024
  • It would be wise to choose another keyword instead of graph, this will be used for identifying the diagram and directing mermaid to the correct parser/renderer. Maybe architecture or something like that.

i agree. it could be:

architecture <direction>

available directions: v,^,>,<

  • Whats does the '| |' in the top mean, perhaps part of the identifying process?

yes. but if we adopt architecture <direction> syntax, it would not be necesssary anymore.

  • When A shares space with in the second row, should it possible to choose the width somehow?

i think the simplest way to do that is using style, right?

from mermaid.

knsv avatar knsv commented on April 28, 2024

Sounds good. Even easier would be using parts of the full length
A -- 1
A|B --1/2
A|A|B -- 2/3

You decide on which way to go.

from mermaid.

knsv avatar knsv commented on April 28, 2024

@danilosampaio How is this progressing? Tip: I have come to use flowcharts and subgraphs for similar diagrams which does it quite ok.

from mermaid.

danilosampaio avatar danilosampaio commented on April 28, 2024

hi @knsv,

it's stucked.
i'm on a steep learning curve in the jison and d3 APIs.
Because of this, i'm using other tool for 'block diagrams'.
I'm not sure if the effort is worth, due to the fact
that, apparently, no one else showed interest in this feature.

from mermaid.

knsv avatar knsv commented on April 28, 2024

OK, will close this then. Thanks nevertheless!

from mermaid.

SamuelMarks avatar SamuelMarks commented on April 28, 2024

3 years have passed, anyone found a good solution to this problem?

from mermaid.

rsbh avatar rsbh commented on April 28, 2024

one more year

from mermaid.

Related Issues (20)

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.