mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
* Extract transformation cage to a seperate file * Hook up tool * Implement resize * Draw artboards * centre and constrain * Bounding box is rotated * Fix transform handle positions for artboard * Drag layers * Snapping * Fix imports * Cleanup * Remove allocation from bounding_boxes * Round artboard size and position * Hints * Fix rotated transform cage * Code review changes * Hints changes Co-authored-by: Dennis <dennis@kobert.dev> Co-authored-by: Keavon Chambers <keavon@keavon.com>
23 lines
513 B
Rust
23 lines
513 B
Rust
use crate::input::keyboard::Key;
|
|
use crate::message_prelude::*;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[remain::sorted]
|
|
#[impl_message(Message, DocumentMessage, TransformLayers)]
|
|
#[derive(PartialEq, Clone, Debug, Serialize, Deserialize)]
|
|
pub enum TransformLayerMessage {
|
|
ApplyTransformOperation,
|
|
BeginGrab,
|
|
BeginRotate,
|
|
BeginScale,
|
|
CancelTransformOperation,
|
|
ConstrainX,
|
|
ConstrainY,
|
|
PointerMove { slow_key: Key, snap_key: Key },
|
|
TypeBackspace,
|
|
TypeDecimalPoint,
|
|
TypeDigit { digit: u8 },
|
|
TypeNegate,
|
|
}
|