Edge layout
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
svg {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sprotty {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Spring Integration Graph</title>
|
||||
<link rel="stylesheet" href="css/page.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dom4/3.0.0/dom4.js">
|
||||
<link rel="stylesheet" href="css/eclipse-page.css">
|
||||
</head>
|
||||
|
||||
@@ -2,6 +2,7 @@ package org.springframework.ide.si.view;
|
||||
|
||||
import org.eclipse.elk.alg.layered.options.FixedAlignment;
|
||||
import org.eclipse.elk.alg.layered.options.LayeredOptions;
|
||||
import org.eclipse.elk.core.options.EdgeRouting;
|
||||
import org.eclipse.elk.core.options.PortConstraints;
|
||||
import org.eclipse.elk.core.options.PortSide;
|
||||
import org.eclipse.elk.graph.properties.IPropertyHolder;
|
||||
@@ -27,6 +28,7 @@ public class SprottySiViewApplication {
|
||||
holder.setProperty(LayeredOptions.SPACING_COMPONENT_COMPONENT, 60.0);
|
||||
holder.setProperty(LayeredOptions.SPACING_NODE_NODE_BETWEEN_LAYERS, 60.0);
|
||||
holder.setProperty(LayeredOptions.NODE_PLACEMENT_BK_FIXED_ALIGNMENT, FixedAlignment.BALANCED);
|
||||
holder.setProperty(LayeredOptions.EDGE_ROUTING, EdgeRouting.POLYLINE);
|
||||
|
||||
holder = configurator.configureByType("output-port");
|
||||
holder.setProperty(LayeredOptions.PORT_SIDE, PortSide.EAST);
|
||||
|
||||
Reference in New Issue
Block a user