pub fn add_snap_points(&mut self, document_message_handler: &DocumentMessageHandler, snap_points: impl Iterator<Item = DVec2>) {
		if document_message_handler.snapping_enabled {
			if let Some(targets) = &mut self.point_targets {
				targets.extend(snap_points);
			} else {
				self.point_targets = Some(snap_points.collect());
			}
		}
	}
/// Add arbitrary snapping points
///
/// This should be called after start_snap
Add arbitrary snapping points
This should be called after start_snap
Add arbitrary snapping points This should be called after start_snap
pub fn add_snap_points(&mut self, document_message_handler: &DocumentMessageHandler, snap_points: impl Iterator<Item = DVec2>) {
		if document_message_handler.snapping_enabled {
			if let Some(targets) = &mut self.point_targets {
				targets.extend(snap_points);
			} else {
				self.point_targets = Some(snap_points.collect());
			}
		}
	}
pub fn add_snap_points ( & mut self , document_message_handler : & DocumentMessageHandler , snap_points : impl Iterator < Item = DVec2 > ) { if document_message_handler . snapping_enabled { if let Some ( targets ) = & mut self . point_targets { targets . extend ( snap_points ) ; } else { self . point_targets = Some ( snap_points . collect ( ) ) ; } } }
Add arbitrary snapping points
This should be called after start_snap
Add arbitrary snapping points This should be called after start_snap
&mut self
document_message_handler
&DocumentMessageHandler
snap_points
impl Iterator<Item = DVec2>
&mut self
document_message_handler
&DocumentMessageHandler
snap_points
impl Iterator<Item = DVec2>