Skip to content

Commit 96b8fde

Browse files
committed
relax brushX and brushY
1 parent 7353ca1 commit 96b8fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/marks/brush.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export function brush(data, {x, y, ...options} = {}) {
7979
}
8080

8181
export function brushX(data, {x = identity, ...options} = {}) {
82-
return new Brush(data, {...options, x, y: null});
82+
return new Brush(data, {...options, x});
8383
}
8484

8585
export function brushY(data, {y = identity, ...options} = {}) {
86-
return new Brush(data, {...options, x: null, y});
86+
return new Brush(data, {...options, y});
8787
}

0 commit comments

Comments
 (0)