From d0e87e03c1a354b463e3644b67583bb6ee78eddb Mon Sep 17 00:00:00 2001 From: Alberto Mengali Date: Sat, 2 Mar 2024 10:16:01 +0100 Subject: [PATCH] fix compat with PlotlyLight 0.8 fixes #3 --- ext/PlotlyLightExt.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/PlotlyLightExt.jl b/ext/PlotlyLightExt.jl index bf924e8..3b2131a 100644 --- a/ext/PlotlyLightExt.jl +++ b/ext/PlotlyLightExt.jl @@ -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)