Integrate native repeat boxes and PDF bookmarks

This commit is contained in:
gloamxun committed 2026-11-19 16:06:28 +08:00
1 parent 5163fc9854
commit 38e4822370
33 files changed
+1208 -143

No files matched your search

+7 -2
View File
@@ -46,7 +46,10 @@ pub use statistics::{
use std::collections::BTreeSet;
use std::fmt;
pub use boxes::{BoxContent, BoxKind, GlueSetting, NativeBox, NativeVerticalNode};
pub use boxes::{
BoxContent, BoxKind, GlueSetting, LeaderGlue, LeaderMode, LeaderPattern, NativeBox,
NativeVerticalNode,
};
pub use cancellation::Cancellation;
pub use case::CaseCode;
pub use context::{ContextFrame, ContextKind, InputContext};
@@ -744,7 +747,9 @@ impl Execution {
&boxes::box_paragraph(*b.clone()),
)));
}
NativeVerticalNode::Glue(g) | NativeVerticalNode::NamedGlue(g, _) => {
NativeVerticalNode::Glue(g)
| NativeVerticalNode::NamedGlue(g, _)
| NativeVerticalNode::Leaders(LeaderGlue { glue: g, .. }) => {
items.push(VerticalItem::StretchGlue(VerticalGlue::with_order(
bp(g.width as i64),
bp(g.stretch.amount as i64),