Merge pull request #1183 from weaveworks/downgrade-react-motion

Downgrade react-motion
This commit is contained in:
David
2016-03-18 12:42:24 +01:00
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ const line = d3.svg.line()
.x(d => d.x)
.y(d => d.y);
const animConfig = {stiffness: 80, damping: 20};
const animConfig = [80, 20]; // stiffness, damping
const flattenPoints = points => {
const flattened = {};

View File

@@ -59,7 +59,7 @@ export default class Node extends React.Component {
const onMouseLeave = this.handleMouseLeave;
const onMouseClick = this.handleMouseClick;
const classNames = ['node'];
const animConfig = {stiffness: 80, damping: 20};
const animConfig = [80, 20]; // stiffness, damping
const label = this.ellipsis(props.label, 14, nodeScale(4 * scaleFactor));
const subLabel = this.ellipsis(props.subLabel, 12, nodeScale(4 * scaleFactor));
let labelFontSize = 14;

View File

@@ -24,7 +24,7 @@
"react-addons-transition-group": "^0.14.7",
"react-addons-update": "^0.14.7",
"react-dom": "^0.14.7",
"react-motion": "0.4.2",
"react-motion": "0.3.1",
"reqwest": "~2.0.5",
"timely": "0.1.0"
},