Skip to content

Commit e97ebcd

Browse files
committed
fix(preview): swap the up and down arrow rotation
upArrow and downArrow were rotated the wrong way, so previews drew an up arrow pointing down and vice versa. Rotate them the correct way.
1 parent 38e0a85 commit e97ebcd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/presets.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ pub fn path(id: &str, w: f64, h: f64, opts: &GeomOpts) -> Option<String> {
208208

209209
"rightArrow" => arrow_right(w, h),
210210
"leftArrow" => mirror_h(&arrow_right(w, h), w),
211-
"upArrow" => rotate90(&arrow_right(h, w), w, h),
212-
"downArrow" => rotate270(&arrow_right(h, w), w, h),
211+
"upArrow" => rotate270(&arrow_right(h, w), w, h),
212+
"downArrow" => rotate90(&arrow_right(h, w), w, h),
213213
"leftRightArrow" => left_right_arrow(w, h),
214214
"upDownArrow" => rotate90(&left_right_arrow(h, w), w, h),
215215
"quadArrow" => quad_arrow(w, h),

0 commit comments

Comments
 (0)