Skip to content

Commit

Permalink
release v3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion committed Apr 5, 2022
1 parent 19f7168 commit 4a9db77
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## [v3.2.0] - ????????
## [v3.2.0] - 2022-04-05 09:41:54

### Added

Expand All @@ -13,6 +13,7 @@
- check for dodgy corners in `polysmooth()` (thanks @arbitrandomuser!)
- even more LaTeX characters (thanks @davibarreira!)
- bug in ngon()-vertices-reversepath fixed
- `BoundingBox(path)` calculates boundingbox more precisely (fixes #213)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Cairo = "0.7, 0.8, 1.0"
Colors = "0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 1.0"
FFMPEG = "0.4"
FileIO = "1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12"
FileIO = "1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13"
Juno = "0.7, 0.8"
Rsvg = "1.0"
Requires = "1"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/explanation/pathspolygons.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ There's always a current path. It starts off being empty.
A path can contain one or more sequences of straight lines
and Bézier curves. You add straight lines to the current
path using functions like `line()`, and add Bezier curves
using functions like `curve()`. You can can continue the
using functions like `curve()`. You can continue the
path at a different location of the drawing using `move()`.

Cairo keeps track of the current path, the current point,
Expand Down
4 changes: 1 addition & 3 deletions src/Path.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ function BoundingBox(path::Path)
end
currentpoint = p.pt1
elseif p isa PathCurve
# Wikipedia says a Bezier curve is completely contained within the
# convex hull of its control points, so we can just do this:
phbbox = BoundingBox(polyhull([currentpoint, p.pt1, p.pt2, p.pt3]))
phbbox = BoundingBox(Luxor.get_bezier_points(BezierPathSegment(currentpoint, p.pt1, p.pt2, p.pt3)))
if isapprox(boxdiagonal(bbox), 0.0) # bbox empty?
bbox = phbbox
else
Expand Down

0 comments on commit 4a9db77

Please sign in to comment.