From 56a61575ce0d27b340cb12438c8a7f303842095e Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Mon, 9 Mar 2020 18:10:49 +0200 Subject: [PATCH] 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) --- .../simantics/diagram/connection/SimpleConnectionUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.47.1