We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8863b69 commit 6bd3004Copy full SHA for 6bd3004
plotters-backend/src/text.rs
@@ -135,8 +135,6 @@ pub enum FontTransform {
135
Rotate180,
136
/// Rotating the text 270 degree clockwise
137
Rotate270,
138
- /// Rotating the text to an arbitrary degree clockwise
139
- RotateAngle(f32),
140
}
141
142
impl FontTransform {
@@ -151,10 +149,6 @@ impl FontTransform {
151
149
FontTransform::Rotate90 => (-y, x),
152
150
FontTransform::Rotate180 => (-x, -y),
153
FontTransform::Rotate270 => (y, -x),
154
- FontTransform::RotateAngle(angle) => (
155
- ((x as f32) * angle.cos()).round() as i32,
156
- ((y as f32) * angle.sin()).round() as i32,
157
- ),
158
159
160
0 commit comments