react-d3-animation
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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 @@ |
{ | ||
"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 @@ ], |
9360
139
105
16