-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
index.d.ts
43 lines (38 loc) · 1022 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
declare module "flowchart.js" {
namespace FlowChart {
interface SVGOptions {
x: number;
y: number;
"line-width": number;
"line-length": number;
"text-margin": number;
"font-size": number;
"font-color": string;
"line-color": string;
"element-color": string;
fill: string;
roundness?: number;
"yes-text": string;
"no-text": string;
"arrow-end": string;
scale: number;
class: string;
[props: string]: any;
}
interface DrawOptions extends Partial<SVGOptions> {
/** Stymbol Styles */
symbols?: Record<string, Partial<SVGOptions>>;
/** FlowState config */
flowstate?: Record<string, Partial<SVGOptions>>;
}
interface Instance {
clean: () => void;
drawSVG: (container: HTMLElement | string, options?: DrawOptions) => void;
}
}
interface FlowChart {
parse: (code: string) => FlowChart.Instance;
}
const FlowChart: FlowChart;
export = FlowChart;
}