Skip to content

Commit

Permalink
added some diagrams for decdoc-web
Browse files Browse the repository at this point in the history
  • Loading branch information
pcprinz committed Jul 17, 2021
1 parent 509987e commit aa67a39
Show file tree
Hide file tree
Showing 9 changed files with 637 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dedoc-web/src/gui/pages/files/files_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dedoc-web/src/model/model_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dedoc-web/src/services/services_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dedoc-web/src_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
612 changes: 612 additions & 0 deletions diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions documentation/ClassDiagramTypescript.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Class Diagrams with TypeScript

After testing a few tools for generating class diagrams, nearly none of them have been considerate as working well.
The most suitable of them is called [classdiagram-ts](https://marketplace.visualstudio.com/items?itemName=AlexShen.classdiagram-ts) and is a VS-Code Extension. To install it, open VSCode and search for
`"classdiagramm-ts"` or `"alexshen.classdiagram-ts"` in the Extensions tab and simply install it.
Afterwards right-click on any folder or file in the Explorer and click `Show Diagram`.

Now a new file is opened, containing the auto generated diagram. The Nodes and Folders can be rearranged via Drag-and-Drop.

# Pros and Cons of `classdiagram-ts` (as of 17.07.2021)
## Pros
- (++) easy and fast to use
- (++) This tool is still unter development (most of the other tools are abandoned)
- (+) unlike most of the other tools (for TypeScript) this plugin nearly all* Classes / Functions / Interfaces / Objects *(as long as they are exported)
- (+) associations shown
- (+) class inheritance shown
- (+) diagrams can be exported as `.png`
- (+) when clicking on a file / attribute in teh diagram, VSCode opens the corresponding file / line

## Cons
- (--) a lot of types are wrongly recognized as `object`
- (-) It does not recognize enums
- (-) the auto arrangement of the nodes is at least questionable and must nearly always be rearranged manually
- (-) the arrows are straight (dotted) and not changeable (line-style / directions)
- (-) no open source project available

0 comments on commit aa67a39

Please sign in to comment.