diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-12-02 13:37:33 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-12-04 10:12:07 +0100 |
| commit | f8f2ba6a5f8c8ca7dbb85cf17b73332a0c301c60 (patch) | |
| tree | b3bc754509fb3ab4c74493848fe96f116b7907ed /crates/typst-svg/src | |
| parent | 76c24ee6e35715cd14bb892d7b6b8d775c680bf7 (diff) | |
Rename `Document` to `PagedDocument`
Diffstat (limited to 'crates/typst-svg/src')
| -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 |
