Skip to content

Commit fe0721c

Browse files
authored
Merge branch 'master' into distribution_snapper_bug
2 parents b0cdee9 + 1a81e45 commit fe0721c

27 files changed

+1396
-501
lines changed

editor/src/consts.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ pub const MIN_LENGTH_FOR_SKEW_TRIANGLE_VISIBILITY: f64 = 48.;
9999
pub const MANIPULATOR_GROUP_MARKER_SIZE: f64 = 6.;
100100
pub const SELECTION_THRESHOLD: f64 = 10.;
101101
pub const HIDE_HANDLE_DISTANCE: f64 = 3.;
102-
pub const INSERT_POINT_ON_SEGMENT_TOO_FAR_DISTANCE: f64 = 50.;
103102
pub const HANDLE_ROTATE_SNAP_ANGLE: f64 = 15.;
103+
pub const SEGMENT_INSERTION_DISTANCE: f64 = 7.5;
104+
pub const SEGMENT_OVERLAY_SIZE: f64 = 10.;
104105

105106
// PEN TOOL
106107
pub const CREATE_CURVE_THRESHOLD: f64 = 5.;

editor/src/messages/input_mapper/input_mappings.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,13 @@ pub fn input_mappings() -> Mapping {
212212
entry!(KeyDown(Delete); modifiers=[Shift], action_dispatch=PathToolMessage::BreakPath),
213213
entry!(KeyDown(Backspace); modifiers=[Shift], action_dispatch=PathToolMessage::BreakPath),
214214
entry!(KeyDownNoRepeat(Tab); action_dispatch=PathToolMessage::SwapSelectedHandles),
215-
entry!(KeyDown(MouseLeft); action_dispatch=PathToolMessage::MouseDown { direct_insert_without_sliding: Control, extend_selection: Shift, lasso_select: Control, handle_drag_from_anchor: Alt }),
215+
entry!(KeyDown(MouseLeft); action_dispatch=PathToolMessage::MouseDown { extend_selection: Shift, lasso_select: Control, handle_drag_from_anchor: Alt }),
216216
entry!(KeyDown(MouseRight); action_dispatch=PathToolMessage::RightClick),
217217
entry!(KeyDown(Escape); action_dispatch=PathToolMessage::Escape),
218218
entry!(KeyDown(KeyG); action_dispatch=PathToolMessage::GRS { key: KeyG }),
219219
entry!(KeyDown(KeyR); action_dispatch=PathToolMessage::GRS { key: KeyR }),
220220
entry!(KeyDown(KeyS); action_dispatch=PathToolMessage::GRS { key: KeyS }),
221-
entry!(PointerMove; refresh_keys=[KeyC, Space, Control, Shift, Alt], action_dispatch=PathToolMessage::PointerMove { toggle_colinear: KeyC, equidistant: Alt, move_anchor_with_handles: Space, snap_angle: Shift, lock_angle: Control }),
221+
entry!(PointerMove; refresh_keys=[KeyC, Space, Control, Shift, Alt], action_dispatch=PathToolMessage::PointerMove { toggle_colinear: KeyC, equidistant: Alt, move_anchor_with_handles: Space, snap_angle: Shift, lock_angle: Control, delete_segment: Alt }),
222222
entry!(KeyDown(Delete); action_dispatch=PathToolMessage::Delete),
223223
entry!(KeyDown(KeyA); modifiers=[Accel], action_dispatch=PathToolMessage::SelectAllAnchors),
224224
entry!(KeyDown(KeyA); modifiers=[Accel, Shift], action_dispatch=PathToolMessage::DeselectAllPoints),

editor/src/messages/portfolio/document/document_message.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use super::utility_types::misc::{GroupFolderType, SnappingState};
22
use crate::messages::input_mapper::utility_types::input_keyboard::Key;
33
use crate::messages::portfolio::document::overlays::utility_types::OverlayContext;
4+
use crate::messages::portfolio::document::overlays::utility_types::OverlaysType;
45
use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier;
56
use crate::messages::portfolio::document::utility_types::misc::{AlignAggregate, AlignAxis, FlipAxis, GridSnapping};
67
use crate::messages::portfolio::utility_types::PanelType;
@@ -143,6 +144,7 @@ pub enum DocumentMessage {
143144
},
144145
SetOverlaysVisibility {
145146
visible: bool,
147+
overlays_type: Option<OverlaysType>,
146148
},
147149
SetRangeSelectionLayer {
148150
new_layer: Option<LayerNodeIdentifier>,

0 commit comments

Comments
 (0)