Skip to content

Commit

Permalink
fix compat with PlotlyLight 0.8
Browse files Browse the repository at this point in the history
fixes #3
  • Loading branch information
disberd committed Mar 2, 2024
1 parent 30216df commit d0e87e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/PlotlyLightExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ module PlotlyLightExt
using PlotlyLight
import PlotlyLight.JSON3

const settings = PlotlyLight.DEFAULT_SETTINGS
const settings = if isdefined(PlotlyLight, :DEFAULT_SETTINGS)
# This is for PlotlyLight < v0.8
PlotlyLight.DEFAULT_SETTINGS
else
PlotlyLight.settings
end

function PlotlyDocumenter.to_documenter(p::PlotlyLight.Plot; kwargs...)
data = JSON3.write(p.data)
Expand Down

0 comments on commit d0e87e0

Please sign in to comment.