Snapping: tangent and perpendicular snapping, View > Snapping (#2530)

Squashed from #2537 onto main.
This commit is contained in:
bflatastic
2026-10-23 03:22:54 +07:00
parent ffeb37f481
commit 8bf7ffe39d
38 changed files with 431 additions and 21 deletions
+2
View File
@@ -235,6 +235,8 @@ pub const PREF_SPECS: &[PrefSpec] = &[
p!("measurementLabels", "Smart Guides", "Display Options", "Measurement Labels", bool),
p!("spacingGuides", "Smart Guides", "Display Options", "Spacing Guides", bool),
p!("snappingTolerance", "Smart Guides", "", "Snapping Tolerance", num(0.0, 40.0, "pt")),
p!("snapTangent", "Smart Guides", "Geometric Guides", "Snap to Tangent", bool),
p!("snapPerpendicular", "Smart Guides", "Geometric Guides", "Snap to Perpendicular", bool),
// Slices
p!("showSliceNumbers", "Slices", "", "Show Slice Numbers", bool),
p!("sliceLineColor", "Slices", "", "Line Color", color),