dcdg.dart
dcdg.dart copied to clipboard
New filtering options
- [ ] Filter to certain class names plus their full networks, including fields on super types, has-a types, etc.
- [x] Make
includeandexcludeaccept regular expressions or at least wildcards. - [ ] Make
includeandexcludework on namespaces as well as class names or provide separate options for namespace filtering. - [ ] Option to generate diagram with no relationships or "only" relationships.
- [x] Filter to include only classes that extend, or share a has-a relationship with, another given class or classes.
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
The matching is case-sensitive, so you might need to use --exclude View if you're using normal Dart naming conventions.
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
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.
Hi, wouldn't it be able to add parameter to generate internal classes without referencing a namespace? Like this:
Before

After
