Skip to content

Commit 5fb8616

Browse files
Filmbostock
andauthored
fix waffle stroke (when constant) (#2204)
Co-authored-by: Mike Bostock <[email protected]>
1 parent eb85419 commit 5fb8616

9 files changed

+757
-51
lines changed

src/marks/waffle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function waffleRender({render, ...options}) {
142142
.attr("transform", template`translate(${x0},${y0})`)
143143
.attr("d", (i) => `M${polygon[i].join("L")}Z`)
144144
.attr("fill", (i) => `url(#${patternId}-${i})`)
145-
.attr("stroke", this.stroke == null ? null : (i) => `url(#${patternId}-${i})`)
145+
.attr("stroke", this.stroke == null ? null : "none")
146146
.call(applyChannelStyles, this, {ariaLabel, href, title})
147147
)
148148
.node();

test/output/waffleShapes.svg

Lines changed: 20 additions & 20 deletions
Loading

test/output/waffleStroke.svg

Lines changed: 12 additions & 12 deletions
Loading

test/output/waffleStrokeMixed.svg

Lines changed: 6 additions & 6 deletions
Loading

0 commit comments

Comments
 (0)