Upgrade npm app dependencies

This commit is contained in:
David Kaltschmidt
2016-03-15 13:45:57 +01:00
parent 7a0235499e
commit 658a38f40a
5 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ const line = d3.svg.line()
.x(function(d) { return d.x; })
.y(function(d) { return d.y; });
const animConfig = [80, 20];// stiffness, bounce
const animConfig = {stiffness: 80, damping: 20};
const flattenPoints = function(points) {
const flattened = {};
+1 -1
View File
@@ -62,7 +62,7 @@ export default class Node extends React.Component {
const onMouseLeave = this.handleMouseLeave;
const onMouseClick = this.handleMouseClick;
const classNames = ['node'];
const animConfig = [80, 20]; // stiffness, bounce
const animConfig = {stiffness: 80, damping: 20};
const label = this.ellipsis(props.label, 14, nodeScale(4 * scaleFactor));
const subLabel = this.ellipsis(props.subLabel, 12, nodeScale(4 * scaleFactor));
let labelFontSize = 14;
@@ -145,7 +145,7 @@ export default class NodeDetailsTable extends React.Component {
render() {
const headers = this.renderHeaders();
let nodes = _.sortByAll(this.props.nodes, this.getValueForSortBy, 'label', this.getMetaDataSorters());
let nodes = _.sortBy(this.props.nodes, this.getValueForSortBy, 'label', this.getMetaDataSorters());
const limited = nodes && this.state.limit > 0 && nodes.length > this.state.limit;
const expanded = this.state.limit === 0;
const notShown = nodes.length - this.DEFAULT_LIMIT;
+1 -1
View File
@@ -537,7 +537,7 @@ export class AppStore extends Store {
if (mouseOverNodeId === nodeId) {
mouseOverNodeId = null;
}
if (nodes.has(nodeId) && _.contains(mouseOverEdgeId, nodeId)) {
if (nodes.has(nodeId) && _.includes(mouseOverEdgeId, nodeId)) {
mouseOverEdgeId = null;
}
nodes = nodes.delete(nodeId);