bramp / js-sequence-diagrams

Draws simple SVG sequence diagrams from textual representation of the diagram
https://bramp.github.io/js-sequence-diagrams/
BSD 2-Clause "Simplified" License
7.8k stars 1.08k forks source link

Suggestion: UML Class Diagrams #42

Open saada opened 11 years ago

saada commented 11 years ago

It would be awesome if you could support class diagrams using your current engine.

yesnault commented 10 years ago

:+1: !!!

tiagoboldt commented 10 years ago

+1. This project is pretty useful. Supporting class diagrams would mate it even better! Syntax could be wiki style:

# Users
 * id: Int
 * name: String
 * age: Int

# Books
 * id: Int
 * name: String
 * owner: Int -> Users.id

image

alexandre-mbm commented 10 years ago

:+1:

Jellyfrog commented 10 years ago

:+1:

manbearwiz commented 9 years ago

Another option for syntax is yUML used by yUML and Scruffy

[Customer|-forname:string;surname:string|doShiz()]<>-orders*>[Order]
[Order]++-0..*>[LineItem]
[Order]-[note:Aggregate root{bg:wheat}]

![](http://yuml.me/diagram/scruffy/class/%2F%2F Cool Class Diagram, [Customer|-forname:string;surname:string|doShiz%28%29]<>-orders>[Order], [Order]++-0..>[LineItem], [Order]-[note:Aggregate root{bg:wheat}].svg)

bachirelkhoury commented 9 years ago

+100 for a Class diagram. that would be an awesome addition!

Could be a separate project. call it js-class-diagrams and will still be better than everything else out there.