cad-editor/src/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 295d3b1b5d feat(ucs): per-viewport UCS applied inside floating viewports
Extend UCS support to in-viewport (MSPACE) editing through the existing
single-converter structure: one active_ucs drives every UCS-aware system,
now in the Model tab AND inside a floating viewport.

- Single predicate DocumentTab::editing_model_space() (Model tab or active
  viewport) replaces the model-only gate in ucs_wire_affine,
  ucs_rotation_angle, ucs_grid_basis, viewcube_ucs_mat, the coordinate
  readout and the cursor-plane pick.
- Per-viewport UCS: refresh_active_ucs() sets active_ucs to the pane's UCS
  on every transition (the entered viewport's own UCS from its
  ucs_origin/x_axis/y_axis/ucs_per_viewport fields, the header model UCS in
  the Model tab, none in plain paper); persist_active_ucs() writes changes
  back to the viewport entity or the header so they round-trip. Wired into
  EnterViewport/ExitViewport, layout switch, load and the UCS command.
- Visuals: grid_views now returns each pane's handle so every content
  viewport's grid aligns to its own UCS; the UCS icon draws inside the
  active viewport projected through the viewport camera.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 17:23:29 +03:00
..
automation.rs feat(f64): command layer compiles on DVec3 2026-06-24 03:51:50 +03:00
cmd_result.rs fix(paste): UTM-precise paste/block base via f64 centroid 2026-06-24 10:42:58 +03:00
commands.rs feat(ucs): per-viewport UCS applied inside floating viewports 2026-06-24 17:23:29 +03:00
document.rs feat(ucs): per-viewport UCS applied inside floating viewports 2026-06-24 17:23:29 +03:00
expr_eval.rs Implement Expression Evaluation for numerical inputs and the CLI 2026-06-07 13:17:46 -04:00
helpers.rs fix(paste): UTM-precise paste/block base via f64 centroid 2026-06-24 10:42:58 +03:00
history.rs perf(hash): swap std HashMap/HashSet for rustc-hash FxHash 2026-06-05 00:35:53 +03:00
layers.rs fix(ribbon): load style/layer dropdowns from the document 2026-06-12 01:46:17 +03:00
mod.rs fix(paste): UTM-precise paste/block base via f64 centroid 2026-06-24 10:42:58 +03:00
model_ops.rs refactor(scene): rename model_solid to solid_model 2026-06-16 11:39:31 +03:00
mtext_editor.rs refactor(scene): remove the world_offset field (P7) 2026-06-23 22:42:33 +03:00
plugin_host.rs fix(xclip): precise clip + carry clip across cross-drawing paste 2026-06-24 09:33:55 +03:00
properties.rs refactor(scene): remove the world_offset field (P7) 2026-06-23 22:42:33 +03:00
settings.rs merge: TEXTEDIT command + TEXTEDITMODE sysvar (#130) 2026-06-21 12:05:54 +03:00
style_ops.rs chore: clear compiler warnings 2026-06-18 21:18:09 +03:00
text_inline.rs feat(ucs): orient text-bearing annotations to the active UCS 2026-06-22 18:18:35 +03:00
update.rs feat(ucs): per-viewport UCS applied inside floating viewports 2026-06-24 17:23:29 +03:00
view.rs feat(ucs): per-viewport UCS applied inside floating viewports 2026-06-24 17:23:29 +03:00
visibility.rs refactor(scene): group modules into role-based subfolders 2026-06-16 11:33:46 +03:00