change to object destructuring for drawGraph() arguments

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

No files matched your search

+5 -6
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