cad-editor/src/modules/view
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
..
cascade.rs cargo fmt 2026-05-12 10:36:15 +03:00
file_tabs.rs cargo fmt 2026-05-12 10:36:15 +03:00
hidden.rs cargo fmt 2026-05-12 10:36:15 +03:00
layout_tabs.rs cargo fmt 2026-05-12 10:36:15 +03:00
mod.rs feat: plot a model-space window to PDF 2026-07-05 23:13:43 +02:00
orbit.rs cargo fmt 2026-05-12 10:36:15 +03:00
ortho.rs feat(commands): expand standard CAD command coverage 2026-06-29 08:23:58 +03:00
pan.rs cargo fmt 2026-05-12 10:36:15 +03:00
persp.rs cargo fmt 2026-05-12 10:36:15 +03:00
plot_window.rs feat(plot): snap plot-window corners to geometry endpoints 2026-07-06 13:38:56 +02:00
properties_palette.rs cargo fmt 2026-05-12 10:36:15 +03:00
sheetset.rs cargo fmt 2026-05-12 10:36:15 +03:00
solid.rs cargo fmt 2026-05-12 10:36:15 +03:00
tile_horiz.rs cargo fmt 2026-05-12 10:36:15 +03:00
tile_vert.rs cargo fmt 2026-05-12 10:36:15 +03:00
tool_palettes.rs cargo fmt 2026-05-12 10:36:15 +03:00
ucs_cmd.rs feat(ucs): interactive UCS command — UCS Z 90 typable everywhere (F2, #169) 2026-06-25 12:36:49 +03:00
ucs_icon.rs cargo fmt 2026-05-12 10:36:15 +03:00
view_front.rs cargo fmt 2026-05-12 10:36:15 +03:00
view_iso.rs cargo fmt 2026-05-12 10:36:15 +03:00
view_right.rs cargo fmt 2026-05-12 10:36:15 +03:00
view_top.rs cargo fmt 2026-05-12 10:36:15 +03:00
viewcube.rs cargo fmt 2026-05-12 10:36:15 +03:00
vports_config.rs cargo fmt 2026-05-12 10:36:15 +03:00
vports_join.rs cargo fmt 2026-05-12 10:36:15 +03:00
vports_named.rs cargo fmt 2026-05-12 10:36:15 +03:00
vports_restore.rs cargo fmt 2026-05-12 10:36:15 +03:00
wireframe.rs cargo fmt 2026-05-12 10:36:15 +03:00
xray.rs cargo fmt 2026-05-12 10:36:15 +03:00
zoom_ext.rs cargo fmt 2026-05-12 10:36:15 +03:00
zoom_in.rs cargo fmt 2026-05-12 10:36:15 +03:00
zoom_out.rs cargo fmt 2026-05-12 10:36:15 +03:00
zoom_window.rs feat(view): zoom-window ribbon button and bare ZOOM command 2026-06-28 16:57:00 +03:00