diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-28 15:50:48 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-28 23:54:34 +0100 |
| commit | 3ca5b238238e1128aa7bbfbd5db9e632045d8600 (patch) | |
| tree | 2471f4b340a15695b7f4d518c0b39fabaea676c4 /src/eval/layout.rs | |
| parent | b63c21c91d99a1554a019dc275f955d3e6a34271 (diff) | |
Reorganize library
Diffstat (limited to 'src/eval/layout.rs')
| -rw-r--r-- | src/eval/layout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/layout.rs b/src/eval/layout.rs index 38ad3977..02912544 100644 --- a/src/eval/layout.rs +++ b/src/eval/layout.rs @@ -9,7 +9,7 @@ use crate::diag::TypResult; use crate::eval::StyleChain; use crate::frame::{Element, Frame, Geometry, Shape, Stroke}; use crate::geom::{Align, Length, Linear, Paint, Point, Sides, Size, Spec, Transform}; -use crate::library::{AlignNode, PadNode, TransformNode, MOVE}; +use crate::library::layout::{AlignNode, MoveNode, PadNode}; use crate::util::Prehashed; use crate::Context; @@ -203,7 +203,7 @@ impl LayoutNode { /// Transform this node's contents without affecting layout. pub fn moved(self, offset: Point) -> Self { if !offset.is_zero() { - TransformNode::<MOVE> { + MoveNode { transform: Transform::translation(offset.x, offset.y), child: self, } |
