diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-10-27 19:04:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-27 18:04:55 +0000 |
| commit | be7cfc85d08c545abfac08098b7b33b4bd71f37e (patch) | |
| tree | f4137fa2aaa57babae1f7603a9b2ed7e688f43d8 /crates/typst-pdf/src/gradient.rs | |
| parent | b8034a343831e8609aec2ec81eb7eeda57aa5d81 (diff) | |
Split out four new crates (#5302)
Diffstat (limited to 'crates/typst-pdf/src/gradient.rs')
| -rw-r--r-- | crates/typst-pdf/src/gradient.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crates/typst-pdf/src/gradient.rs b/crates/typst-pdf/src/gradient.rs index be0a3ea0..6cd4c1ae 100644 --- a/crates/typst-pdf/src/gradient.rs +++ b/crates/typst-pdf/src/gradient.rs @@ -6,18 +6,17 @@ use ecow::eco_format; use pdf_writer::types::{ColorSpaceOperand, FunctionShadingType}; use pdf_writer::writers::StreamShadingType; use pdf_writer::{Filter, Finish, Name, Ref}; -use typst::diag::SourceResult; -use typst::layout::{Abs, Angle, Point, Quadrant, Ratio, Transform}; -use typst::utils::Numeric; -use typst::visualize::{ +use typst_library::diag::SourceResult; +use typst_library::layout::{Abs, Angle, Point, Quadrant, Ratio, Transform}; +use typst_library::visualize::{ Color, ColorSpace, Gradient, RatioOrAngle, RelativeTo, WeightedColor, }; +use typst_utils::Numeric; use crate::color::{ self, check_cmyk_allowed, ColorSpaceExt, PaintEncode, QuantizedColor, }; -use crate::{content, WithGlobalRefs}; -use crate::{deflate, transform_to_array, AbsExt, PdfChunk}; +use crate::{content, deflate, transform_to_array, AbsExt, PdfChunk, WithGlobalRefs}; /// A unique-transform-aspect-ratio combination that will be encoded into the /// PDF. |
