Socket
Socket
Sign inDemoInstall

@nivo/heatmap

Package Overview
Dependencies
380
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.32.0 to 0.33.0-0

package-lock.json

19

es/HeatMap.js

@@ -21,7 +21,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

import { colorMotionSpring, getInterpolatedColor } from '@nivo/core';
import { Container, SvgWrapper } from '@nivo/core';
import { Grid, Axes } from '@nivo/core';
import setDisplayName from 'recompose/setDisplayName';
import { HeatMapPropTypes } from './props';
import computeNodes from './computeNodes';
import enhance from './enhance';
import { Container, SvgWrapper } from '@nivo/core';
import { Grid, Axes } from '@nivo/core';
import HeatMapCellRect from './HeatMapCellRect';

@@ -31,2 +32,4 @@ import HeatMapCellCircle from './HeatMapCellCircle';

import { scaleLinear } from 'd3-scale';
var HeatMap = function (_Component) {

@@ -66,2 +69,4 @@ _inherits(HeatMap, _Component);

offsetY = _props.offsetY,
minValue = _props.minValue,
maxValue = _props.maxValue,
margin = _props.margin,

@@ -84,2 +89,3 @@ width = _props.width,

theme = _props.theme,
colorScale = _props.colorScale,
animate = _props.animate,

@@ -109,2 +115,9 @@ motionStiffness = _props.motionStiffness,

var legendItems = scaleLinear().domain([minValue, maxValue]).ticks(4).map(function (i) {
return {
label: i,
fill: colorScale(i)
};
});
return React.createElement(

@@ -230,2 +243,2 @@ Container,

export default enhance(HeatMap);
export default setDisplayName('HeatMap')(enhance(HeatMap));

@@ -17,2 +17,6 @@ 'use strict';

var _setDisplayName = require('recompose/setDisplayName');
var _setDisplayName2 = _interopRequireDefault(_setDisplayName);
var _props2 = require('./props');

@@ -40,2 +44,4 @@

var _d3Scale = require('d3-scale');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -91,2 +97,4 @@

offsetY = _props.offsetY,
minValue = _props.minValue,
maxValue = _props.maxValue,
margin = _props.margin,

@@ -109,2 +117,3 @@ width = _props.width,

theme = _props.theme,
colorScale = _props.colorScale,
animate = _props.animate,

@@ -134,2 +143,9 @@ motionStiffness = _props.motionStiffness,

var legendItems = (0, _d3Scale.scaleLinear)().domain([minValue, maxValue]).ticks(4).map(function (i) {
return {
label: i,
fill: colorScale(i)
};
});
return _react2.default.createElement(

@@ -253,2 +269,2 @@ _core.Container,

HeatMap.propTypes = _props2.HeatMapPropTypes;
exports.default = (0, _enhance2.default)(HeatMap);
exports.default = (0, _setDisplayName2.default)('HeatMap')((0, _enhance2.default)(HeatMap));

2

package.json
{
"name": "@nivo/heatmap",
"version": "0.32.0",
"version": "0.33.0-0",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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