]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Expose bounds based line routing case calculation. 79/3979/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 9 Mar 2020 16:10:49 +0000 (18:10 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 9 Mar 2020 16:10:49 +0000 (18:10 +0200)
Custom shaped terminals require bounds based case calculation, without
routeToBounds set to true (causes problems in web editor)

Change-Id: Icaadca88f37a574cf2de53f56a361684bfadba62

bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/SimpleConnectionUtility.java

index 0628573d0576962d7efff9efa3da0ebef159a44e..f36417b48d2c7cca4a19bd7709c307bfa7e44fe7 100644 (file)
@@ -145,7 +145,7 @@ public class SimpleConnectionUtility {
         return MORE_BENDS_BBS_DONT_INTERSECT;
     }
     
-    private static int simpleConnectionCaseRouteToBounds(RouteTerminal a,
+    public static int simpleConnectionCaseRouteToBounds(RouteTerminal a,
             RouteTerminal b) {
         double aX = 0.5*(a.getMinX() + a.getMaxX());
         double aY = 0.5*(a.getMinY() + a.getMaxY());