react-gear-chart
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -64,5 +64,6 @@ 'use strict'; | ||
var shoudlUpdateStates = ['childFocused']; | ||
var shouldUpdateProps = ['id', 'startAngle', 'endAngle', 'innerRadius', 'outerRadius', 'margin', 'limit', 'clockwise', 'items', 'extra']; | ||
var Styles = { | ||
@@ -102,3 +103,3 @@ container: { | ||
if (name === 'onClick') { | ||
var self = _this.refs.chart; | ||
var self = _this.chart; | ||
var teeth = self.querySelectorAll('.tooth'); | ||
@@ -160,4 +161,4 @@ var focusedTooth = self.querySelector('.tooth.focused'); | ||
key: 'shouldComponentUpdate', | ||
value: function shouldComponentUpdate(nextProps) { | ||
return (0, _shouldUpdate.shouldUpdate)(shouldUpdateProps, this.props, nextProps); | ||
value: function shouldComponentUpdate(nextProps, nextState) { | ||
return (0, _shouldUpdate.shouldUpdate)(shoudlUpdateStates, this.state, nextState) || (0, _shouldUpdate.shouldUpdate)(shouldUpdateProps, this.props, nextProps); | ||
} | ||
@@ -220,3 +221,5 @@ }, { | ||
'div', | ||
(0, _extends3.default)({ id: id, ref: 'chart', className: (0, _classnames2.default)('gear-list-chart', className, childFocused ? 'child-focused' : ''), | ||
(0, _extends3.default)({ id: id, ref: function ref(r) { | ||
return _this2.chart = r; | ||
}, className: (0, _classnames2.default)('gear-list-chart', className, childFocused ? 'child-focused' : ''), | ||
style: [Styles.container, style] }, restProps), | ||
@@ -223,0 +226,0 @@ _react2.default.createElement( |
{ | ||
"name": "react-gear-chart", | ||
"description": "", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"author": "nooooru@gmail.com", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
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
2665038
2318