Skip to content

Commit 84be521

Browse files
committed
missed some Pointf references
1 parent cb29997 commit 84be521

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/recipes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function Makie.plot!(gp::GraphPlot)
216216
if length(layout) != nv(graph)
217217
throw(ArgumentError("The length of the layout vector does not match the number of nodes in the graph!"))
218218
else
219-
Pointf.(layout)
219+
to_pointf32.(layout)
220220
end
221221
else
222222
[to_pointf32(p) for p in layout(graph)]

test/runtests.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ end
189189
@test get_elabel_plot(p)[:text][] == elabels
190190
end
191191

192-
@testset "test Pointf" begin
193-
using GraphMakie: Pointf
192+
@testset "test to_pointf32" begin
193+
using GraphMakie: to_pointf32
194194

195195
p = Point(0.0, 0.0)
196196
@test typeof(to_pointf32(p)) == Point2f
@@ -226,9 +226,9 @@ end
226226
pos3 = [SA[0,0],
227227
SA[1,1],
228228
SA[0,1]]
229-
@test isconcretetype(typeof(Pointf.(pos1)))
230-
@test isconcretetype(typeof(Pointf.(pos2)))
231-
@test isconcretetype(typeof(Pointf.(pos3)))
229+
@test isconcretetype(typeof(to_pointf32.(pos1)))
230+
@test isconcretetype(typeof(to_pointf32.(pos2)))
231+
@test isconcretetype(typeof(to_pointf32.(pos3)))
232232
graphplot(g; layout=(x)->pos1)
233233
graphplot(g; layout=(x)->pos2)
234234
graphplot(g; layout=(x)->pos3)

0 commit comments

Comments
 (0)