Skip to content

Commit

Permalink
fix defaults and deletion test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Feb 1, 2024
1 parent 92fcb7e commit 8a84077
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/makielayout/defaultattributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ end
function attributenames(::Type{LegendEntry})
(:label, :labelsize, :labelfont, :labelcolor, :labelhalign, :labelvalign,
:patchsize, :patchstrokecolor, :patchstrokewidth, :patchcolor,
:linepoints, :linewidth, :linecolor, :linestyle,
:markerpoints, :markersize, :markerstrokewidth, :markercolor, :markerstrokecolor,
:polypoints, :polystrokewidth, :polycolor, :polystrokecolor)
:linepoints, :linewidth, :linecolor, :linestyle, :linecolorrange, :linecolormap,
:markerpoints, :markersize, :markerstrokewidth, :markercolor, :markerstrokecolor, :markercolorrange, :markercolormap,
:polypoints, :polystrokewidth, :polycolor, :polystrokecolor, :polycolorrange, :polycolormap)
end

function extractattributes(attributes::Attributes, typ::Type)
Expand Down
12 changes: 12 additions & 0 deletions src/makielayout/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1213,10 +1213,18 @@ const EntryGroup = Tuple{Any, Vector{LegendEntry}}
linewidth = theme(scene, :linewidth)
"The default line color used for LineElements"
linecolor = theme(scene, :linecolor)
"The default colormap for LineElements"
linecolormap = theme(scene, :colormap)
"The default colorrange for LineElements"
linecolorrange = automatic
"The default line style used for LineElements"
linestyle = :solid
"The default marker color for MarkerElements"
markercolor = theme(scene, :markercolor)
"The default marker colormap for MarkerElements"
markercolormap = theme(scene, :colormap)
"The default marker colorrange for MarkerElements"
markercolorrange = automatic
"The default marker for MarkerElements"
marker = theme(scene, :marker)
"The default marker points used for MarkerElements in normalized coordinates relative to each label patch."
Expand All @@ -1235,6 +1243,10 @@ const EntryGroup = Tuple{Any, Vector{LegendEntry}}
polycolor = theme(scene, :patchcolor)
"The default poly stroke color used for PolyElements."
polystrokecolor = theme(scene, :patchstrokecolor)
"The default colormap for PolyElements"
polycolormap = theme(scene, :colormap)
"The default colorrange for PolyElements"
polycolorrange = automatic
"The orientation of the legend (:horizontal or :vertical)."
orientation = :vertical
"The gap between each group title and its group."
Expand Down

0 comments on commit 8a84077

Please sign in to comment.