Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-gear-chart

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gear-chart - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

storybook-static/static/preview.e930f8400bcaea8593fd.bundle.js

13

dist/components/GearListChart.js

@@ -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

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