Merge pull request #2174 from yha/show-root-layout

Base.show method for RootLayout, to allow dump(::Plot)
This commit is contained in:
Yuval 2019-09-08 20:04:07 +03:00 committed by GitHub
commit 8ea6d70433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,7 @@ bottompad(layout::AbstractLayout) = 0mm
# this is the parent of the top-level layout
struct RootLayout <: AbstractLayout end
Base.show(io::IO, layout::RootLayout) = Base.show_default(io, layout)
Base.parent(::RootLayout) = nothing
parent_bbox(::RootLayout) = defaultbox
bbox(::RootLayout) = defaultbox