change to object destructuring for drawGraph() arguments

This commit is contained in:
DhammaCharts 2022-06-02 08:16:02 +01:00
parent d261655d96
commit c88f31c364
3 changed files with 32 additions and 45 deletions

View file

@ -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