Skip to content

Commit 730aa57

Browse files
committed
Merge branch 'fil/brush-dataless' into fil/brush-data-options
2 parents b58772c + 5baaad0 commit 730aa57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interactions/brush.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class Brush extends Mark {
3838
this._sync = sync;
3939
}
4040
render(index, scales, values, dimensions, context) {
41+
if (typeof document === "undefined") return null;
4142
const {x, y, fx, fy} = scales;
4243
const X = values.channels?.x?.value;
4344
const Y = values.channels?.y?.value;

0 commit comments

Comments
 (0)