demike / TsUML2

Generates UML diagrams from TypeScript source code
MIT License
248 stars 32 forks source link

Generate diagram for specific inheritance hierarchy #89

Open Feofilakt opened 1 month ago

Feofilakt commented 1 month ago

Hello! If I don't want to generate diagram for all the classes and interfaces in folder like in examples --glob "./src/demo/**/*.ts", but only for classes and interfaces related to my inheritance hierarchy, is it possible? For example this file structure:

and this inheritance hierarchy:

classDiagram
    interface1 <|-- class1
    class1 <|-- class3

So only need on the diagram interface1, class1 and class3

demike commented 1 month ago

Yes you can do that by adjusting the glob pattern: https://stackoverflow.com/questions/60455115/nodejs-glob-multiple-patterns#:~:text=%22*(abc.pdf%7Cxyz.pdf)%22

Alternatively you can do that by means of the TsUML2 vscode plugin by just selecting those files ( you can do an export there too)

Feofilakt commented 1 month ago

Does it have some of a feature to automatically include inherited classes missing in glob pattern?

demike commented 1 month ago

No, not yet