We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77fb872 + 3f57c47 commit 5a1bae0Copy full SHA for 5a1bae0
src/interactions/brush.js
@@ -318,7 +318,7 @@ export class Brush extends Mark {
318
export function brush(data, options = {}) {
319
if (arguments.length === 1 && !isIterable(data)) (options = data), (data = undefined);
320
let {x, y, ...rest} = options;
321
- [x, y] = maybeTuple(x, y);
+ if (data != null) [x, y] = maybeTuple(x, y);
322
return new Brush(data, {...rest, x, y});
323
}
324
0 commit comments