From 354d1248faabed82bc098f0d72b894f4abd6eed8 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 13 Oct 2026 12:29:59 +0000 Subject: [PATCH] Integration (#702): grouped reading-order test assets and graphics carry pdf_crop/pdf_box and clip/wrap --- crates/epub/tests/grouped_reading_order.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/crates/epub/tests/grouped_reading_order.rs b/crates/epub/tests/grouped_reading_order.rs index c6f2226ef..bd3e78d49 100644 --- a/crates/epub/tests/grouped_reading_order.rs +++ b/crates/epub/tests/grouped_reading_order.rs @@ -93,12 +93,22 @@ fn nested_and_item_rotations_are_combined_before_measuring_graphics() { data: Arc::new(br#""#.to_vec()), pixels: None, page: 0, + pdf_crop: Default::default(), + pdf_box: None, }), ); let image = ItemId(doc.alloc()); let mut item = Item::new(image, doc.default_layer(), Shape::Rectangle, shapes::rectangle(Rect::new(0.0, 0.0, 100.0, 10.0))); - item.content = - Content::Graphic(Graphic { asset: aid, size: (1.0, 1.0), xf: Affine::IDENTITY, auto_fit: Default::default(), fit_align: 4, crop: [0.0; 4] }); + item.content = Content::Graphic(Graphic { + asset: aid, + size: (1.0, 1.0), + xf: Affine::IDENTITY, + clip: None, + auto_fit: Default::default(), + fit_align: 4, + crop: [0.0; 4], + wrap: Default::default(), + }); item.xf = Affine::rotate(std::f64::consts::FRAC_PI_4); doc.insert_item(SpreadRef::Doc(0), item, None).unwrap(); let inner = group(&mut doc, 0, &[image], Affine::rotate(-std::f64::consts::FRAC_PI_4));