Skip to content

Commit

Permalink
Fix scaling for lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko authored Mar 11, 2024
1 parent ddc8ef2 commit 15c1e5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/transform.ml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ let rec scale factor = function
rx = scale_length factor ellipse'.rx;
ry = scale_length factor ellipse'.ry;
}
| Line _line' -> failwith "Not Implemented"
| Line line' ->
Line
{
line' with
a = Util.pmap (scale_length factor) line'.a;
b = Util.pmap (scale_length factor) line'.b;
}
| Polygon polygon' ->
Polygon
{
Expand Down

0 comments on commit 15c1e5d

Please sign in to comment.