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

New filtering options #1

Open
2 of 5 tasks
georgelesica-wf opened this issue Apr 1, 2019 · 5 comments
Open
2 of 5 tasks

New filtering options #1

georgelesica-wf opened this issue Apr 1, 2019 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@georgelesica-wf
Copy link
Collaborator

georgelesica-wf commented Apr 1, 2019

  • Filter to certain class names plus their full networks, including fields on super types, has-a types, etc.
  • Make include and exclude accept regular expressions or at least wildcards.
  • Make include and exclude work on namespaces as well as class names or provide separate options for namespace filtering.
  • Option to generate diagram with no relationships or "only" relationships.
  • Filter to include only classes that extend, or share a has-a relationship with, another given class or classes.
@pierre-gancel
Copy link

pierre-gancel commented Sep 28, 2020

hi,
I would like to use this great pub for a flutter use case,
All classes are exported, views included, which make a HUGE diagrams,
I tried to avoid this by running below, but must have missed something
flutter pub global run dcdg --exclude view

@glesica
Copy link
Owner

glesica commented Sep 28, 2020

The matching is case-sensitive, so you might need to use --exclude View if you're using normal Dart naming conventions.

@pierre-gancel
Copy link

pierre-gancel commented Sep 29, 2020

Thank you for the quick reply, super useful,
Putting example here in case anyone needs to exclude a lot of stuff for Flutter

flutter pub global run dcdg --exclude View,view,Card,Tab,tab,Tabs,Drawer,Picker,Camera,camera,tabs,State,Main,Page,Provider,StatefulWidget,Store,Route,routes,entrypoint,Widget,localization,Trad,LocalizationsDelegate,TextInputFormatter,SystemPadding,CustomClipper,ArcClipper,MyApp,DisplayPictureScreen,Service -o dart_class_diagram

@tiloc
Copy link
Contributor

tiloc commented Mar 20, 2021

PR #34 is improving the situation for item 3 "Make include and exclude work on namespaces as well as class names or provide separate options for namespace filtering." Exclude is working on namespaces now in addition to class names.

@glesica glesica added the good first issue Good for newcomers label Mar 19, 2022
@WizMe-M
Copy link

WizMe-M commented Apr 19, 2023

Hi, wouldn't it be able to add parameter to generate internal classes without referencing a namespace?
Like this:

Before

image
image

After

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants