Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-selection-container

Package Overview
Dependencies
Maintainers
26
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-selection-container - npm Package Compare versions

Comparing version 36.5.3 to 36.6.0

CHANGELOG.md

51

es/selection-helpers.js

@@ -57,10 +57,5 @@ import _includes from "lodash/includes";

child = parent ? /*#__PURE__*/React.cloneElement(child, parent.props) : child;
var childData = child.props && child.type.getData(child.props);
return childData ? {
childName: childName,
data: childData
} : null;
} else {
var _childData = getData(child.props);
var _childData = child.props && child.type.getData(child.props);
return _childData ? {

@@ -71,2 +66,8 @@ childName: childName,

}
var childData = getData(child.props);
return childData ? {
childName: childName,
data: childData
} : null;
};

@@ -183,22 +184,22 @@

return null;
} else {
var parentSVG = targetProps.parentSVG || Selection.getParentSVG(evt);
}
var _Selection$getSVGEven2 = Selection.getSVGEventCoordinates(evt, parentSVG),
x = _Selection$getSVGEven2.x,
y = _Selection$getSVGEven2.y;
var parentSVG = targetProps.parentSVG || Selection.getParentSVG(evt);
var x2 = polar || dimension !== "y" ? x : Selection.getDomainCoordinates(targetProps).x[1];
var y2 = polar || dimension !== "x" ? y : Selection.getDomainCoordinates(targetProps).y[1];
return {
target: "parent",
mutation: function () {
return {
x2: x2,
y2: y2,
parentSVG: parentSVG
};
}
};
}
var _Selection$getSVGEven2 = Selection.getSVGEventCoordinates(evt, parentSVG),
x = _Selection$getSVGEven2.x,
y = _Selection$getSVGEven2.y;
var x2 = polar || dimension !== "y" ? x : Selection.getDomainCoordinates(targetProps).x[1];
var y2 = polar || dimension !== "x" ? y : Selection.getDomainCoordinates(targetProps).y[1];
return {
target: "parent",
mutation: function () {
return {
x2: x2,
y2: y2,
parentSVG: parentSVG
};
}
};
},

@@ -205,0 +206,0 @@ onMouseUp: function (evt, targetProps) {

@@ -73,10 +73,5 @@ "use strict";

child = parent ? /*#__PURE__*/_react.default.cloneElement(child, parent.props) : child;
var childData = child.props && child.type.getData(child.props);
return childData ? {
childName: childName,
data: childData
} : null;
} else {
var _childData = getData(child.props);
var _childData = child.props && child.type.getData(child.props);
return _childData ? {

@@ -87,2 +82,8 @@ childName: childName,

}
var childData = getData(child.props);
return childData ? {
childName: childName,
data: childData
} : null;
};

@@ -201,22 +202,22 @@

return null;
} else {
var parentSVG = targetProps.parentSVG || _victoryCore.Selection.getParentSVG(evt);
}
var _Selection$getSVGEven2 = _victoryCore.Selection.getSVGEventCoordinates(evt, parentSVG),
x = _Selection$getSVGEven2.x,
y = _Selection$getSVGEven2.y;
var parentSVG = targetProps.parentSVG || _victoryCore.Selection.getParentSVG(evt);
var x2 = polar || dimension !== "y" ? x : _victoryCore.Selection.getDomainCoordinates(targetProps).x[1];
var y2 = polar || dimension !== "x" ? y : _victoryCore.Selection.getDomainCoordinates(targetProps).y[1];
return {
target: "parent",
mutation: function () {
return {
x2: x2,
y2: y2,
parentSVG: parentSVG
};
}
};
}
var _Selection$getSVGEven2 = _victoryCore.Selection.getSVGEventCoordinates(evt, parentSVG),
x = _Selection$getSVGEven2.x,
y = _Selection$getSVGEven2.y;
var x2 = polar || dimension !== "y" ? x : _victoryCore.Selection.getDomainCoordinates(targetProps).x[1];
var y2 = polar || dimension !== "x" ? y : _victoryCore.Selection.getDomainCoordinates(targetProps).y[1];
return {
target: "parent",
mutation: function () {
return {
x2: x2,
y2: y2,
parentSVG: parentSVG
};
}
};
},

