Restructure the entire editor codebase to consistently match the message hierarchy

Closes #744
This commit is contained in:
Keavon Chambers
2022-08-05 17:13:43 -07:00
parent 9e1f4eb46d
commit ddfd7db0a0
154 changed files with 4199 additions and 4064 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
pub mod constants;
pub mod consts;
pub mod manipulator_group;
pub mod manipulator_point;
pub mod subpath;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;