Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased]

- Fix for absrect [#4312](https://github.com/MakieOrg/Makie.jl/pull/4312).
- Fix attribute updates for SpecApi and SpecPlots (e.g. ecdfplot) [#4265](https://github.com/MakieOrg/Makie.jl/pull/4265).
- Bring back `poly` convert arguments for matrix with points as row [#4266](https://github.com/MakieOrg/Makie.jl/pull/4258).
- Fix gl_ClipDistance related segfault on WSL with GLMakie [#4270](https://github.com/MakieOrg/Makie.jl/pull/4270)
Expand Down
9 changes: 4 additions & 5 deletions src/camera/camera2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,12 @@ function camspace(scene::SceneLike, cam::Camera2D, point)
return Vec(point) .+ Vec(minimum(cam.area[]))
end

function absrect(rect)
function absrect(rect::Rect)
xy, wh = minimum(rect), widths(rect)
xy = ntuple(Val(2)) do i
wh[i] < 0 ? xy[i] + wh[i] : xy[i]
xy = map(xy, wh) do xy, wh
wh < 0 ? xy + wh : xy
end

return Rect2(Vec2(xy), abs.(wh))
return Rect2(xy, abs.(wh))
end


Expand Down