We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b228cd1 commit 3b99924Copy full SHA for 3b99924
1 file changed
src/interactions/brush.js
@@ -121,10 +121,7 @@ export class Brush extends Mark {
121
const d = n.__data__;
122
return (fx === undefined || d?.x === fx) && (fy === undefined || d?.y === fy);
123
});
124
- if (!node)
125
- throw new Error(
126
- fx === undefined && fy === undefined ? "No brush node found" : "No brush node found for the specified facet"
127
- );
+ if (!node) return;
128
const px1 = this._applyX(x1);
129
const px2 = this._applyX(x2);
130
const py1 = this._applyY(y1);
0 commit comments