@nivo/legends
Advanced tools
Comparing version 0.47.0 to 0.48.0
@@ -593,3 +593,4 @@ 'use strict'; | ||
onMouseEnter = _props.onMouseEnter, | ||
onMouseLeave = _props.onMouseLeave; | ||
onMouseLeave = _props.onMouseLeave, | ||
theme = _props.theme; | ||
var style = this.state.style; | ||
@@ -654,3 +655,3 @@ | ||
textAnchor: labelAnchor, | ||
style: { | ||
style: _extends({}, theme.legends.text, { | ||
fill: style.itemTextColor || textColor, | ||
@@ -660,3 +661,3 @@ alignmentBaseline: labelAlignment, | ||
userSelect: 'none' | ||
}, | ||
}), | ||
x: labelX, | ||
@@ -729,3 +730,4 @@ y: labelY | ||
onMouseEnter = _ref.onMouseEnter, | ||
onMouseLeave = _ref.onMouseLeave; | ||
onMouseLeave = _ref.onMouseLeave, | ||
theme = _ref.theme; | ||
@@ -764,17 +766,15 @@ // eslint-disable-next-line no-unused-vars | ||
justify: justify, | ||
effects: effects | ||
// item | ||
, textColor: itemTextColor, | ||
effects: effects, | ||
textColor: itemTextColor, | ||
background: itemBackground, | ||
opacity: itemOpacity | ||
// symbol | ||
, symbolShape: symbolShape, | ||
opacity: itemOpacity, | ||
symbolShape: symbolShape, | ||
symbolSize: symbolSize, | ||
symbolSpacing: symbolSpacing, | ||
symbolBorderWidth: symbolBorderWidth, | ||
symbolBorderColor: symbolBorderColor | ||
// interactivity | ||
, onClick: onClick, | ||
symbolBorderColor: symbolBorderColor, | ||
onClick: onClick, | ||
onMouseEnter: onMouseEnter, | ||
onMouseLeave: onMouseLeave | ||
onMouseLeave: onMouseLeave, | ||
theme: theme | ||
}); | ||
@@ -849,3 +849,4 @@ }) | ||
onMouseLeave = _ref.onMouseLeave, | ||
effects = _ref.effects; | ||
effects = _ref.effects, | ||
theme = _ref.theme; | ||
@@ -882,5 +883,4 @@ var _computeDimensions = computeDimensions({ | ||
justify: justify, | ||
effects: effects | ||
// item | ||
, itemsSpacing: itemsSpacing, | ||
effects: effects, | ||
itemsSpacing: itemsSpacing, | ||
itemWidth: itemWidth, | ||
@@ -891,13 +891,12 @@ itemHeight: itemHeight, | ||
itemBackground: itemBackground, | ||
itemOpacity: itemOpacity | ||
// symbol | ||
, symbolShape: symbolShape, | ||
itemOpacity: itemOpacity, | ||
symbolShape: symbolShape, | ||
symbolSize: symbolSize, | ||
symbolSpacing: symbolSpacing, | ||
symbolBorderWidth: symbolBorderWidth, | ||
symbolBorderColor: symbolBorderColor | ||
// interactivity | ||
, onClick: onClick, | ||
symbolBorderColor: symbolBorderColor, | ||
onClick: onClick, | ||
onMouseEnter: onMouseEnter, | ||
onMouseLeave: onMouseLeave | ||
onMouseLeave: onMouseLeave, | ||
theme: theme | ||
}); | ||
@@ -904,0 +903,0 @@ }; |
{ | ||
"name": "@nivo/legends", | ||
"description": "legend components for nivo dataviz library", | ||
"version": "0.47.0", | ||
"version": "0.48.0", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "main": "./index.js", | ||
}, | ||
"gitHead": "8c41577a3b413d4b110622c3fdea7f977ca1452b" | ||
"gitHead": "acf00e8f498cbcce7fc22b7c11106b870feac472" | ||
} |
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
38058
970