feat(grips): improve direct editing
Refit arcs from fixed control points and highlight hovered grips. Let Lengthen preview from the cursor or accept a typed distance.
This commit is contained in:
parent
b744d4bf2d
commit
539d83de47
10 changed files with 421 additions and 59 deletions
|
|
@ -451,10 +451,16 @@ impl OpenCADStudio {
|
|||
|| (Some(handle) == sel_h
|
||||
&& Some(grip_id) == current_vertex_grip)
|
||||
});
|
||||
let is_hovered = owner.is_some_and(|handle| {
|
||||
self.grip_hover.as_ref().is_some_and(|hover| {
|
||||
hover.handle == handle && hover.grip_id == grip_id
|
||||
})
|
||||
});
|
||||
crate::ui::overlay::GripMarker {
|
||||
pos: screen,
|
||||
shape,
|
||||
is_hot,
|
||||
is_hovered,
|
||||
dir,
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue