Sankey: Use [] instead of Array

This commit is contained in:
Nikolay Rozhkov
2023-06-25 00:42:06 +03:00
parent db2a556f62
commit 1d6074dbfa

View File

@@ -14,8 +14,8 @@ import {
// Sankey diagram represented by nodes and links between those nodes
// We have to track nodes uniqueness (by ID), thats why we need a mapping also
//
let links: Array<SankeyLink> = [];
let nodes: Array<SankeyNode> = [];
let links: SankeyLink[] = [];
let nodes: SankeyNode[] = [];
let nodesMap: Record<string, SankeyNode> = {};
let nodeAlign = 'justify';