Skip to content

Commit 41a5f0d

Browse files
authored
ruleX wasn't applying dx/dy (#856)
1 parent 98d846e commit 41a5f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/marks/rule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export class RuleX extends Mark {
3737
render(index, {x, y}, channels, dimensions) {
3838
const {x: X, y1: Y1, y2: Y2} = channels;
3939
const {width, height, marginTop, marginRight, marginLeft, marginBottom} = dimensions;
40-
const {insetTop, insetBottom} = this;
40+
const {insetTop, insetBottom, dx, dy} = this;
4141
return create("svg:g")
4242
.call(applyIndirectStyles, this, dimensions)
43-
.call(applyTransform, X && x, null, offset, 0)
43+
.call(applyTransform, X && x, null, offset + dx, dy)
4444
.call(g => g.selectAll()
4545
.data(index)
4646
.enter()

0 commit comments

Comments
 (0)