Socket
Socket
Sign inDemoInstall

victory-scatter

Package Overview
Dependencies
Maintainers
7
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-scatter - npm Package Compare versions

Comparing version 35.9.3 to 35.10.0

15

es/helper-methods.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc