Skip to content

Commit 5a1bae0

Browse files
committed
Merge branch 'fil/brush-data-options' into fil/brush-merge
2 parents 77fb872 + 3f57c47 commit 5a1bae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)