change to object destructuring for drawGraph() arguments
This commit is contained in:
parent
d261655d96
commit
c88f31c364
3 changed files with 32 additions and 45 deletions
|
@ -1,16 +1,15 @@
|
|||
async function drawGraph(
|
||||
baseUrl,
|
||||
pathColors,
|
||||
async function drawGraph(baseUrl,isHome,pathColors,graphConfig) {
|
||||
|
||||
let {
|
||||
depth,
|
||||
enableDrag,
|
||||
enableLegend,
|
||||
enableZoom,
|
||||
isHome,
|
||||
opacityScale,
|
||||
scale,
|
||||
repelForce,
|
||||
fontSize
|
||||
) {
|
||||
fontSize} = graphConfig;
|
||||
|
||||
const container = document.getElementById("graph-container")
|
||||
const { index, links, content } = await fetchData
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue