Skip to content

Commit 6104d02

Browse files
committed
rebased
1 parent 41048e1 commit 6104d02

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/marks/brush.js

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
import {brush as brusher, brushX as brusherX, brushY as brusherY, create, extent} from "d3";
22
import {filter} from "../defined.js";
33
import {Mark, identity, first, second} from "../mark.js";
4-
import {Style} from "../style.js";
54
const {max, min} = Math;
65

6+
const defaults = {};
77
export class Brush extends Mark {
8-
constructor(
9-
data,
10-
{
11-
x = first,
12-
y = second,
13-
selection,
14-
transform,
15-
onbrush,
16-
...style
17-
} = {}
18-
) {
8+
constructor(data, {x = first, y = second, selection, onbrush, ...options} = {}) {
199
super(
2010
data,
2111
[
2212
{name: "picker", value: identity},
2313
{name: "x", value: x, optional: true},
2414
{name: "y", value: y, optional: true}
2515
],
26-
transform
16+
options,
17+
defaults
2718
);
28-
Style(this, style);
2919
this.initialSelection = selection;
3020
this.onbrush = onbrush;
3121
}

0 commit comments

Comments
 (0)