pub fn update_hovered(&mut self, new_layer_path: Vec<LayerId>, document: &DocumentMessageHandler, responses: &mut VecDeque<Message>) {
		// Check if we are hovering over a different layer than before
		if self.hovered_layer_path.as_ref().map_or(true, |old| &new_layer_path != old) {
			self.hovered_overlay_path = Self::create_outline(new_layer_path.clone(), self.hovered_overlay_path.take(), document, responses);
			if self.hovered_overlay_path.is_none() {
				self.clear_hovered(responses);
			}
		}
		self.hovered_layer_path = Some(new_layer_path);
	}
/// Updates the overlay, generating a new one if necessary
Updates the overlay, generating a new one if necessary
Updates the overlay generating a new one if necessary
pub fn update_hovered(&mut self, new_layer_path: Vec<LayerId>, document: &DocumentMessageHandler, responses: &mut VecDeque<Message>) {
		// Check if we are hovering over a different layer than before
		if self.hovered_layer_path.as_ref().map_or(true, |old| &new_layer_path != old) {
			self.hovered_overlay_path = Self::create_outline(new_layer_path.clone(), self.hovered_overlay_path.take(), document, responses);
			if self.hovered_overlay_path.is_none() {
				self.clear_hovered(responses);
			}
		}
		self.hovered_layer_path = Some(new_layer_path);
	}
pub fn update_hovered ( & mut self , new_layer_path : Vec < LayerId > , document : & DocumentMessageHandler , responses : & mut VecDeque < Message > ) { // Check if we are hovering over a different layer than before if self . hovered_layer_path . as_ref ( ) . map_or ( true , | old | & new_layer_path != old ) { self . hovered_overlay_path = Self :: create_outline ( new_layer_path . clone ( ) , self . hovered_overlay_path . take ( ) , document , responses ) ; if self . hovered_overlay_path . is_none ( ) { self . clear_hovered ( responses ) ; } } self . hovered_layer_path = Some ( new_layer_path ) ; }
Updates the overlay, generating a new one if necessary
Updates the overlay generating a new one if necessary
&mut self
new_layer_path
Vec<LayerId>
document
&DocumentMessageHandler
responses
&mut VecDeque<Message>
&mut self
new_layer_path
Vec<LayerId>
document
&DocumentMessageHandler
responses
&mut VecDeque<Message>