Socket
Socket
Sign inDemoInstall

@nivo/heatmap

Package Overview
Dependencies
5
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.35.0 to 0.35.2

29

cjs/nivo-heatmap.js

@@ -9,3 +9,5 @@ 'use strict';

var core = require('@nivo/core');
var lodash = require('lodash');
var min = _interopDefault(require('lodash/min'));
var max = _interopDefault(require('lodash/max'));
var isEqual = _interopDefault(require('lodash/isEqual'));
var compose = _interopDefault(require('recompose/compose'));

@@ -19,2 +21,3 @@ var defaultProps = _interopDefault(require('recompose/defaultProps'));

var React__default = _interopDefault(React);
var partial = _interopDefault(require('lodash/partial'));
var reactMotion = require('react-motion');

@@ -233,3 +236,3 @@ var setDisplayName = _interopDefault(require('recompose/setDisplayName'));

}), withPropsOnChange(function (prev, next) {
return prev.keys !== next.keys || prev.cellWidth !== next.cellWidth || prev.cellHeight !== next.cellHeight || prev.padding !== next.padding || !lodash.isEqual(prev.indices, next.indices);
return prev.keys !== next.keys || prev.cellWidth !== next.cellWidth || prev.cellHeight !== next.cellHeight || prev.padding !== next.padding || !isEqual(prev.indices, next.indices);
}, function (_ref5) {

@@ -264,4 +267,4 @@ var indices = _ref5.indices,

if (minValue === 'auto') minValue = lodash.min(allValues);
if (maxValue === 'auto') maxValue = lodash.max(allValues);
if (minValue === 'auto') minValue = min(allValues);
if (maxValue === 'auto') maxValue = max(allValues);
}

@@ -603,4 +606,4 @@

var onHover = lodash.partial(_this2.handleNodeHover, showTooltip);
var onLeave = lodash.partial(_this2.handleNodeLeave, hideTooltip);
var onHover = partial(_this2.handleNodeHover, showTooltip);
var onLeave = partial(_this2.handleNodeLeave, hideTooltip);

@@ -648,3 +651,3 @@ return React__default.createElement(

textColor: getLabelTextColor(node),
onHover: lodash.partial(onHover, node),
onHover: partial(onHover, node),
onLeave: onLeave

@@ -700,3 +703,3 @@ });

})),
onHover: lodash.partial(onHover, node),
onHover: partial(onHover, node),
onLeave: onLeave

@@ -878,5 +881,5 @@ });

if (cellShape === 'rect') {
renderNode = lodash.partial(renderRect, this.ctx);
renderNode = partial(renderRect, this.ctx);
} else {
renderNode = lodash.partial(renderCircle, this.ctx);
renderNode = partial(renderCircle, this.ctx);
}

@@ -935,5 +938,5 @@

},
onMouseEnter: lodash.partial(_this2.handleMouseHover, showTooltip, hideTooltip),
onMouseMove: lodash.partial(_this2.handleMouseHover, showTooltip, hideTooltip),
onMouseLeave: lodash.partial(_this2.handleMouseLeave, hideTooltip)
onMouseEnter: partial(_this2.handleMouseHover, showTooltip, hideTooltip),
onMouseMove: partial(_this2.handleMouseHover, showTooltip, hideTooltip),
onMouseLeave: partial(_this2.handleMouseLeave, hideTooltip)
});

@@ -940,0 +943,0 @@ }

{
"name": "@nivo/heatmap",
"version": "0.35.0",
"version": "0.35.2",
"license": "MIT",

@@ -12,4 +12,5 @@ "main": "./index.js",

"dependencies": {
"@nivo/core": "0.35.0",
"@nivo/core": "0.35.2",
"d3-scale": "^1.0.6",
"lodash": "^4.17.4",
"react-motion": "^0.5.2",

@@ -16,0 +17,0 @@ "recompose": "^0.26.0"

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc