Skip to content

Commit

Permalink
fix waffle stroke (when constant)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil authored and mbostock committed Oct 19, 2024
1 parent 27e8fff commit 76a9826
Show file tree
Hide file tree
Showing 8 changed files with 737 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/marks/waffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function waffleRender(y) {
.join("L")}Z`
)
.attr("fill", (i) => `url(#${patternId}-${i})`)
.attr("stroke", this.stroke == null ? null : (i) => `url(#${patternId}-${i})`)
.attr("stroke", this.stroke == null ? null : "none")
.call(applyChannelStyles, this, {ariaLabel, href, title})
)
.node();
Expand Down
24 changes: 12 additions & 12 deletions test/output/waffleStroke.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions test/output/waffleStrokeMixed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 76a9826

Please sign in to comment.