Skip to content

Commit

Permalink
waffle href
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Oct 19, 2024
1 parent 07cab1e commit c1aab3b
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/marks/waffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class WaffleY extends BarY {
}

function waffleRender(y) {
return function (index, scales, values, dimensions, context) {
const {unit, gap, rx, ry, round} = this;
return function (index, scales, {href, ...values}, dimensions, context) {
const {document} = context;
const Y1 = values.channels[`${y}1`].value;
const Y2 = values.channels[`${y}2`].value;
Expand Down Expand Up @@ -104,6 +104,7 @@ function waffleRender(y) {
)
.attr("fill", (i) => `url(#${patternId}-${i})`)
.attr("stroke", this.stroke == null ? null : (i) => `url(#${patternId}-${i})`)
.call(applyChannelStyles, this, {href})
)
.node();
};
Expand Down
Loading

0 comments on commit c1aab3b

Please sign in to comment.