Socket
Socket
Sign inDemoInstall

@nivo/pie

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/pie - npm Package Compare versions

Comparing version 0.38.0 to 0.40.0

index.d.ts

138

cjs/nivo-pie.js

@@ -20,2 +20,66 @@ 'use strict';

var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
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;
};
var inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
var possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
var PieSlice = function PieSlice(_ref) {

@@ -32,2 +96,3 @@ var data = _ref.data,

tooltipFormat = _ref.tooltipFormat,
tooltip = _ref.tooltip,
theme = _ref.theme;

@@ -42,3 +107,4 @@

theme: theme,
format: tooltipFormat
format: tooltipFormat,
renderContent: typeof tooltip === 'function' ? tooltip.bind(null, _extends({ color: color }, data)) : null
}), e);

@@ -73,2 +139,3 @@ };

tooltipFormat: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
tooltip: PropTypes.func,
showTooltip: PropTypes.func.isRequired,

@@ -95,66 +162,2 @@ hideTooltip: PropTypes.func.isRequired,

var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
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;
};
var inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};
var possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
};
var lineGenerator = d3Shape.line().x(function (d) {

@@ -401,3 +404,5 @@ return d.x;

tooltipFormat: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
tooltip: PropTypes.func,
// legends
legends: PropTypes.arrayOf(PropTypes.shape(legends.LegendPropShape)).isRequired

@@ -479,2 +484,3 @@ };

tooltipFormat = _ref.tooltipFormat,
tooltip = _ref.tooltip,
legends$$1 = _ref.legends;

@@ -595,2 +601,4 @@

hideTooltip: hideTooltip,
tooltipFormat: tooltipFormat,
tooltip: tooltip,
theme: theme,

@@ -597,0 +605,0 @@ onClick: onClick

{
"name": "@nivo/pie",
"version": "0.38.0",
"version": "0.40.0",
"license": "MIT",

@@ -9,2 +9,3 @@ "main": "./index.js",

"index.js",
"index.d.ts",
"cjs/"

@@ -11,0 +12,0 @@ ],

@@ -7,4 +7,4 @@ # `@nivo/pie`

[documentation](http://nivo.rocks/#/pie)
[documentation](http://nivo.rocks/pie)
![Pie](./doc/pie.png)
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