mirror of
https://github.com/typst/typst
synced 2025-08-19 17:38:32 +08:00
rename bleed_start with content_origin
This commit is contained in:
parent
6094516a63
commit
9ae94b2f64
@ -43,20 +43,20 @@ pub fn finalize(
|
|||||||
frame.push(Point::zero(), FrameItem::Tag(tag));
|
frame.push(Point::zero(), FrameItem::Tag(tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
let bleed_start = Point::new(bleed.left, bleed.top);
|
let content_origin = Point::new(bleed.left, bleed.top);
|
||||||
|
|
||||||
// Add the "before" marginals. The order in which we push things here is
|
// Add the "before" marginals. The order in which we push things here is
|
||||||
// important as it affects the relative ordering of introspectable elements
|
// important as it affects the relative ordering of introspectable elements
|
||||||
// and thus how counters resolve.
|
// and thus how counters resolve.
|
||||||
if let Some(background) = background {
|
if let Some(background) = background {
|
||||||
frame.push_frame(bleed_start, background);
|
frame.push_frame(content_origin, background);
|
||||||
}
|
}
|
||||||
if let Some(header) = header {
|
if let Some(header) = header {
|
||||||
frame.push_frame(bleed_start + Point::with_x(margin.left), header);
|
frame.push_frame(content_origin + Point::with_x(margin.left), header);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the inner contents.
|
// Add the inner contents.
|
||||||
frame.push_frame(bleed_start + Point::new(margin.left, margin.top), inner);
|
frame.push_frame(content_origin + Point::new(margin.left, margin.top), inner);
|
||||||
|
|
||||||
// Add the "after" marginals.
|
// Add the "after" marginals.
|
||||||
if let Some(footer) = footer {
|
if let Some(footer) = footer {
|
||||||
@ -64,7 +64,7 @@ pub fn finalize(
|
|||||||
frame.push_frame(Point::new(margin.left + bleed.left, y), footer);
|
frame.push_frame(Point::new(margin.left + bleed.left, y), footer);
|
||||||
}
|
}
|
||||||
if let Some(foreground) = foreground {
|
if let Some(foreground) = foreground {
|
||||||
frame.push_frame(bleed_start + Point::zero(), foreground);
|
frame.push_frame(content_origin + Point::zero(), foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply counter updates from within the page to the manual page counter.
|
// Apply counter updates from within the page to the manual page counter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user