Skip to content

Commit

Permalink
plot: Fix legend group name
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Dec 21, 2023
1 parent 81ee08d commit 1f797f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/plot/legend.typ
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}

draw.on-layer(style.layer, {
draw.group(name: "legend", padding: style.padding, ctx => {
draw.group(name: "legend-container", padding: style.padding, ctx => {
import draw: *

set-origin(position)
Expand Down Expand Up @@ -173,7 +173,7 @@

// Fill legend background
draw.on-layer(style.layer - .5, {
draw.rect("legend.south-west",
"legend.north-east", fill: style.fill, stroke: style.stroke, radius: style.radius)
draw.rect("legend-container.south-west",
"legend-container.north-east", fill: style.fill, stroke: style.stroke, radius: style.radius)
})
}

0 comments on commit 1f797f7

Please sign in to comment.