feat(measure): add radius and angle tools with dynamic measurement overlay

(cherry picked from commit aac44906a3)
This commit is contained in:
turbuczn authored and Hakan Seven committed 2026-10-15 00:22:41 +03:00
1 parent 843cbcd607
commit 3c55e6d7e1
42 files changed
+1624 -53

No files matched your search

+11
View File
@@ -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> {