summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst/src/visualize/color.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/typst/src/visualize/color.rs b/crates/typst/src/visualize/color.rs
index 9a3fd5c3..90ac8c3d 100644
--- a/crates/typst/src/visualize/color.rs
+++ b/crates/typst/src/visualize/color.rs
@@ -19,13 +19,13 @@ use crate::layout::{Angle, Ratio};
use crate::syntax::{Span, Spanned};
// Type aliases for `palette` internal types in f32.
-pub(crate) type Oklab = palette::oklab::Oklaba<f32>;
-pub(crate) type Oklch = palette::oklch::Oklcha<f32>;
-pub(crate) type LinearRgb = palette::rgb::Rgba<Linear<encoding::Srgb>, f32>;
-pub(crate) type Rgb = palette::rgb::Rgba<encoding::Srgb, f32>;
-pub(crate) type Hsl = palette::hsl::Hsla<encoding::Srgb, f32>;
-pub(crate) type Hsv = palette::hsv::Hsva<encoding::Srgb, f32>;
-pub(crate) type Luma = palette::luma::Luma<encoding::Srgb, f32>;
+pub type Oklab = palette::oklab::Oklaba<f32>;
+pub type Oklch = palette::oklch::Oklcha<f32>;
+pub type LinearRgb = palette::rgb::Rgba<Linear<encoding::Srgb>, f32>;
+pub type Rgb = palette::rgb::Rgba<encoding::Srgb, f32>;
+pub type Hsl = palette::hsl::Hsla<encoding::Srgb, f32>;
+pub type Hsv = palette::hsv::Hsva<encoding::Srgb, f32>;
+pub type Luma = palette::luma::Luma<encoding::Srgb, f32>;
/// Equivalent of [`std::f32::EPSILON`] but for hue angles.
const ANGLE_EPSILON: f32 = 1e-5;