react-d3-brush
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -59,5 +59,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
brushMargins: brushMargins, | ||
@@ -64,0 +64,0 @@ yBrushRange: yBrushRange, |
@@ -59,5 +59,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
brushMargins: brushMargins, | ||
@@ -64,0 +64,0 @@ yBrushRange: yBrushRange, |
@@ -59,5 +59,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
brushMargins: brushMargins, | ||
@@ -64,0 +64,0 @@ yBrushRange: yBrushRange, |
@@ -59,5 +59,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
brushMargins: brushMargins, | ||
@@ -64,0 +64,0 @@ yBrushRange: yBrushRange, |
@@ -59,5 +59,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
brushMargins: brushMargins, | ||
@@ -64,0 +64,0 @@ yBrushRange: yBrushRange, |
@@ -59,5 +59,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || { interval: [0, width - margins.left - margins.right], padding: .1 }, | ||
brushMargins: brushMargins, | ||
@@ -64,0 +64,0 @@ yBrushRange: yBrushRange, |
{ | ||
"name": "react-d3-brush", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "react-d3 brush implementation", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
@@ -47,5 +47,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
brushMargins: brushMargins, | ||
@@ -52,0 +52,0 @@ yBrushRange: yBrushRange, |
@@ -48,5 +48,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
brushMargins: brushMargins, | ||
@@ -53,0 +53,0 @@ yBrushRange: yBrushRange, |
@@ -48,5 +48,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
brushMargins: brushMargins, | ||
@@ -53,0 +53,0 @@ yBrushRange: yBrushRange, |
@@ -47,5 +47,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
brushMargins: brushMargins, | ||
@@ -52,0 +52,0 @@ yBrushRange: yBrushRange, |
@@ -47,5 +47,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
brushMargins: brushMargins, | ||
@@ -52,0 +52,0 @@ yBrushRange: yBrushRange, |
@@ -47,5 +47,5 @@ "use strict"; | ||
this.state = { | ||
xRange: [0, width - margins.left - margins.right], | ||
yRange: [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
xRange: this.props.xRange || [0, width - margins.left - margins.right], | ||
yRange: this.props.yRange || [height - margins.top - margins.bottom, 0], | ||
xRangeRoundBands: this.props.xRangeRoundBands || {interval: [0, width - margins.left - margins.right], padding: .1}, | ||
brushMargins: brushMargins, | ||
@@ -52,0 +52,0 @@ yBrushRange: yBrushRange, |
74174