Socket
Socket
Sign inDemoInstall

victory-voronoi-container

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-voronoi-container - npm Package Compare versions

Comparing version 30.1.0 to 30.2.0

8

es/voronoi-helpers.js

@@ -54,4 +54,4 @@ import _includes from "lodash/includes";

var voronoiX = props.horizontal ? (y + y0) / 2 : (x + x0) / 2;
var voronoiY = props.horizontal ? (x + x0) / 2 : (y + y0) / 2;
var voronoiX = props.horizontal ? (+y + +y0) / 2 : (+x + +x0) / 2;
var voronoiY = props.horizontal ? (+x + +x0) / 2 : (+y + +y0) / 2;
return _assign({

@@ -78,4 +78,2 @@ _voronoiX: props.voronoiDimension === "y" ? 0 : voronoiX,

var iteratee = function (child, childName) {
var skippedRoles = ["axis", "legend", "label"];
var role = child.type && child.type.role;
var childProps = child.props || {};

@@ -85,3 +83,3 @@ var name = childProps.name || childName;

if (_includes(skippedRoles, role) || _includes(blacklist, name)) {
if (!Data.isDataComponent(child) || _includes(blacklist, name)) {
return null;

@@ -88,0 +86,0 @@ }

@@ -73,4 +73,4 @@ "use strict";

var voronoiX = props.horizontal ? (y + y0) / 2 : (x + x0) / 2;
var voronoiY = props.horizontal ? (x + x0) / 2 : (y + y0) / 2;
var voronoiX = props.horizontal ? (+y + +y0) / 2 : (+x + +x0) / 2;
var voronoiY = props.horizontal ? (+x + +x0) / 2 : (+y + +y0) / 2;
return (0, _assign2.default)({

@@ -98,4 +98,2 @@ _voronoiX: props.voronoiDimension === "y" ? 0 : voronoiX,

var iteratee = function (child, childName) {
var skippedRoles = ["axis", "legend", "label"];
var role = child.type && child.type.role;
var childProps = child.props || {};

@@ -105,3 +103,3 @@ var name = childProps.name || childName;

if ((0, _includes2.default)(skippedRoles, role) || (0, _includes2.default)(blacklist, name)) {
if (!_victoryCore.Data.isDataComponent(child) || (0, _includes2.default)(blacklist, name)) {
return null;

@@ -108,0 +106,0 @@ }

{
"name": "victory-voronoi-container",
"version": "30.1.0",
"version": "30.2.0",
"description": "Interactive Voronoi Mouseover Component for Victory",

@@ -25,4 +25,4 @@ "keywords": [

"prop-types": "^15.5.8",
"victory-core": "^30.1.0",
"victory-tooltip": "^30.1.0"
"victory-core": "^30.2.0",
"victory-tooltip": "^30.2.0"
},

@@ -29,0 +29,0 @@ "scripts": {

@@ -28,4 +28,4 @@ import { Selection, Data, Helpers } from "victory-core";

const { x, y, y0, x0 } = Helpers.getPoint(datum);
const voronoiX = props.horizontal ? (y + y0) / 2 : (x + x0) / 2;
const voronoiY = props.horizontal ? (x + x0) / 2 : (y + y0) / 2;
const voronoiX = props.horizontal ? (+y + +y0) / 2 : (+x + +x0) / 2;
const voronoiY = props.horizontal ? (+x + +x0) / 2 : (+y + +y0) / 2;
return assign({

@@ -52,8 +52,6 @@ _voronoiX: props.voronoiDimension === "y" ? 0 : voronoiX,

const iteratee = (child, childName) => {
const skippedRoles = ["axis", "legend", "label"];
const role = child.type && child.type.role;
const childProps = child.props || {};
const name = childProps.name || childName;
const blacklist = props.voronoiBlacklist || [];
if (includes(skippedRoles, role) || includes(blacklist, name)) {
if (!Data.isDataComponent(child) || includes(blacklist, name)) {
return null;

@@ -60,0 +58,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