Draw the outlines of shapes on hover and selection (#609)

* Add hover outline overlay

* Increase selection tolerance

* Increase weight

* Only check if top intersection is selected

* Outline selected paths

* Reduce outline weight

* Increase path tool outline thickness to match hover
This commit is contained in:
0HyperCube
2022-04-24 01:21:48 +01:00
committed by Keavon Chambers
parent ec43b7945e
commit 265cc0fe32
5 changed files with 157 additions and 8 deletions
+3 -1
View File
@@ -21,13 +21,15 @@ pub const SNAP_OVERLAY_UNSNAPPED_OPACITY: f64 = 0.4;
pub const DRAG_THRESHOLD: f64 = 1.;
pub const PATH_OUTLINE_WEIGHT: f64 = 2.;
// Transforming layer
pub const ROTATE_SNAP_ANGLE: f64 = 15.;
pub const SCALE_SNAP_INTERVAL: f64 = 0.1;
pub const SLOWING_DIVISOR: f64 = 10.;
// Select tool
pub const SELECTION_TOLERANCE: f64 = 1.;
pub const SELECTION_TOLERANCE: f64 = 5.;
pub const SELECTION_DRAG_ANGLE: f64 = 90.;
// Transformation cage