cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sLuCHa 6cd422e5b9 feat(plot): snap plot-window corners to geometry endpoints
PLOTWINDOW / PW now forces Endpoint object-snap while picking its two
corners, independent of the global OSNAP toggle, so the plot area lands
exactly on frame corners. The snapper's master toggle and configured
modes are saved and restored around the pick, so the user's OSNAP
settings are unchanged afterward.

- CadCommand::forces_endpoint_snap() opt-in (default false; PlotWindowCommand true).
- Snapper::snap_forced_corners() forces Endpoint only, then restores state.
  Intersection is deliberately excluded: it is O(n^2) over the hit-test wire
  set and froze the UI on large drawings when a plot window is picked
  zoomed-out. Frame corners are endpoints, so Endpoint alone suffices.
- the cursor-move handler routes the plot-window pick through the forced path.

Works in model and paper space (shared pick path). Tests: opt-in flag;
forced mode set is endpoint-only; snapper state is restored after the call.
2026-07-06 13:38:56 +02:00
..
app feat(plot): snap plot-window corners to geometry endpoints 2026-07-06 13:38:56 +02:00
entities fix(mesh): ear-clip concave mesh faces instead of fan-triangulating 2026-07-04 23:01:59 +03:00
io chore: post-merge cleanup for #287/#289 2026-07-06 01:22:10 +03:00
modules feat(plot): snap plot-window corners to geometry endpoints 2026-07-06 13:38:56 +02:00
plugin feat(plugin): surface loaded plugin commands in command-line autocomplete 2026-07-04 23:01:53 +03:00
scene chore: post-merge cleanup for #287/#289 2026-07-06 01:22:10 +03:00
shaders feat(render): draw 3D mesh outline edges black in filled modes 2026-07-04 18:28:27 +03:00
ui Merge PR #287: plot a model-space window to PDF 2026-07-06 01:17:03 +03:00
cli.rs Initial commit 2026-06-25 00:01:36 +03:00
command.rs feat(plot): snap plot-window corners to geometry endpoints 2026-07-06 13:38:56 +02:00
config.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
lib.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
main.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
par.rs feat(wasm): sequential rayon shim for the web build 2026-06-16 17:11:20 +03:00
patreon.rs feat(web): show Patreon supporters on the web build too 2026-07-02 01:25:24 +03:00
snap.rs feat(plot): snap plot-window corners to geometry endpoints 2026-07-06 13:38:56 +02:00
sys.rs fix(web): paste clipboard text into the TEXT / MText editors 2026-06-20 17:05:02 +03:00