mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 08:58:12 +08:00
Restructure the entire editor codebase to consistently match the message hierarchy
Closes #744
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::layers::vector::constants::ManipulatorType;
|
||||
use crate::layers::vector::consts::ManipulatorType;
|
||||
use crate::layers::vector::manipulator_group::ManipulatorGroup;
|
||||
use crate::layers::vector::manipulator_point::ManipulatorPoint;
|
||||
use crate::layers::vector::subpath::Subpath;
|
||||
|
||||
@@ -36,6 +36,7 @@ impl<T> Index<ManipulatorType> for [T; 3] {
|
||||
&self[mt as usize]
|
||||
}
|
||||
}
|
||||
|
||||
// Allows us to use ManipulatorType for indexing, mutably
|
||||
impl<T> IndexMut<ManipulatorType> for [T; 3] {
|
||||
fn index_mut(&mut self, mt: ManipulatorType) -> &mut T {
|
||||
@@ -1,5 +1,5 @@
|
||||
use super::{
|
||||
constants::{ManipulatorType, SELECTION_THRESHOLD},
|
||||
consts::{ManipulatorType, SELECTION_THRESHOLD},
|
||||
manipulator_point::ManipulatorPoint,
|
||||
};
|
||||
use glam::{DAffine2, DVec2};
|
||||
@@ -64,7 +64,7 @@ impl ManipulatorGroup {
|
||||
}
|
||||
|
||||
// TODO Convert into bool in subpath
|
||||
/// Create a [ManipulatorGroup] that represents a close path signal.
|
||||
/// Create a [ManipulatorGroup] that represents a close path command.
|
||||
pub fn closed() -> Self {
|
||||
Self {
|
||||
// An anchor (the first element) being `None` indicates a ClosePath (i.e. a path end command)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use super::constants::ManipulatorType;
|
||||
use super::consts::ManipulatorType;
|
||||
use glam::{DAffine2, DVec2};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pub mod constants;
|
||||
pub mod consts;
|
||||
pub mod manipulator_group;
|
||||
pub mod manipulator_point;
|
||||
pub mod subpath;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use super::constants::ManipulatorType;
|
||||
use super::consts::ManipulatorType;
|
||||
use super::manipulator_group::ManipulatorGroup;
|
||||
use super::manipulator_point::ManipulatorPoint;
|
||||
use crate::layers::id_vec::IdBackedVec;
|
||||
|
||||
@@ -2,7 +2,7 @@ use crate::boolean_ops::BooleanOperation as BooleanOperationType;
|
||||
use crate::layers::blend_mode::BlendMode;
|
||||
use crate::layers::layer_info::Layer;
|
||||
use crate::layers::style::{self, Stroke};
|
||||
use crate::layers::vector::constants::ManipulatorType;
|
||||
use crate::layers::vector::consts::ManipulatorType;
|
||||
use crate::layers::vector::manipulator_group::ManipulatorGroup;
|
||||
use crate::layers::vector::subpath::Subpath;
|
||||
use crate::LayerId;
|
||||
|
||||
Reference in New Issue
Block a user