forked from 1b-agent/opencadstudio-upstream
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:
1 parent
b744d4bf2d
commit
539d83de47
10 files changed
+421
-59
No files matched your search
@@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user