diff options
Diffstat (limited to 'crates/typst-render/src')
| -rw-r--r-- | crates/typst-render/src/image.rs | 4 | ||||
| -rw-r--r-- | crates/typst-render/src/lib.rs | 6 | ||||
| -rw-r--r-- | crates/typst-render/src/paint.rs | 4 | ||||
| -rw-r--r-- | crates/typst-render/src/shape.rs | 4 | ||||
| -rw-r--r-- | crates/typst-render/src/text.rs | 8 |
5 files changed, 13 insertions, 13 deletions
diff --git a/crates/typst-render/src/image.rs b/crates/typst-render/src/image.rs index dcbf7982..27b03911 100644 --- a/crates/typst-render/src/image.rs +++ b/crates/typst-render/src/image.rs @@ -3,8 +3,8 @@ use std::sync::Arc; use image::imageops::FilterType; use image::{GenericImageView, Rgba}; use tiny_skia as sk; -use typst::layout::Size; -use typst::visualize::{Image, ImageKind}; +use typst_library::layout::Size; +use typst_library::visualize::{Image, ImageKind}; use crate::{AbsExt, State}; diff --git a/crates/typst-render/src/lib.rs b/crates/typst-render/src/lib.rs index d5eeacce..8de3852d 100644 --- a/crates/typst-render/src/lib.rs +++ b/crates/typst-render/src/lib.rs @@ -6,11 +6,11 @@ mod shape; mod text; use tiny_skia as sk; -use typst::layout::{ +use typst_library::layout::{ Abs, Axes, Frame, FrameItem, FrameKind, GroupItem, Page, Point, Size, Transform, }; -use typst::model::Document; -use typst::visualize::{Color, Geometry, Paint}; +use typst_library::model::Document; +use typst_library::visualize::{Color, Geometry, Paint}; /// Export a page into a raster image. /// diff --git a/crates/typst-render/src/paint.rs b/crates/typst-render/src/paint.rs index 3a507ca4..689f28a8 100644 --- a/crates/typst-render/src/paint.rs +++ b/crates/typst-render/src/paint.rs @@ -1,8 +1,8 @@ use std::sync::Arc; use tiny_skia as sk; -use typst::layout::{Axes, Point, Ratio, Size}; -use typst::visualize::{Color, Gradient, Paint, Pattern, RelativeTo}; +use typst_library::layout::{Axes, Point, Ratio, Size}; +use typst_library::visualize::{Color, Gradient, Paint, Pattern, RelativeTo}; use crate::{AbsExt, State}; diff --git a/crates/typst-render/src/shape.rs b/crates/typst-render/src/shape.rs index f31262ef..f9ff7f3a 100644 --- a/crates/typst-render/src/shape.rs +++ b/crates/typst-render/src/shape.rs @@ -1,6 +1,6 @@ use tiny_skia as sk; -use typst::layout::{Abs, Axes, Point, Ratio, Size}; -use typst::visualize::{ +use typst_library::layout::{Abs, Axes, Point, Ratio, Size}; +use typst_library::visualize::{ DashPattern, FillRule, FixedStroke, Geometry, LineCap, LineJoin, Path, PathItem, Shape, }; diff --git a/crates/typst-render/src/text.rs b/crates/typst-render/src/text.rs index 1685e67d..c017b1ce 100644 --- a/crates/typst-render/src/text.rs +++ b/crates/typst-render/src/text.rs @@ -3,10 +3,10 @@ use std::sync::Arc; use pixglyph::Bitmap; use tiny_skia as sk; use ttf_parser::{GlyphId, OutlineBuilder}; -use typst::layout::{Abs, Axes, Point, Size}; -use typst::text::color::{glyph_frame, should_outline}; -use typst::text::{Font, TextItem}; -use typst::visualize::{FixedStroke, Paint}; +use typst_library::layout::{Abs, Axes, Point, Size}; +use typst_library::text::color::{glyph_frame, should_outline}; +use typst_library::text::{Font, TextItem}; +use typst_library::visualize::{FixedStroke, Paint}; use crate::paint::{self, GradientSampler, PaintSampler, PatternSampler}; use crate::{shape, AbsExt, State}; |
