victory-voronoi-container
Advanced tools
Comparing version 30.2.0 to 30.3.0
@@ -187,3 +187,3 @@ import _pick from "lodash/pick"; | ||
return points.reduce(function (memo, point, index) { | ||
var text = Helpers.evaluateProp(labels, point, true); | ||
var text = _isFunction(labels) ? labels(point, index, points) : undefined; | ||
var textArray = text !== undefined ? "".concat(text).split("\n") : []; | ||
@@ -190,0 +190,0 @@ var baseStyle = point.style && point.style[type] || {}; |
@@ -206,4 +206,3 @@ "use strict"; | ||
return points.reduce(function (memo, point, index) { | ||
var text = _victoryCore.Helpers.evaluateProp(labels, point, true); | ||
var text = (0, _isFunction2.default)(labels) ? labels(point, index, points) : undefined; | ||
var textArray = text !== undefined ? "".concat(text).split("\n") : []; | ||
@@ -210,0 +209,0 @@ var baseStyle = point.style && point.style[type] || {}; |
{ | ||
"name": "victory-voronoi-container", | ||
"version": "30.2.0", | ||
"version": "30.3.0", | ||
"description": "Interactive Voronoi Mouseover Component for Victory", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^30.2.0", | ||
"victory-tooltip": "^30.2.0" | ||
"victory-core": "^30.3.0", | ||
"victory-tooltip": "^30.3.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
@@ -162,3 +162,3 @@ import PropTypes from "prop-types"; | ||
return points.reduce((memo, point, index) => { | ||
const text = Helpers.evaluateProp(labels, point, true); | ||
const text = isFunction(labels) ? labels(point, index, points) : undefined; | ||
const textArray = text !== undefined ? `${text}`.split("\n") : []; | ||
@@ -165,0 +165,0 @@ const baseStyle = point.style && point.style[type] || {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1313022
23885
Updatedvictory-core@^30.3.0
Updatedvictory-tooltip@^30.3.0