summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTobias Schmitz <tobiasschmitz2001@gmail.com>2025-05-28 17:47:35 +0200
committerTobias Schmitz <tobiasschmitz2001@gmail.com>2025-07-03 15:58:07 +0200
commitcc70a785ddea08375db23d26e2fd6df7f11b5e62 (patch)
treeb5cefc008ee62c4ad85d40fd7ac83da059909a02 /tests
parente8ea83751433b6041900c2bd0e163bd92ed80f9f (diff)
feat: [WIP] allow specifying alt text for links
skip-checks:true # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Wed May 28 17:47:35 2025 +0200 # # On branch pdf-accessibility # Your branch and 'origin/pdf-accessibility' have diverged, # and have 11 and 5 different commits each, respectively. # # Changes to be committed: # modified: crates/typst-ide/src/jump.rs # modified: crates/typst-layout/src/flow/distribute.rs # modified: crates/typst-layout/src/modifiers.rs # modified: crates/typst-library/src/foundations/content.rs # modified: crates/typst-library/src/layout/frame.rs # modified: crates/typst-library/src/model/bibliography.rs # modified: crates/typst-library/src/model/footnote.rs # modified: crates/typst-library/src/model/link.rs # modified: crates/typst-library/src/model/outline.rs # modified: crates/typst-library/src/model/reference.rs # modified: crates/typst-pdf/src/convert.rs # modified: crates/typst-pdf/src/link.rs # modified: crates/typst-render/src/lib.rs # modified: crates/typst-svg/src/lib.rs # modified: tests/src/run.rs #
Diffstat (limited to 'tests')
-rw-r--r--tests/src/run.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/run.rs b/tests/src/run.rs
index 1d93ba39..ce507d3c 100644
--- a/tests/src/run.rs
+++ b/tests/src/run.rs
@@ -535,7 +535,7 @@ fn render_links(canvas: &mut sk::Pixmap, ts: sk::Transform, frame: &Frame) {
let ts = ts.pre_concat(to_sk_transform(&group.transform));
render_links(canvas, ts, &group.frame);
}
- FrameItem::Link(_, size) => {
+ FrameItem::Link(_, _, size) => {
let w = size.x.to_pt() as f32;
let h = size.y.to_pt() as f32;
let rect = sk::Rect::from_xywh(0.0, 0.0, w, h).unwrap();