Skip to content

Commit d876c74

Browse files
author
howardchi
committed
bump
1 parent 6afc98e commit d876c74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-d3-brush",
3-
"version": "1.0.4",
3+
"version": "1.1.0",
44
"description": "react-d3 brush implementation",
55
"main": "./lib/index",
66
"scripts": {
@@ -40,7 +40,7 @@
4040
},
4141
"dependencies": {
4242
"d3": "^3.5.6",
43-
"react-d3-basic": "^1.1.5",
43+
"react-d3-basic": "^1.2.0",
4444
"react-d3-core": "^1.0.5",
4545
"react-dom": "^0.14.0"
4646
}

src/utils/brush.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ export default class Brush extends Component {
121121
}
122122
});
123123

124-
d3.select(ReactDOM.findDOMNode(this.refs.brushRect))
124+
var brushDom = d3.select(ReactDOM.findDOMNode(this.refs.brushRect))
125125
.call(brush)
126126
.selectAll('rect')
127127
.attr("y", -6)
128128
.attr("height", brushHeight - brushMargins.bottom - brushMargins.top + 7)
129129
.style('stroke', '#FFF')
130-
.style('fill-opacity', .125)
130+
.style('fill-opacity', .25)
131131
.style('shape-rendering', 'crispEdges');
132132

133133
this.setState({

0 commit comments

Comments
 (0)