public EdgeDragHelper(CommandDispatcher commandDispatcher, GraphView graphView, EdgeConnectorListener listener, Func <IGraphModel, GhostEdgeModel> ghostEdgeViewModelCreator) { m_CommandDispatcher = commandDispatcher; GraphView = graphView; m_Listener = listener; m_GhostEdgeViewModelCreator = ghostEdgeViewModelCreator; Reset(); }
public EdgeConnector(CommandDispatcher commandDispatcher, GraphView graphView, EdgeConnectorListener listener, Func <IGraphModel, GhostEdgeModel> ghostEdgeViewModelCreator = null) { m_EdgeConnectorListener = listener; m_EdgeDragHelper = new EdgeDragHelper(commandDispatcher, graphView, listener, ghostEdgeViewModelCreator); m_Active = false; activators.Add(new ManipulatorActivationFilter { button = MouseButton.LeftMouse }); }