mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 11:11:13 +00:00
Downgrade react-motion
* caused lots of lag when dev tools were open
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user