@@ -20,7 +20,6 @@ export class Brush extends Mark {
20
20
super (
21
21
data ,
22
22
[
23
- { name : "picker" , value : identity } ,
24
23
{ name : "x" , value : x , scale : "x" , optional : true } ,
25
24
{ name : "y" , value : y , scale : "y" , optional : true }
26
25
] ,
@@ -32,7 +31,7 @@ export class Brush extends Mark {
32
31
render (
33
32
I ,
34
33
{ x, y} ,
35
- { x : X , y : Y , picker : J } ,
34
+ { x : X , y : Y } ,
36
35
{ marginLeft, width, marginRight, marginTop, height, marginBottom}
37
36
) {
38
37
let svg ;
@@ -59,7 +58,7 @@ export class Brush extends Mark {
59
58
index = index . filter ( i => Y [ i ] >= y0 && Y [ i ] <= y1 ) ;
60
59
}
61
60
}
62
- const dots = selection ? Array . from ( index , i => J [ i ] ) : data ;
61
+ const dots = selection ? Array . from ( index , i => data [ i ] ) : data ;
63
62
64
63
if ( svg ) {
65
64
svg . value = dots ;
@@ -84,7 +83,7 @@ export class Brush extends Mark {
84
83
if ( ! svg . __brushes ) svg . __brushes = [ ] ;
85
84
svg . __brushes . push ( { b : brush , g} ) ;
86
85
87
- // initial setup works only on one facet
86
+ // initial setup works only on the first facet
88
87
if ( svg . __brushes . length === 1 ) {
89
88
if ( this . initialSelection ) {
90
89
const s = this . initialSelection ;
0 commit comments