fn refresh_node_position(&self, id: graph_editor::NodeId, node: &controller::graph::Node) {
        let position = node.metadata.as_ref().and_then(|md| md.position);
        if let Some(position) = position {
            let view_position = self.view.graph().model.get_node_position(id).map(|p| p.xy());
            if Some(position.vector) != view_position {
                self.view.graph().frp.input.set_node_position.emit(&(id, position.vector));
            }
        }
    }
/// Update the position of the node based on its current metadata.
Update the position of the node based on its current metadata.
Update the position of the node based on its current metadata .
fn refresh_node_position(&self, id: graph_editor::NodeId, node: &controller::graph::Node) {
        let position = node.metadata.as_ref().and_then(|md| md.position);
        if let Some(position) = position {
            let view_position = self.view.graph().model.get_node_position(id).map(|p| p.xy());
            if Some(position.vector) != view_position {
                self.view.graph().frp.input.set_node_position.emit(&(id, position.vector));
            }
        }
    }
fn refresh_node_position ( & self , id : graph_editor :: NodeId , node : & controller :: graph :: Node ) { let position = node . metadata . as_ref ( ) . and_then ( | md | md . position ) ; if let Some ( position ) = position { let view_position = self . view . graph ( ) . model . get_node_position ( id ) . map ( | p | p . xy ( ) ) ; if Some ( position . vector ) != view_position { self . view . graph ( ) . frp . input . set_node_position . emit ( & ( id , position . vector ) ) ; } } }
Update the position of the node based on its current metadata.
Update the position of the node based on its current metadata .
&self
id
graph_editor::NodeId
node
&controller::graph::Node
&self
id
graph_editor::NodeId
node
&controller::graph::Node