refactor: rename mislabeled scene files to match contents

Two names collided with the pick subsystem and misdescribed their files:

- scene/hittest.rs -> scene/camera_ops.rs. Its contents are camera/view
  operations (zoom, fit-all, named-view restore, camera<->document sync,
  per-tile grid/snap), not hit-testing — the real screen-space hit-test
  lives in scene/pick/hit_test.rs.
- scene/pick/selection.rs -> scene/pick/selection_state.rs. It holds only
  the SelectionState struct; the name clashed with scene/selection.rs
  (the Scene selection operations).

Callers are unaffected (the crate::scene::SelectionState re-export path is
unchanged). No behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-06-26 23:45:16 +03:00
commit 9b8ee94c0c
4 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,6 @@
// Auto-split from scene/mod.rs. Pure text-move; behaviour unchanged. // Camera / view operations on `Scene`: zoom, fit-all, named-view restore,
// camera<->document sync, and per-tile grid/snap. (The actual screen-space
// hit-testing lives in `scene::pick::hit_test`.)
use super::*; use super::*;
impl Scene { impl Scene {

View file

@ -17,7 +17,7 @@ pub mod view;
// blocks and/or free functions). Pure text-move from the original mod.rs. // blocks and/or free functions). Pure text-move from the original mod.rs.
mod entity; mod entity;
mod group_layer; mod group_layer;
mod hittest; mod camera_ops;
mod layout; mod layout;
mod modify; mod modify;
mod mspace; mod mspace;
@ -53,7 +53,7 @@ pub use pipeline::viewcube::{
hit_test, hit_test_cardinal, hover_id, CubeRegion, NudgeDir, VIEWCUBE_DRAW_PX, VIEWCUBE_PAD, hit_test, hit_test_cardinal, hover_id, CubeRegion, NudgeDir, VIEWCUBE_DRAW_PX, VIEWCUBE_PAD,
VIEWCUBE_PX, VIEWCUBE_REGION_PX, VIEWCUBE_PX, VIEWCUBE_REGION_PX,
}; };
pub use pick::selection::SelectionState; pub use pick::selection_state::SelectionState;
pub use model::wire_model::WireModel; pub use model::wire_model::WireModel;
use crate::command::EntityTransform; use crate::command::EntityTransform;

View file

@ -1,5 +1,5 @@
pub mod hit_test; pub mod hit_test;
pub mod selection; pub mod selection_state;
pub mod grip; pub mod grip;
pub mod quadtree; pub mod quadtree;
pub mod xclip; pub mod xclip;