From: Marko Luukkainen Date: Mon, 9 Mar 2020 16:10:49 +0000 (+0200) Subject: Expose bounds based line routing case calculation. X-Git-Tag: v1.43.0~61 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=56a61575ce0d27b340cb12438c8a7f303842095e;p=simantics%2Fplatform.git Expose bounds based line routing case calculation. 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) --- diff --git a/bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/SimpleConnectionUtility.java b/bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/SimpleConnectionUtility.java index 0628573d0..f36417b48 100644 --- a/bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/SimpleConnectionUtility.java +++ b/bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/SimpleConnectionUtility.java @@ -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());