Added clear function in constructor on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>

This commit is contained in:
shubham-mermaid
2025-07-15 12:06:22 +05:30
parent e097b480d5
commit 2e2e8c4152

View File

@@ -21,6 +21,10 @@ export class TreeMapDB implements DiagramDB {
private classes: Map<string, DiagramStyleClassDef> = new Map<string, DiagramStyleClassDef>();
private root?: TreemapNode;
constructor() {
this.clear();
}
public getNodes() {
return this.nodes;
}