You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@nivo/voronoi

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/voronoi - npm Package Compare versions

Comparing version

to
0.35.0

55

cjs/nivo-voronoi.js

@@ -7,18 +7,10 @@ 'use strict';

var PropTypes = _interopDefault(require('prop-types'));
var React = _interopDefault(require('react'));
var d3Voronoi = require('d3-voronoi');
var core = require('@nivo/core');
var compose = _interopDefault(require('recompose/compose'));
var defaultProps = _interopDefault(require('recompose/defaultProps'));
var pure = _interopDefault(require('recompose/pure'));
var PropTypes = _interopDefault(require('prop-types'));
var core = require('@nivo/core');
var d3Voronoi = require('d3-voronoi');
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var VoronoiPropTypes = {

@@ -57,22 +49,6 @@ data: PropTypes.arrayOf(PropTypes.shape({

/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var enhance = (function (Component) {
return compose(defaultProps(VoronoiDefaultProps), core.withTheme(), core.withDimensions(), pure)(Component);
return compose(defaultProps(VoronoiDefaultProps), core.withTheme(), core.withDimensions(), pure)(Component);
});
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var Voronoi = function Voronoi(_ref) {

@@ -96,3 +72,3 @@ var data = _ref.data,

var voronoi$$1 = d3Voronoi.voronoi().x(function (d) {
var voronoi = d3Voronoi.voronoi().x(function (d) {
return d.x;

@@ -103,4 +79,4 @@ }).y(function (d) {

var polygons = voronoi$$1.polygons(data);
var links = voronoi$$1.links(data);
var polygons = voronoi.polygons(data);
var links = voronoi.links(data);

@@ -173,10 +149,2 @@ return React.createElement(

/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var ResponsiveVoronoi = (function (props) {

@@ -194,11 +162,2 @@ return React.createElement(

/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
exports.Voronoi = Voronoi$1;

@@ -205,0 +164,0 @@ exports.ResponsiveVoronoi = ResponsiveVoronoi;

{
"name": "@nivo/voronoi",
"version": "0.34.0-1",
"version": "0.35.0",
"license": "MIT",

@@ -12,15 +12,6 @@ "main": "./index.js",

"dependencies": {
"@nivo/core": "0.34.0-1",
"@nivo/core": "0.35.0",
"d3-voronoi": "^1.1.2",
"recompose": "^0.26.0"
},
"devDependencies": {
"@nivo/babel-preset": "0.34.0-1",
"babel-cli": "^6.26.0",
"babel-jest": "^20.0.3",
"cross-env": "^5.0.5",
"jest": "^21.0.1",
"react": "^16.2.0",
"react-dom": "^16.2.0"
},
"peerDependencies": {

@@ -32,4 +23,3 @@ "prop-types": "^15.5.10",

"access": "public"
},
"scripts": {}
}
}