forked from 1b-agent/opencadstudio-upstream
feat(measure): add radius and angle tools with dynamic measurement overlay
(cherry picked from commit aac44906a3)
This commit is contained in:
1 parent
843cbcd607
commit
3c55e6d7e1
42 files changed
+1624
-53
No files matched your search
@@ -2876,6 +2876,17 @@ pub trait CadCommand: Send {
|
||||
|
||||
fn inject_hover_entity(&mut self, _handle: Handle, _entity: EntityType) {}
|
||||
|
||||
/// Opt in to transient measurement text; unrelated Measurement users keep
|
||||
/// their existing command-line-only behavior.
|
||||
fn has_measurement_readout(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Live inquiry text at the same full-precision point as the preview.
|
||||
fn measurement_readout(&self, _cursor: DVec3) -> Option<String> {
|
||||
None
|
||||
}
|
||||
|
||||
/// Called on every mouse-move in the viewport.
|
||||
/// Return `Some(WireModel)` to update the rubber-band preview, `None` to skip.
|
||||
fn on_mouse_move(&mut self, _pt: DVec3) -> Option<WireModel> {
|
||||
|
||||
Reference in new issue
Block a user