Files
Keavon Chambers 0798f0f6d2 Move the Select tool's layer dragging onto the new snapping engine, with even spacing and equal sizes (#4698)
* Add stretching, turning, and skewing motions to the snapping library, with finders for even spacing and equal sizes

* Rank snaps by how far the pointer must travel to them, preferring the pointer's own feature among equals

* Center overlay text on its anchor for a vertical Middle pivot, as the native overlays already do

* Let the snapping session move and stretch boxes: a grip to hold them by, even spacing, equal sizes, and the boxes beside them awake unasked

* Move the Select tool's layer dragging onto the snapping session

* Draw evened-out gaps beside the box where it lands after another snap carries it across
2026-10-14 00:25:33 -07:00

38 lines
1.2 KiB
Rust

//! Finds the relationships a moving point can take with the geometry around it.
//!
//! Geometry is solved in a work plane's coordinates and ranked by nearness on screen, so nothing here assumes the plane is the screen or the document.
pub mod bounds;
mod bounds_tree;
pub mod candidate;
pub mod constructions;
pub mod curve;
pub mod find;
pub mod frame;
pub mod grid;
pub mod locus;
pub mod scene;
pub mod settings;
pub mod snap;
pub mod solve;
pub mod spacing;
pub mod tangency;
pub mod tunables;
pub mod view;
pub use bounds::Bounds;
pub use candidate::{Candidate, CandidateKey, Highlight, Kind, MatchedGaps, Shape};
pub use constructions::{find_constructions, find_constructions_from};
pub use curve::{Curve, NearestOnCurve};
pub use find::{Awake, Context, Probe};
pub use frame::Frame;
pub use grid::Grid;
pub use locus::Locus;
pub use scene::{AnchorId, Exclusions, GeometryRole, LayerId, LayerKind, Scene, SceneAnchor, SceneCurve, SceneLayer};
pub use settings::Settings;
pub use snap::{Outcome, Request, snap_features, snap_point, snap_slide};
pub use solve::{CrossingCache, Engagement, EngagementKey, FeatureMap, Incumbent, Snap, Tier};
pub use spacing::{Side, SpacedBox, find_equal_sizes, find_spacing};
pub use tunables::Tunables;
pub use view::ViewMapping;