1 | declare class SankeyLink {
|
2 | source: SankeyNode;
|
3 | target: SankeyNode;
|
4 | value: number;
|
5 | constructor(source: SankeyNode, target: SankeyNode, value?: number);
|
6 | }
|
7 | declare class SankeyNode {
|
8 | ID: string;
|
9 | constructor(ID: string);
|
10 | }
|
11 | declare const _default: {
|
12 | nodesMap: Record<string, SankeyNode>;
|
13 | getConfig: () => import("../../config.type.js").SankeyDiagramConfig | undefined;
|
14 | getNodes: () => SankeyNode[];
|
15 | getLinks: () => SankeyLink[];
|
16 | getGraph: () => {
|
17 | nodes: {
|
18 | id: string;
|
19 | }[];
|
20 | links: {
|
21 | source: string;
|
22 | target: string;
|
23 | value: number;
|
24 | }[];
|
25 | };
|
26 | addLink: (source: SankeyNode, target: SankeyNode, value: number) => void;
|
27 | findOrCreateNode: (ID: string) => SankeyNode;
|
28 | getAccTitle: () => string;
|
29 | setAccTitle: (txt: string) => void;
|
30 | getAccDescription: () => string;
|
31 | setAccDescription: (txt: string) => void;
|
32 | getDiagramTitle: () => string;
|
33 | setDiagramTitle: (txt: string) => void;
|
34 | clear: () => void;
|
35 | };
|
36 | export default _default;
|