Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate diagram for specific inheritance hierarchy #89

Open
Feofilakt opened this issue May 29, 2024 · 3 comments
Open

Generate diagram for specific inheritance hierarchy #89

Feofilakt opened this issue May 29, 2024 · 3 comments

Comments

@Feofilakt
Copy link

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:

  • folder1
    • interface1
    • interface2
    • folder12
      • class1
      • class2
  • folder2
    • class3
    • class4

and this inheritance hierarchy:

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

So only need on the diagram interface1, class1 and class3

@demike
Copy link
Owner

demike commented May 29, 2024

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
Copy link
Author

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

@demike
Copy link
Owner

demike commented May 29, 2024

No, not yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants