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

react-d3-animation

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-d3-animation - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

13

lib/animate.js

@@ -64,3 +64,3 @@ 'use strict';

_lodash2['default'].forIn(filter, function (val, key) {
that.interpolate[key] = _d32['default'].interpolate(that.state[key], nextProps[key]);
if (_lodash2['default'].isObject(val) || _lodash2['default'].isNumber(val) || _lodash2['default'].isString(val) || _lodash2['default'].isArray(val)) that.interpolate[key] = _d32['default'].interpolate(that.state[key], nextProps[key]);
});

@@ -74,3 +74,3 @@

_lodash2['default'].forIn(filter, function (val, key) {
newState[key] = that.interpolate[key](frame / time);
if (_lodash2['default'].isObject(val) || _lodash2['default'].isNumber(val) || _lodash2['default'].isString(val) || _lodash2['default'].isArray(val)) newState[key] = that.interpolate[key](frame / time);
});

@@ -103,2 +103,11 @@

enumerable: true
}, {
key: 'propTypes',
value: {
ease: _react.PropTypes.string.isRequired,
duration: _react.PropTypes.number.isRequired,
delay: _react.PropTypes.number.isRequired,
fps: _react.PropTypes.number.isRequired
},
enumerable: true
}]);

@@ -105,0 +114,0 @@

9

package.json
{
"name": "react-d3-animation",
"version": "0.1.1",
"version": "0.1.2",
"description": "react-d3 animation",

@@ -20,9 +20,10 @@ "main": "./lib/index.js",

"jsx-loader": "^0.13.2",
"react": "^0.14.3",
"react-addons-test-utils": "^0.14.0",
"react-d3-basic": "^1.4.1",
"react-dom": "^0.14.0",
"react-hot-loader": "^1.3.0",
"style-loader": "^0.12.4",
"webpack": "^1.12.2",
"webpack-dev-server": "^1.11.0",
"react": "^0.14.3",
"react-dom": "^0.14.0"
"webpack-dev-server": "^1.11.0"
},

@@ -29,0 +30,0 @@ "peerDepencies": {

@@ -13,2 +13,5 @@ # react-d3-animation

#### Line Chart
<img src="./example/img/line.gif" width="300"/>
## Support animate type

@@ -26,2 +29,3 @@

- fps
- delay

@@ -28,0 +32,0 @@ ## Example

@@ -18,3 +18,4 @@

entry: {
animate: './example/src/animate.jsx'
animate: './example/src/animate.jsx',
line: './example/src/line.jsx'
},

@@ -37,2 +38,6 @@

loader: 'style-loader!css-loader'
},
{
test: /\.json$/,
loader: "json-loader"
}

@@ -39,0 +44,0 @@ ],

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