From 5f663a8da43bc8529737e62c5a6828b588a44daf Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Tue, 20 May 2025 21:45:43 -0300 Subject: [PATCH] initial footer properties and bumping --- crates/typst-layout/src/grid/layouter.rs | 15 +++++++++++++ crates/typst-layout/src/grid/repeated.rs | 28 ++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/crates/typst-layout/src/grid/layouter.rs b/crates/typst-layout/src/grid/layouter.rs index 42fe38dbe..9f714ac86 100644 --- a/crates/typst-layout/src/grid/layouter.rs +++ b/crates/typst-layout/src/grid/layouter.rs @@ -6,6 +6,7 @@ use typst_library::foundations::{Resolve, StyleChain}; use typst_library::layout::grid::resolve::{ Cell, CellGrid, Header, LinePosition, Repeatable, }; +use typst_library::layout::resolve::Footer; use typst_library::layout::{ Abs, Axes, Dir, Fr, Fragment, Frame, FrameItem, Length, Point, Region, Regions, Rel, Size, Sizing, @@ -60,6 +61,16 @@ pub struct GridLayouter<'a> { pub(super) pending_headers: &'a [Repeatable
], /// Next headers to be processed. pub(super) upcoming_headers: &'a [Repeatable
], + /// Currently repeating footers, one per level. Sorted by increasing + /// levels. + /// + /// Note that some levels may be absent, in particular level 0, which does + /// not exist (so all levels are >= 1). + pub(super) repeating_footers: Vec<&'a Footer>, + /// Next footers to be processed. + pub(super) upcoming_footers: &'a [Repeatable