diff --git a/crates/typst-pdf/src/convert.rs b/crates/typst-pdf/src/convert.rs index 5931edee9..b3ba8a650 100644 --- a/crates/typst-pdf/src/convert.rs +++ b/crates/typst-pdf/src/convert.rs @@ -1,3 +1,6 @@ +use std::collections::{BTreeMap, HashMap, HashSet}; +use std::num::NonZeroU64; + use ecow::EcoVec; use krilla::annotation::Annotation; use krilla::destination::{NamedDestination, XyzDestination}; @@ -7,8 +10,6 @@ use krilla::page::PageLabel; use krilla::path::PathBuilder; use krilla::surface::Surface; use krilla::{Configuration, Document, PageSettings, SerializeSettings, ValidationError}; -use std::collections::{BTreeMap, HashMap, HashSet}; -use std::num::NonZeroU64; use typst_library::diag::{bail, error, SourceResult}; use typst_library::foundations::NativeElement; use typst_library::introspection::Location; diff --git a/crates/typst-pdf/src/shape.rs b/crates/typst-pdf/src/shape.rs index c7d398f38..2920f2e1f 100644 --- a/crates/typst-pdf/src/shape.rs +++ b/crates/typst-pdf/src/shape.rs @@ -1,6 +1,3 @@ -use crate::convert::{FrameContext, GlobalContext}; -use crate::paint; -use crate::util::{convert_path, AbsExt, TransformExt}; use krilla::geom::Rect; use krilla::path::{Path, PathBuilder}; use krilla::surface::Surface; @@ -8,6 +5,10 @@ use typst_library::diag::SourceResult; use typst_library::visualize::{Geometry, Shape}; use typst_syntax::Span; +use crate::convert::{FrameContext, GlobalContext}; +use crate::paint; +use crate::util::{convert_path, AbsExt, TransformExt}; + pub(crate) fn handle_shape( fc: &mut FrameContext, shape: &Shape,