You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/02/17 13:50:21 UTC

[isis] branch master updated: ISIS-2522: switch graphviz layout direction to left-right

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new af45cd8  ISIS-2522: switch graphviz layout direction to left-right
af45cd8 is described below

commit af45cd8f31a13b6c158f281ed2842304e7fe57e3
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Feb 17 14:50:08 2021 +0100

    ISIS-2522: switch graphviz layout direction to left-right
---
 .../java/org/apache/isis/tooling/cli/projdoc/ProjectDocModel.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tooling/cli/src/main/java/org/apache/isis/tooling/cli/projdoc/ProjectDocModel.java b/tooling/cli/src/main/java/org/apache/isis/tooling/cli/projdoc/ProjectDocModel.java
index 12b6efe..ea7b31a 100644
--- a/tooling/cli/src/main/java/org/apache/isis/tooling/cli/projdoc/ProjectDocModel.java
+++ b/tooling/cli/src/main/java/org/apache/isis/tooling/cli/projdoc/ProjectDocModel.java
@@ -36,6 +36,8 @@ import java.util.stream.Stream;
 import javax.annotation.Nullable;
 
 import com.structurizr.model.Container;
+import com.structurizr.view.AutomaticLayout.RankDirection;
+import com.structurizr.view.LayoutMergeStrategy;
 
 import org.apache.commons.lang3.builder.EqualsExclude;
 import org.asciidoctor.ast.Document;
@@ -262,6 +264,8 @@ public class ProjectDocModel {
                     .createContainerView(softwareSystem, key, "Artifact Hierarchy (Maven)");
             containerView.addAllContainers();
 
+            containerView.enableAutomaticLayout(RankDirection.LeftRight);
+            
             val plantUmlSource = c4.toPlantUML(containerView);
             return plantUmlSource;
         }
@@ -270,7 +274,8 @@ public class ProjectDocModel {
             val key = c4.getWorkspaceName();
 
             return AsciiDocFactory.toString(doc->
-                        AsciiDocFactory.DiagramFactory.plantumlSvg(doc, toPlantUml(softwareSystemName), key, null));
+                        AsciiDocFactory.DiagramFactory
+                        .plantumlSvg(doc, toPlantUml(softwareSystemName), key, null));
         }
     }