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

Change-Id: Icaadca88f37a574cf2de53f56a361684bfadba62
(cherry picked from commit 161fad9a336aa19d8dde691c213016907c412b83)

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;
     }
     
         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());
             RouteTerminal b) {
         double aX = 0.5*(a.getMinX() + a.getMaxX());
         double aY = 0.5*(a.getMinY() + a.getMaxY());