Comparing version 0.49.0 to 0.50.0
@@ -312,2 +312,4 @@ 'use strict'; | ||
onClick: PropTypes.func.isRequired, | ||
onMouseEnter: PropTypes.func.isRequired, | ||
onMouseLeave: PropTypes.func.isRequired, | ||
@@ -364,2 +366,4 @@ // tooltip | ||
onClick: core.noop, | ||
onMouseEnter: core.noop, | ||
onMouseLeave: core.noop, | ||
@@ -383,2 +387,4 @@ // tooltip | ||
onClick = _ref.onClick, | ||
onMouseEnter = _ref.onMouseEnter, | ||
onMouseLeave = _ref.onMouseLeave, | ||
tooltipFormat = _ref.tooltipFormat, | ||
@@ -399,2 +405,10 @@ tooltip = _ref.tooltip, | ||
}; | ||
var handleMouseEnter = function handleMouseEnter(e) { | ||
onMouseEnter(data, e); | ||
handleTooltip(e); | ||
}; | ||
var handleMouseLeave = function handleMouseLeave(e) { | ||
onMouseLeave(data, e); | ||
hideTooltip(e); | ||
}; | ||
@@ -407,5 +421,5 @@ return React__default.createElement('path', { | ||
stroke: borderColor, | ||
onMouseEnter: handleTooltip, | ||
onMouseEnter: handleMouseEnter, | ||
onMouseMove: handleTooltip, | ||
onMouseLeave: hideTooltip, | ||
onMouseLeave: handleMouseLeave, | ||
onClick: onClick | ||
@@ -432,2 +446,4 @@ }); | ||
onClick: PropTypes.func, | ||
onMouseEnter: PropTypes.func, | ||
onMouseLeave: PropTypes.func, | ||
@@ -774,2 +790,4 @@ theme: PropTypes.shape({ | ||
onClick = _props.onClick, | ||
onMouseEnter = _props.onMouseEnter, | ||
onMouseLeave = _props.onMouseLeave, | ||
tooltipFormat = _props.tooltipFormat, | ||
@@ -842,2 +860,4 @@ tooltip = _props.tooltip, | ||
onClick: onClick, | ||
onMouseEnter: onMouseEnter, | ||
onMouseLeave: onMouseLeave, | ||
theme: theme | ||
@@ -844,0 +864,0 @@ }); |
{ | ||
"name": "@nivo/pie", | ||
"version": "0.49.0", | ||
"version": "0.50.0", | ||
"license": "MIT", | ||
@@ -26,4 +26,4 @@ "author": { | ||
"dependencies": { | ||
"@nivo/core": "0.49.0", | ||
"@nivo/legends": "0.49.0", | ||
"@nivo/core": "0.50.0", | ||
"@nivo/legends": "0.50.0", | ||
"d3-shape": "^1.2.2", | ||
@@ -41,3 +41,3 @@ "lodash": "^4.17.4", | ||
}, | ||
"gitHead": "35e4fdcdcd11ff2852144efbdc1e67d0bfba8331" | ||
"gitHead": "934117e4d2873a2a5684aa8e713d5b0e788cc67a" | ||
} |
@@ -308,2 +308,4 @@ (function (global, factory) { | ||
onClick: PropTypes.func.isRequired, | ||
onMouseEnter: PropTypes.func.isRequired, | ||
onMouseLeave: PropTypes.func.isRequired, | ||
@@ -360,2 +362,4 @@ // tooltip | ||
onClick: core.noop, | ||
onMouseEnter: core.noop, | ||
onMouseLeave: core.noop, | ||
@@ -379,2 +383,4 @@ // tooltip | ||
onClick = _ref.onClick, | ||
onMouseEnter = _ref.onMouseEnter, | ||
onMouseLeave = _ref.onMouseLeave, | ||
tooltipFormat = _ref.tooltipFormat, | ||
@@ -395,2 +401,10 @@ tooltip = _ref.tooltip, | ||
}; | ||
var handleMouseEnter = function handleMouseEnter(e) { | ||
onMouseEnter(data, e); | ||
handleTooltip(e); | ||
}; | ||
var handleMouseLeave = function handleMouseLeave(e) { | ||
onMouseLeave(data, e); | ||
hideTooltip(e); | ||
}; | ||
@@ -403,5 +417,5 @@ return React__default.createElement('path', { | ||
stroke: borderColor, | ||
onMouseEnter: handleTooltip, | ||
onMouseEnter: handleMouseEnter, | ||
onMouseMove: handleTooltip, | ||
onMouseLeave: hideTooltip, | ||
onMouseLeave: handleMouseLeave, | ||
onClick: onClick | ||
@@ -428,2 +442,4 @@ }); | ||
onClick: PropTypes.func, | ||
onMouseEnter: PropTypes.func, | ||
onMouseLeave: PropTypes.func, | ||
@@ -770,2 +786,4 @@ theme: PropTypes.shape({ | ||
onClick = _props.onClick, | ||
onMouseEnter = _props.onMouseEnter, | ||
onMouseLeave = _props.onMouseLeave, | ||
tooltipFormat = _props.tooltipFormat, | ||
@@ -838,2 +856,4 @@ tooltip = _props.tooltip, | ||
onClick: onClick, | ||
onMouseEnter: onMouseEnter, | ||
onMouseLeave: onMouseLeave, | ||
theme: theme | ||
@@ -840,0 +860,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104933
2419
+ Added@nivo/core@0.50.0(transitive)
+ Added@nivo/legends@0.50.0(transitive)
- Removed@nivo/core@0.49.0(transitive)
- Removed@nivo/legends@0.49.0(transitive)
Updated@nivo/core@0.50.0
Updated@nivo/legends@0.50.0