cad-editor/src/app/commands
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 56e1c03ac2 feat(layers): enforce layer lock (select/modify/fade + cursor badge)
Locked-layer objects were fully editable. Now they stay visible and
snappable but are otherwise protected:

- Not selectable: the five interactive pick paths (box, lasso, single
  click, cycling, box-release) plus SELECTALL and QSELECT skip locked
  entities.
- Not modifiable (defense-in-depth even if a handle slips through):
  transform_entities, erase_entities, apply_grip and the Properties
  commit all skip locked entities.
- Faded: entities on a locked layer render dimmed toward the background
  (render_style + wire tessellation); toggling lock re-tessellates.
- Snap still works: locked entities are intentionally kept in the wire
  set (visibility_ok untouched), so object snap keeps finding them.
- Feedback: a small padlock is drawn by the crosshair when hovering a
  locked object, and clicking one prints "Object is on locked layer …".

New Scene::is_layer_locked / locked_layer_name helpers centralise the
check (mirroring layer_hidden).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 13:10:39 +03:00
..
blocks.rs feat(commands): add CLOSE, HIDE, VISUALSTYLES, QUICKCALC, HYPERLINK, XOPEN 2026-06-29 09:04:18 +03:00
dim.rs feat(commands): expand standard CAD command coverage 2026-06-29 08:23:58 +03:00
display.rs fix(render): repaint on layer/property edits (#231) 2026-06-30 23:41:13 +03:00
draw.rs feat(commands): add FLATSHOT and CONVTOSURFACE 2026-06-29 09:16:44 +03:00
fileops.rs fix(background): step-by-step prompt + Default preset (#217) 2026-06-30 17:55:44 +03:00
inquiry.rs feat(layers): enforce layer lock (select/modify/fade + cursor badge) 2026-07-01 13:10:39 +03:00
layerprops.rs feat(commands): expand standard CAD command coverage 2026-06-29 08:23:58 +03:00
layers.rs fix(select): accumulate selection set, apply on Enter/RMB (#220) 2026-06-29 22:58:21 +03:00
mod.rs fix(render): repaint on layer/property edits (#231) 2026-06-30 23:41:13 +03:00
styleprops.rs fix(purge): delete unused blocks, refresh UI, report per-type counts (#228) 2026-07-01 00:15:02 +03:00
view.rs feat(commands): add CLOSE, HIDE, VISUALSTYLES, QUICKCALC, HYPERLINK, XOPEN 2026-06-29 09:04:18 +03:00