Skip to content

Commit a05b9ab

Browse files
committed
Merge branch 'fil/brush-data-options' into fil/brush-merge
2 parents d3de6f4 + 14b7694 commit a05b9ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/interactions/brush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export class Brush extends Mark {
318318
export function brush(data, options = {}) {
319319
if (arguments.length === 1 && !isIterable(data)) (options = data), (data = undefined);
320320
let {x, y, ...rest} = options;
321-
[x, y] = maybeTuple(x, y);
321+
if (data != null) [x, y] = maybeTuple(x, y);
322322
return new Brush(data, {...rest, x, y});
323323
}
324324

0 commit comments

Comments
 (0)