I was trying to run a GLMakie script that used to work but doesn’t any more. Here is a reproduction of the error I am getting:
using GLMakie
fig = Figure(); display(GLMakie.Screen(),fig)
ax = Axis(fig[1,1])
lines!(ax, [1,2,3],[3,2,1])
sRange = select_rectangle(ax.scene)
on(sRange) do rect
x1 = rect.origin[1]
x2 = rect.widths[1] + x1
@show x1, x2
end
When I run it and try to select a rectangle, it returns this error:
MethodError: (Vec2)(::Vec{2, Float32}) is ambiguous.
I checked the API to see if something changed in the implementation but that doesn’t appear to be the case, but it is very likely I missed something. Has anyone encountered this before?