victory-scatter
Advanced tools
Comparing version 35.9.3 to 35.10.0
@@ -14,4 +14,3 @@ import _isNil from "lodash/isNil"; | ||
import { Helpers, LabelHelpers, Data, Domain, Scale } from "victory-core"; | ||
var getSymbol = function (data, props) { | ||
export var getSymbol = function (data, props) { | ||
if (props.bubbleProperty) { | ||
@@ -23,4 +22,3 @@ return "circle"; | ||
}; | ||
var getBubbleSize = function (datum, props) { | ||
export var getBubbleSize = function (datum, props) { | ||
var data = props.data, | ||
@@ -55,4 +53,3 @@ z = props.z, | ||
}; | ||
var getSize = function (datum, props) { | ||
export var getSize = function (datum, props) { | ||
var size = props.size, | ||
@@ -101,3 +98,3 @@ z = props.z; | ||
var getBaseProps = function (props, fallbackProps) { | ||
export var getBaseProps = function (props, fallbackProps) { | ||
var modifiedProps = Helpers.modifyProps(props, fallbackProps, "scatter"); | ||
@@ -173,4 +170,2 @@ props = _assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
}, initialChildProps); | ||
}; | ||
export { getBaseProps, getSize, getBubbleSize, getSymbol }; | ||
}; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.getSymbol = exports.getBubbleSize = exports.getSize = exports.getBaseProps = void 0; | ||
exports.getBaseProps = exports.getSize = exports.getBubbleSize = exports.getSymbol = void 0; | ||
@@ -9,0 +9,0 @@ var _isNil2 = _interopRequireDefault(require("lodash/isNil")); |
{ | ||
"name": "victory-scatter", | ||
"version": "35.9.3", | ||
"version": "35.10.0", | ||
"description": "Scatter Component for Victory", | ||
@@ -24,4 +24,7 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^35.9.3" | ||
"victory-core": "^35.10.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.6.0 || ^17.0.0" | ||
}, | ||
"scripts": { | ||
@@ -28,0 +31,0 @@ "version": "nps build-libs && nps build-dists" |
import { assign, values, isNil } from "lodash"; | ||
import { Helpers, LabelHelpers, Data, Domain, Scale } from "victory-core"; | ||
const getSymbol = (data, props) => { | ||
export const getSymbol = (data, props) => { | ||
if (props.bubbleProperty) { | ||
@@ -11,3 +11,3 @@ return "circle"; | ||
const getBubbleSize = (datum, props) => { | ||
export const getBubbleSize = (datum, props) => { | ||
const { data, z, maxBubbleSize, minBubbleSize } = props; | ||
@@ -34,3 +34,3 @@ const zData = data.map((point) => point[z]); | ||
const getSize = (datum, props) => { | ||
export const getSize = (datum, props) => { | ||
const { size, z } = props; | ||
@@ -80,3 +80,3 @@ if (datum.size) { | ||
const getBaseProps = (props, fallbackProps) => { | ||
export const getBaseProps = (props, fallbackProps) => { | ||
const modifiedProps = Helpers.modifyProps(props, fallbackProps, "scatter"); | ||
@@ -152,3 +152,1 @@ props = assign({}, modifiedProps, getCalculatedValues(modifiedProps)); | ||
}; | ||
export { getBaseProps, getSize, getBubbleSize, getSymbol }; |
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
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
1045676
4
19082
8
4
Updatedvictory-core@^35.10.0