react-d3-animation
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -71,3 +71,3 @@ 'use strict'; | ||
_lodash2.default.forIn(filter, function (val, key) { | ||
if (_lodash2.default.isObject(val) || _lodash2.default.isNumber(val) || _lodash2.default.isString(val) || _lodash2.default.isArray(val) || !_lodash2.default.isFunction(val)) that.interpolate[key] = _d2.default.interpolate(that.state[key], nextProps[key]); | ||
if ((_lodash2.default.isObject(val) || _lodash2.default.isNumber(val) || _lodash2.default.isString(val) || _lodash2.default.isArray(val)) && !_lodash2.default.isFunction(val)) that.interpolate[key] = _d2.default.interpolate(that.state[key], nextProps[key]); | ||
}); | ||
@@ -81,3 +81,3 @@ | ||
_lodash2.default.forIn(filter, function (val, key) { | ||
if (_lodash2.default.isObject(val) || _lodash2.default.isNumber(val) || _lodash2.default.isString(val) || _lodash2.default.isArray(val) || !_lodash2.default.isFunction(val)) newState[key] = that.interpolate[key](frame / time); | ||
if ((_lodash2.default.isObject(val) || _lodash2.default.isNumber(val) || _lodash2.default.isString(val) || _lodash2.default.isArray(val)) && !_lodash2.default.isFunction(val)) newState[key] = that.interpolate[key](frame / time); | ||
}); | ||
@@ -84,0 +84,0 @@ |
{ | ||
"name": "react-d3-animation", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "react-d3 animation", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
10973