blockworx/widget/waypoint.rs
1pub use crate::document::Waypoint;
2use crate::router::point::Point;
3
4impl Waypoint {
5 pub fn unlock(&mut self) {
6 self.locked = false;
7 }
8 #[allow(dead_code)]
9 pub fn is_locked(&self) -> bool {
10 self.locked
11 }
12}
13
14impl From<Waypoint> for Point {
15 fn from(val: Waypoint) -> Self {
16 val.pos.into()
17 }
18}