GH-40 - Switch to C4 component diagrams by default.

We now render the module component diagrams in C4 style by default. Changed the implementation of ApplicationModuleInformation to fallback to the simple module name by default unless fully-qualified module names are enabled.
This commit is contained in:
Oliver Drotbohm
2022-09-20 17:08:35 +02:00
parent bc2af61c98
commit 5f6b82ef2d
3 changed files with 36 additions and 44 deletions

View File

@@ -365,8 +365,6 @@ public class Documenter {
.filter(options.getComponentFilter()) //
.forEach(view::add);
// view.getViewSet().getConfiguration().getStyles().findElementStyle(element).getBackground()
// Remove filtered dependency types
DependencyType.allBut(options.getDependencyTypes()) //
.map(Object::toString) //
@@ -605,7 +603,7 @@ public class Documenter {
*/
public static Options defaults() {
return new Options(ALL_TYPES, DependencyDepth.IMMEDIATE, it -> false, it -> true, it -> false, null,
__ -> Optional.empty(), it -> it.getDisplayName(), DiagramStyle.UML, ElementsWithoutRelationships.HIDDEN);
__ -> Optional.empty(), it -> it.getDisplayName(), DiagramStyle.C4, ElementsWithoutRelationships.HIDDEN);
}
/**