mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 21:08:12 +08:00
Add copy/cut/paste/duplicate functionality for path geometry (#2812)
* Copy and Paste for paths * Fix merge * Implement Copy, Cut and Duplicate * Fix selection of segments * Fix formatting * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
34a8b9b6f1
commit
b9a1b2e951
@@ -57,6 +57,10 @@ pub struct SelectedLayerState {
|
||||
}
|
||||
|
||||
impl SelectedLayerState {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.selected_points.is_empty() && self.selected_segments.is_empty()
|
||||
}
|
||||
|
||||
pub fn selected_points(&self) -> impl Iterator<Item = ManipulatorPointId> + '_ {
|
||||
self.selected_points.iter().copied()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user