Skip to content

Commit

Permalink
fix compat with Julia 1.6 (@kwdef)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Dec 5, 2024
1 parent 0c29f09 commit 6657ce7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/StippleMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WS_PROXIES = isdefined(Genie.Router, :WS_PROXIES) ? Genie.Router.WS_PROXIES : Di

export MakieFigure, init_makiefigures, makie_figure, makie_dom, configure_makie_server!, WGLMakie, Makie

@kwdef mutable struct MakieFigure
Base.@kwdef mutable struct MakieFigure
fig::Figure = Figure()
session::Union{Nothing, Bonito.Session} = nothing
id = -1
Expand Down
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ UI::ParsedHTMLString = column(style = "height: 80vh; width: 98vw", [
ui() = UI

model = @init MakieDemo
html!(ui, layout = Stipple.ReactiveTools.DEFAULT_LAYOUT(head_content = [makie_dom(model)]), model = model, context = @__MODULE__)
response = html!(ui, layout = Stipple.ReactiveTools.DEFAULT_LAYOUT(head_content = [makie_dom(model)]), model = model, context = @__MODULE__)

model.isready[] = true

@test model isa MakieDemo
@test response isa Genie.Requests.HTTP.Response
@test makie_dom(model) isa ParsedHTMLString

nothing

0 comments on commit 6657ce7

Please sign in to comment.