diff options
Diffstat (limited to 'crates/typst-svg')
| -rw-r--r-- | crates/typst-svg/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-svg/src/lib.rs b/crates/typst-svg/src/lib.rs index fb7d27c2..f9ce4b86 100644 --- a/crates/typst-svg/src/lib.rs +++ b/crates/typst-svg/src/lib.rs @@ -11,9 +11,9 @@ use std::fmt::{self, Display, Formatter, Write}; use ecow::EcoString; use ttf_parser::OutlineBuilder; use typst_library::layout::{ - Abs, Frame, FrameItem, FrameKind, GroupItem, Page, Point, Ratio, Size, Transform, + Abs, Frame, FrameItem, FrameKind, GroupItem, Page, PagedDocument, Point, Ratio, Size, + Transform, }; -use typst_library::model::Document; use typst_library::visualize::{Geometry, Gradient, Pattern}; use typst_utils::hash128; use xmlwriter::XmlWriter; @@ -35,7 +35,7 @@ pub fn svg(page: &Page) -> String { /// Export a document with potentially multiple pages into a single SVG file. /// /// The padding will be added around and between the individual frames. -pub fn svg_merged(document: &Document, padding: Abs) -> String { +pub fn svg_merged(document: &PagedDocument, padding: Abs) -> String { let width = 2.0 * padding + document .pages |
