feat(draw): continue paths on initial Enter

Start LINE, PLINE, ARC, and SPLINE from the latest path endpoint when Enter accepts the first point. Fall back to the active UCS origin.\n\nRefs #610
This commit is contained in:
Hakan Seven committed 2026-08-01 19:09:19 +03:00
1 parent 796d7d91d0
commit dccaf95f49
10 files changed
+175 -12

No files matched your search

+8
View File
@@ -1279,6 +1279,14 @@ pub trait CadCommand: Send {
/// Called when the user presses Enter (finalize / next option).
fn on_enter(&mut self) -> CmdResult;
/// Whether a bare Enter should supply the drawing's continuation point as
/// this command's first point instead of calling [`Self::on_enter`]. Draw
/// commands opt in only while their first point is still unset; later
/// Enter presses retain their normal finish/cancel meaning.
fn enter_accepts_default_start(&self) -> bool {
false
}
/// Called when the user presses Escape (cancel).
#[allow(dead_code)]
fn on_escape(&mut self) -> CmdResult {