victory-scatter
Advanced tools
Comparing version 31.1.0 to 31.2.0
@@ -0,1 +1,2 @@ | ||
import _isNil from "lodash/isNil"; | ||
import _values from "lodash/values"; | ||
@@ -132,3 +133,3 @@ import _assign from "lodash/assign"; | ||
return data.reduce(function (childProps, datum, index) { | ||
var eventKey = datum.eventKey || index; | ||
var eventKey = !_isNil(datum.eventKey) ? datum.eventKey : index; | ||
@@ -135,0 +136,0 @@ var _Helpers$scalePoint = Helpers.scalePoint(props, datum), |
@@ -8,2 +8,4 @@ "use strict"; | ||
var _isNil2 = _interopRequireDefault(require("lodash/isNil")); | ||
var _values2 = _interopRequireDefault(require("lodash/values")); | ||
@@ -153,3 +155,3 @@ | ||
return data.reduce(function (childProps, datum, index) { | ||
var eventKey = datum.eventKey || index; | ||
var eventKey = !(0, _isNil2.default)(datum.eventKey) ? datum.eventKey : index; | ||
@@ -156,0 +158,0 @@ var _Helpers$scalePoint = _victoryCore.Helpers.scalePoint(props, datum), |
{ | ||
"name": "victory-scatter", | ||
"version": "31.1.0", | ||
"version": "31.2.0", | ||
"description": "Scatter Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^31.1.0" | ||
"victory-core": "^31.2.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
import { assign, values } from "lodash"; | ||
import { assign, values, isNil } from "lodash"; | ||
import { Helpers, LabelHelpers, Data, Domain, Scale } from "victory-core"; | ||
@@ -112,3 +112,3 @@ | ||
return data.reduce((childProps, datum, index) => { | ||
const eventKey = datum.eventKey || index; | ||
const eventKey = !isNil(datum.eventKey) ? datum.eventKey : index; | ||
const { x, y } = Helpers.scalePoint(props, datum); | ||
@@ -115,0 +115,0 @@ const dataProps = { |
Sorry, the diff of this file is too big to display
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
1169570
21099
Updatedvictory-core@^31.2.0