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

+6 -2
View File
@@ -598,9 +598,13 @@ impl OpenCADStudio {
}
}
"MEASUREGEOM" => {
"MEASUREGEOM" | "MEASURERADIUS" | "MEASUREANGLE" => {
use crate::modules::draw::inquiry::measuregeom::MeasureGeomCommand;
let new_cmd = MeasureGeomCommand::new();
let new_cmd = match cmd {
"MEASURERADIUS" => MeasureGeomCommand::radius(),
"MEASUREANGLE" => MeasureGeomCommand::angle(),
_ => MeasureGeomCommand::new(),
};
self.command_line.push_info(&new_cmd.prompt());
self.tabs[i].active_cmd = Some(Box::new(new_cmd));
}
+1
View File
@@ -64,6 +64,7 @@ impl OpenCADStudio {
/// (the block palette), so they don't inherit the previous command's last
/// point, snaps or dynamic-input values. (#1525)
pub(in crate::app) fn reset_command_start_state(&mut self, i: usize) {
self.tabs[i].measurement.clear();
// A command parked behind a transparent zoom / MTP goes with it.
self.tabs[i].suspended_cmd = None;
self.tabs[i].transparent_resume = false;