mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 04:08:11 +08:00
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:
committed by
Keavon Chambers
parent
ec43b7945e
commit
265cc0fe32
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user