react-d3-core
Advanced tools
Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "react-d3-core", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "react chart core component", | ||
@@ -5,0 +5,0 @@ "main": "./index.jsx", |
@@ -128,3 +128,15 @@ "use strict"; | ||
_mkScale () { | ||
return scale(this.props); | ||
const{ | ||
type | ||
} = this.props; | ||
var func = scale(this.props); | ||
if(type === 'x' || type === 'y') { | ||
// if x, y set scale, not grid | ||
this.props.setScale(type, func); | ||
} | ||
return func; | ||
} | ||
@@ -131,0 +143,0 @@ |
@@ -32,7 +32,2 @@ export function scale(props) { | ||
if(type === 'x' || type === 'y') { | ||
// if x, y set scale, not grid | ||
props.setScale(type, func); | ||
} | ||
return func; | ||
@@ -39,0 +34,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4294650
30955