@@ -104,6 +104,7 @@ Base.@kwdef mutable struct Settings
104104 layout:: Config = Config ()
105105 config:: Config = Config ()
106106 iframe:: Union{Nothing, Cobweb.IFrame} = nothing
107+ display_object:: Union{Type{Cobweb.Page}, Type{Cobweb.Tab}} = Cobweb. Page
107108end
108109function Base. show (io:: IO , o:: Settings )
109110 println (io, " PlotlyLight.Settings:" )
@@ -121,6 +122,8 @@ function Base.show(io::IO, o::Settings)
121122 printstyled (io, " Config with keys: $(join (repr .(keys (o. config)), " , " )) " , ' \n ' , color= :light_black )
122123 printstyled (io, " • iframe: \n " , color= :light_cyan )
123124 printstyled (io, " " , repr (o. iframe), ' \n ' , color= :light_black )
125+ printstyled (io, " • display_object: \n " , color= :light_cyan )
126+ printstyled (io, " " , repr (o. display_object), ' \n ' , color= :light_black )
124127end
125128
126129const SETTINGS = Settings ()
@@ -237,7 +240,7 @@ Base.:(==)(a::Plot, b::Plot) = a.data == b.data && a.layout == b.layout && a.con
237240
238241# -----------------------------------------------------------------------------# Display
239242function page (o:: Plot ; remove_margins= false )
240- return Cobweb . Page (h. html (
243+ return SETTINGS . display_object (h. html (
241244 h. head (
242245 h. meta (charset= " utf-8" ),
243246 h. meta (name= " viewport" , content= " width=device-width, initial-scale=1" ),
0 commit comments