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

@nivo/sankey

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/sankey - npm Package Compare versions

Comparing version 0.63.0 to 0.63.1

11

dist/nivo-sankey.cjs.js

@@ -7,5 +7,5 @@ 'use strict';

var _uniq = _interopDefault(require('lodash/uniq'));
var React = require('react');
var React__default = _interopDefault(React);
var lodash = require('lodash');
var core = require('@nivo/core');

@@ -16,2 +16,3 @@ var legends = require('@nivo/legends');

var colors = require('@nivo/colors');
var _cloneDeep = _interopDefault(require('lodash/cloneDeep'));
var reactSpring = require('react-spring');

@@ -232,3 +233,3 @@ var tooltip = require('@nivo/tooltip');

var sankey = d3Sankey.sankey().nodeAlign(alignFunction).nodeSort(sortFunction).linkSort(linkSortMode).nodeWidth(nodeThickness).nodePadding(nodeSpacing).size(layout === 'horizontal' ? [width, height] : [height, width]).nodeId(getId);
var data = lodash.cloneDeep(_data);
var data = _cloneDeep(_data);
sankey(data);

@@ -546,4 +547,4 @@ data.nodes.forEach(function (node) {

springConfig = _useMotionConfig.config;
var animatedPath = core.useAnimatedPath(path);
var animatedProps = reactSpring.useSpring({
path: path,
color: color,

@@ -592,3 +593,3 @@ opacity: opacity,

fill: enableGradient ? "url(\"#".concat(encodeURI(linkId), "\")") : animatedProps.color,
d: animatedProps.path,
d: animatedPath,
fillOpacity: animatedProps.opacity,

@@ -860,3 +861,3 @@ onMouseEnter: isInteractive ? handleMouseEnter : undefined,

});
currentNodeIds = lodash.uniq(currentNodeIds);
currentNodeIds = _uniq(currentNodeIds);
isCurrentNode = function isCurrentNode(_ref6) {

@@ -863,0 +864,0 @@ var id = _ref6.id;

@@ -0,4 +1,4 @@

import _uniq from 'lodash/uniq';
import React, { useState, useMemo, memo, useCallback, Fragment } from 'react';
import { cloneDeep, uniq } from 'lodash';
import { blendModePropType, motionPropTypes, noop, useTheme, getLabelGenerator, useMotionConfig, withContainer, useDimensions, SvgWrapper, ResponsiveWrapper } from '@nivo/core';
import { blendModePropType, motionPropTypes, noop, useTheme, getLabelGenerator, useMotionConfig, useAnimatedPath, withContainer, useDimensions, SvgWrapper, ResponsiveWrapper } from '@nivo/core';
import { LegendPropShape, BoxLegendSvg } from '@nivo/legends';

@@ -8,2 +8,3 @@ import PropTypes from 'prop-types';

import { ordinalColorsPropType, inheritedColorPropType, useOrdinalColorScale, useInheritedColor } from '@nivo/colors';
import _cloneDeep from 'lodash/cloneDeep';
import { useSpring, animated, useSprings } from 'react-spring';

@@ -224,3 +225,3 @@ import { useTooltip, BasicTooltip, Chip } from '@nivo/tooltip';

var sankey$1 = sankey().nodeAlign(alignFunction).nodeSort(sortFunction).linkSort(linkSortMode).nodeWidth(nodeThickness).nodePadding(nodeSpacing).size(layout === 'horizontal' ? [width, height] : [height, width]).nodeId(getId);
var data = cloneDeep(_data);
var data = _cloneDeep(_data);
sankey$1(data);

@@ -538,4 +539,4 @@ data.nodes.forEach(function (node) {

springConfig = _useMotionConfig.config;
var animatedPath = useAnimatedPath(path);
var animatedProps = useSpring({
path: path,
color: color,

@@ -584,3 +585,3 @@ opacity: opacity,

fill: enableGradient ? "url(\"#".concat(encodeURI(linkId), "\")") : animatedProps.color,
d: animatedProps.path,
d: animatedPath,
fillOpacity: animatedProps.opacity,

@@ -852,3 +853,3 @@ onMouseEnter: isInteractive ? handleMouseEnter : undefined,

});
currentNodeIds = uniq(currentNodeIds);
currentNodeIds = _uniq(currentNodeIds);
isCurrentNode = function isCurrentNode(_ref6) {

@@ -855,0 +856,0 @@ var id = _ref6.id;

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('lodash'), require('@nivo/core'), require('@nivo/legends'), require('prop-types'), require('d3-sankey'), require('@nivo/colors'), require('react-spring'), require('@nivo/tooltip'), require('d3-shape')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'lodash', '@nivo/core', '@nivo/legends', 'prop-types', 'd3-sankey', '@nivo/colors', 'react-spring', '@nivo/tooltip', 'd3-shape'], factory) :
(global = global || self, factory(global.nivo = global.nivo || {}, global.React, global.lodash, global.nivo, global.nivo, global.PropTypes, global.d3, global.nivo, global['react-spring'], global.nivo, global.d3));
}(this, (function (exports, React, lodash, core, legends, PropTypes, d3Sankey, colors, reactSpring, tooltip, d3Shape) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash/uniq'), require('react'), require('@nivo/core'), require('@nivo/legends'), require('prop-types'), require('d3-sankey'), require('@nivo/colors'), require('lodash/cloneDeep'), require('react-spring'), require('@nivo/tooltip'), require('d3-shape')) :
typeof define === 'function' && define.amd ? define(['exports', 'lodash/uniq', 'react', '@nivo/core', '@nivo/legends', 'prop-types', 'd3-sankey', '@nivo/colors', 'lodash/cloneDeep', 'react-spring', '@nivo/tooltip', 'd3-shape'], factory) :
(global = global || self, factory(global.nivo = global.nivo || {}, global['lodash/uniq'], global.React, global.nivo, global.nivo, global.PropTypes, global.d3, global.nivo, global['lodash/cloneDeep'], global['react-spring'], global.nivo, global.d3));
}(this, (function (exports, _uniq, React, core, legends, PropTypes, d3Sankey, colors, _cloneDeep, reactSpring, tooltip, d3Shape) { 'use strict';
_uniq = _uniq && Object.prototype.hasOwnProperty.call(_uniq, 'default') ? _uniq['default'] : _uniq;
var React__default = 'default' in React ? React['default'] : React;
PropTypes = PropTypes && Object.prototype.hasOwnProperty.call(PropTypes, 'default') ? PropTypes['default'] : PropTypes;
_cloneDeep = _cloneDeep && Object.prototype.hasOwnProperty.call(_cloneDeep, 'default') ? _cloneDeep['default'] : _cloneDeep;

@@ -221,3 +223,3 @@ function _defineProperty(obj, key, value) {

var sankey = d3Sankey.sankey().nodeAlign(alignFunction).nodeSort(sortFunction).linkSort(linkSortMode).nodeWidth(nodeThickness).nodePadding(nodeSpacing).size(layout === 'horizontal' ? [width, height] : [height, width]).nodeId(getId);
var data = lodash.cloneDeep(_data);
var data = _cloneDeep(_data);
sankey(data);

@@ -535,4 +537,4 @@ data.nodes.forEach(function (node) {

springConfig = _useMotionConfig.config;
var animatedPath = core.useAnimatedPath(path);
var animatedProps = reactSpring.useSpring({
path: path,
color: color,

@@ -581,3 +583,3 @@ opacity: opacity,

fill: enableGradient ? "url(\"#".concat(encodeURI(linkId), "\")") : animatedProps.color,
d: animatedProps.path,
d: animatedPath,
fillOpacity: animatedProps.opacity,

@@ -849,3 +851,3 @@ onMouseEnter: isInteractive ? handleMouseEnter : undefined,

});
currentNodeIds = lodash.uniq(currentNodeIds);
currentNodeIds = _uniq(currentNodeIds);
isCurrentNode = function isCurrentNode(_ref6) {

@@ -852,0 +854,0 @@ var id = _ref6.id;

{
"name": "@nivo/sankey",
"version": "0.63.0",
"version": "0.63.1",
"license": "MIT",

@@ -27,3 +27,3 @@ "author": {

"@nivo/colors": "0.63.0",
"@nivo/legends": "0.63.0",
"@nivo/legends": "0.63.1",
"@nivo/tooltip": "0.63.0",

@@ -43,3 +43,3 @@ "d3-sankey": "^0.12.1",

},
"gitHead": "defc453433d8e6767ba3d612cce0d05c119ec5ed"
"gitHead": "dfa63783e79cb07c8bafbd3a4aea6cabbd0131c3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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