Take zoom level into account when picking connections 34/3334/3
authorJussi Koskela <jussi.koskela@semantum.fi>
Tue, 29 Oct 2019 12:04:28 +0000 (14:04 +0200)
committerJussi Koskela <jussi.koskela@semantum.fi>
Tue, 29 Oct 2019 12:04:28 +0000 (14:04 +0200)
commit72542227673047d71c3c3f281e478c1bea82eb81
tree0d6949574561a07e5110da06c760c7bd681a0d77
parent28438fa467ae60dd63515be2df724c6ff9c299c9
Take zoom level into account when picking connections

Also fixed RouteGraphConnectTool.pickNearestRouteGraphConnection which
gave flawed results. Visual hints are fixed to match the performed
actions. This versions always picks the closest connection if there are
multiple hits.

gitlab #396

Change-Id: Ib5d8be3b2c7301dae5545166c07e11c03f92a50d
bundles/org.simantics.diagram.connection/src/org/simantics/diagram/connection/RouteLine.java
bundles/org.simantics.diagram/src/org/simantics/diagram/participant/RouteGraphConnectTool.java
bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/PickRequest.java
bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/pointertool/PointerInteractor.java
bundles/org.simantics.g2d/src/org/simantics/g2d/elementclass/RouteGraphConnectionClass.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/connection/RouteGraphNode.java