Reputation: 15798
Are there any tools that can generate a UML class diagram from a project in TypeScript or a similar language?
Upvotes: 19
Views: 17506
Reputation: 13489
Using UML Diagram feature introduced by IntelliJ Editor by Jetbrains and it works very well with typescript.
Go to Settings >>> Search for uml and find the keyboard shortcut for it.
OR
Right Click on a class name >>> Diagrams >>> Show Diagram Popup
Righ Click on the diagram popup >>> Show Categories >>> Methods or
Properties
You can zoom on the diagram objects (If there are too much details) by holding the Alt key when hovering on them
Upvotes: 1
Reputation: 7366
For TypeScript:
The ALM TypeScript editor includes this feature: https://github.com/alm-tools/alm/issues/84
However it looks like it only creates diagram for a single class, not a full hierarchical view of the project with inheritance relationships.
Tsviz is another promising project: https://github.com/joaompneves/tsviz
It generates full project diagram. However it looks outdated and doesn't work with recent TypeScript versions. I'm working on an updated fork.
Upvotes: 5