@@ -223,0 +224,0 @@ onMouseUp: function (evt, targetProps) {

{
"name": "victory-selection-container",
"version": "36.5.3",
"version": "36.6.0",
"description": "Interactive Selection Component for Victory",

@@ -16,2 +16,3 @@ "keywords": [

"homepage": "https://formidable.com/open-source/victory",
"sideEffects": false,
"main": "lib/index.js",

@@ -25,3 +26,3 @@ "module": "es/index.js",

"prop-types": "^15.8.1",
"victory-core": "^36.5.3"
"victory-core": "^36.6.0"
},

@@ -31,7 +32,241 @@ "peerDependencies": {

},
"devDependencies": {
"victory-bar": "^36.6.0"
},
"wireit": {
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
"### DO NOT MODIFY THESE MANUALLY ####": {},
"build": {
"dependencies": [
"build:lib",
"build:dist",
"types:create"
]
},
"build:lib": {
"dependencies": [
"build:lib:esm",
"build:lib:cjs"
]
},
"build:lib:esm": {
"command": "nps build:lib:esm",
"files": [
"src/**",
"!src/**/*.test.*",
"../../.babelrc.build.js"
],
"output": [
"es/**/*.js",
"es/**/*.js.map"
],
"dependencies": [
"../victory-core:build:lib:esm"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"build:lib:cjs": {
"command": "nps build:lib:cjs",
"files": [
"src/**",
"!src/**/*.test.*",
"../../.babelrc.build.js"
],
"output": [
"lib/**/*.js",
"lib/**/*.js.map"
],
"dependencies": [
"../victory-core:build:lib:cjs"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"build:dist": {
"dependencies": [
"build:dist:dev",
"build:dist:min"
]
},
"build:dist:dev": {
"command": "nps build:dist:dev",
"files": [
"src/**",
"!src/**/*.test.*",
"../../.babelrc.build.js",
"../../config/webpack.config.js",
"../../config/webpack.config.dev.js"
],
"output": [
"dist/victory*.js",
"!dist/victory*.min.js*"
],
"dependencies": [
"../victory-core:build:lib:esm"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"build:dist:min": {
"command": "nps build:dist:min",
"files": [
"src/**",
"!src/**/*.test.*",
"../../.babelrc.build.js",
"../../config/webpack.config.js"
],
"output": [
"dist/victory*.min.js*"
],
"dependencies": [
"../victory-core:build:lib:esm"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"types:check": {
"command": "nps types:pkg:check",
"files": [
"src/**/*.{ts,tsx}",
"../../tsconfig.base.json",
"tsconfig.json"
],
"dependencies": [
"types:create",
"../victory-core:types:create",
"../victory-bar:types:create",
"../victory-vendor:types:create",
"../victory-voronoi:types:create"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"types:create": {
"command": "nps types:pkg:create",
"files": [
"src/**",
"!src/**/*.test.*",
"../../tsconfig.base.json",
"tsconfig.build.json"
],
"output": [
"es/**/*.d.ts",
"es/**/*.d.ts.map",
"lib/**/*.d.ts",
"lib/**/*.d.ts.map"
],
"dependencies": [
"../victory-core:types:create"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"format": {
"command": "nps format:pkg",
"files": [
"src/**",
"*.json",
"../../.prettierignore",
"../../.prettierrc.json"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"lint": {
"command": "nps lint:pkg",
"files": [
"src/**",
"../../.eslintignore",
"../../.eslintrc.js"
],
"output": [],
"dependencies": [
"../victory-core:types:create",
"../victory-bar:types:create",
"../victory-vendor:types:create",
"../victory-voronoi:types:create"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"format:fix": {
"command": "pnpm run format || nps format:pkg:fix",
"files": [
"src/**",
"*.json",
"../../.prettierignore",
"../../.prettierrc.json"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"lint:fix": {
"command": "pnpm run lint || nps lint:pkg:fix",
"files": [
"src/**",
"../../.eslintignore",
"../../.eslintrc.js"
],
"output": [],
"dependencies": [
"../victory-core:types:create",
"../victory-bar:types:create",
"../victory-vendor:types:create",
"../victory-voronoi:types:create"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"jest": {
"command": "nps jest:pkg",
"files": [
"src/**/*.test.*",
"../../.babelrc.js",
"../../test/jest-config.js",
"../../test/jest-setup.ts"
],
"output": [],
"dependencies": [
"build:lib:cjs",
"../victory-bar:build:lib:cjs",
"../victory-vendor:build:lib:cjs",
"../victory-voronoi:build:lib:cjs"
],
"packageLocks": [
"pnpm-lock.yaml"
]
}
},
"scripts": {
"version": "yarn run nps build-libs && nps build-dists"
},
"sideEffects": false,
"gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e"
}
"### THESE SCRIPTS ARE GENERATED ###": "true",
"### DO NOT MODIFY THESE MANUALLY ###": "true",
"build": "wireit",
"build:lib": "wireit",
"build:lib:esm": "wireit",
"build:lib:cjs": "wireit",
"build:dist": "wireit",
"build:dist:dev": "wireit",
"build:dist:min": "wireit",
"types:check": "wireit",
"types:create": "wireit",
"format": "wireit",
"format:fix": "wireit",
"lint": "wireit",
"lint:fix": "wireit",
"jest": "wireit"
}
}

@@ -32,6 +32,5 @@ import { Selection, Data, Helpers } from "victory-core";

return childData ? { childName, data: childData } : null;
} else {
const childData = getData(child.props);
return childData ? { childName, data: childData } : null;
}
const childData = getData(child.props);
return childData ? { childName, data: childData } : null;
};

@@ -138,20 +137,19 @@ return Helpers.reduceChildren(

return null;
} else {
const parentSVG = targetProps.parentSVG || Selection.getParentSVG(evt);
const { x, y } = Selection.getSVGEventCoordinates(evt, parentSVG);
const x2 =
polar || dimension !== "y"
? x
: Selection.getDomainCoordinates(targetProps).x[1];
const y2 =
polar || dimension !== "x"
? y
: Selection.getDomainCoordinates(targetProps).y[1];
return {
target: "parent",
mutation: () => {
return { x2, y2, parentSVG };
},
};
}
const parentSVG = targetProps.parentSVG || Selection.getParentSVG(evt);
const { x, y } = Selection.getSVGEventCoordinates(evt, parentSVG);
const x2 =
polar || dimension !== "y"
? x
: Selection.getDomainCoordinates(targetProps).x[1];
const y2 =
polar || dimension !== "x"
? y
: Selection.getDomainCoordinates(targetProps).y[1];
return {
target: "parent",
mutation: () => {
return { x2, y2, parentSVG };
},
};
},

@@ -158,0 +156,0 @@

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