mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
Sankey: Use [] instead of Array
This commit is contained in:
@@ -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';
|
||||
|
||||
|
Reference in New Issue
Block a user