public void OnNodeRemoved(TNode node) { StoreConnections(node, false); SpatiallyOrderedNodes.Remove(node); node.Renderer.AreaChanged -= m_nodeMovedCallbacks[node]; m_nodeMovedCallbacks.Remove(node); }
private void NodeAreaChanged(WeakReference <TNode> nodeRef, Changed <RectangleF> c) { if (nodeRef.TryGetTarget(out TNode n)) { SpatiallyOrderedNodes.Remove(n); SpatiallyOrderedNodes.Add(n, c.To); foreach (var connector in n.Data.Connectors) { foreach (var connection in connector.Connections) { DisconnectionUpdate(connector, connection, c.From); } } foreach (var connector in n.Data.Connectors) { foreach (var connection in connector.Connections) { ConnectionUpdate(connection, connector, true); } } } }