public EdgeConnector(IStore store, GraphView graphView, EdgeConnectorListener listener, Func <IGTFGraphModel, GhostEdgeModel> ghostEdgeViewModelCreator = null)
 {
     m_EdgeConnectorListener = listener;
     m_EdgeDragHelper        = new EdgeDragHelper(store, graphView, listener, ghostEdgeViewModelCreator);
     m_Active = false;
     activators.Add(new ManipulatorActivationFilter {
         button = MouseButton.LeftMouse
     });
 }
Exemple #2
0
 public EdgeDragHelper(IStore store, GraphView graphView, EdgeConnectorListener listener, Func <IGTFGraphModel, GhostEdgeModel> ghostEdgeViewModelCreator)
 {
     m_Store    = store;
     GraphView  = graphView;
     m_Listener = listener;
     m_GhostEdgeViewModelCreator = ghostEdgeViewModelCreator;
     resetPositionOnPan          = true;
     Reset();
 }