mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
Upgrade npm app dependencies
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user