Skip to content

Commit 6bd3004

Browse files
committed
Revert "Add angle transform"
This reverts commit 97d999e.
1 parent 8863b69 commit 6bd3004

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

plotters-backend/src/text.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ pub enum FontTransform {
135135
Rotate180,
136136
/// Rotating the text 270 degree clockwise
137137
Rotate270,
138-
/// Rotating the text to an arbitrary degree clockwise
139-
RotateAngle(f32),
140138
}
141139

142140
impl FontTransform {
@@ -151,10 +149,6 @@ impl FontTransform {
151149
FontTransform::Rotate90 => (-y, x),
152150
FontTransform::Rotate180 => (-x, -y),
153151
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-
),
158152
}
159153
}
160154
}

0 commit comments

Comments
 (0)