Skip to content

Commit

Permalink
fix CairoMakie
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 22, 2024
1 parent 2e94d34 commit ca4d228
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 0 additions & 8 deletions GLMakie/src/screen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -994,11 +994,3 @@ function plot2robjs(screen::Screen, plot)
end

export plot2robjs

function Makie.move_to!(screen::Screen, plot::Plot, scene::Scene)
# TODO, move without deleting!
# Will be easier with Observable refactor
delete!(screen, scene, plot)
insert!(screen, scene, plot)
return
end
7 changes: 6 additions & 1 deletion src/scenes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,14 @@ function Base.delete!(scene::Scene, plot::AbstractPlot)
end

function move_to!(screen::MakieScreen, plot::Plot, scene::Scene)
error("Not implemented for backend screen: $(screen)")
# TODO, move without deleting!
# Will be easier with Observable refactor
delete!(screen, scene, plot)
insert!(screen, scene, plot)
return
end


function move_to!(plot::Plot, scene::Scene)
if plot.parent === scene
return
Expand Down

0 comments on commit ca4d228

Please sign in to comment.