Browse Source
fix(lints): Group all imports together
renovate/lint-staged-8.x
Ben Woosley
7 years ago
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
1 changed files with
6 additions and
4 deletions
-
app/components/Network/CanvasNetworkGraph.js
|
|
@ -1,11 +1,13 @@ |
|
|
|
import React, { Component } from 'react' |
|
|
|
import PropTypes from 'prop-types' |
|
|
|
import * as d3Force from 'd3-force'; |
|
|
|
import * as d3Selection from 'd3-selection'; |
|
|
|
import * as d3Zoom from 'd3-zoom'; |
|
|
|
const d3 = Object.assign({}, d3Force, d3Selection, d3Zoom) |
|
|
|
import * as d3Force from 'd3-force' |
|
|
|
import * as d3Selection from 'd3-selection' |
|
|
|
import * as d3Zoom from 'd3-zoom' |
|
|
|
|
|
|
|
import styles from './CanvasNetworkGraph.scss' |
|
|
|
|
|
|
|
const d3 = Object.assign({}, d3Force, d3Selection, d3Zoom) |
|
|
|
|
|
|
|
function generateSimulationData(nodes, edges) { |
|
|
|
const resNodes = nodes.map(node => Object.assign(node, { id: node.pub_key })) |
|
|
|
const resEdges = edges.map(node => Object.assign(node, { source: node.node1_pub, target: node.node2_pub })) |
|
|
|