diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-10 11:37:12 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-10 11:37:12 +0100 |
| commit | 92586d3e6895f0895fb2c88abcdd5e7160482a5b (patch) | |
| tree | 2af23968bbff7213d237e05ab78ef886491da852 /src/lib.rs | |
| parent | 7e980224354880cfda1797136a1ff886d6642662 (diff) | |
Progressing stack layouter 🚊
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,7 +27,7 @@ use toddle::Error as FontError; use crate::func::Scope; use crate::layout::{layout_tree, MultiLayout, LayoutContext}; use crate::layout::{LayoutAxes, LayoutAlignment, Axis, Alignment}; -use crate::layout::{LayoutResult, LayoutSpace}; +use crate::layout::{LayoutResult, LayoutSpace, LayoutExpansion}; use crate::syntax::{parse, SyntaxTree, ParseContext, Span, ParseResult}; use crate::style::{LayoutStyle, PageStyle, TextStyle}; @@ -98,11 +98,11 @@ impl<'p> Typesetter<'p> { style: &self.style, spaces: smallvec![LayoutSpace { dimensions: self.style.page.dimensions, - expand: (true, true), + expand: LayoutExpansion::new(true, true), padding: self.style.page.margins, }], - axes: LayoutAxes::new(Axis::LeftToRight, Axis::TopToBottom), - alignment: LayoutAlignment::new(Alignment::Origin, Alignment::Origin), + axes: LayoutAxes::default(), + alignment: LayoutAlignment::default(), }, )?) } |
