-
Notifications
You must be signed in to change notification settings - Fork 407
Expand file tree
/
Copy pathflow-diagram.json
More file actions
78 lines (78 loc) · 2.35 KB
/
Copy pathflow-diagram.json
File metadata and controls
78 lines (78 loc) · 2.35 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "generate_flow_diagram",
"description": "Generate a flow diagram chart to show the steps and decision points of a process or system, such as, scenarios requiring linear process presentation.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"nodes": {
"type": "array",
"minItems": 1,
"items": {
"properties": {
"name": {
"type": "string"
}
},
"required": ["name"],
"type": "object"
}
},
"edges": {
"type": "array",
"items": {
"properties": {
"name": {
"type": "string",
"default": ""
},
"source": {
"type": "string"
},
"target": {
"type": "string"
}
},
"required": ["source", "target"],
"type": "object"
}
}
},
"required": ["nodes", "edges"],
"description": "Data for flow diagram chart, such as, { nodes: [{ name: 'node1' }, { name: 'node2' }], edges: [{ source: 'node1', target: 'node2', name: 'edge1' }] }."
},
"theme": {
"default": "default",
"description": "Set the theme for the chart, optional, default is 'default'.",
"enum": ["default", "academy", "dark"],
"type": "string"
},
"style": {
"description": "Custom style configuration for the chart.",
"properties": {
"texture": {
"default": "default",
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
"enum": ["default", "rough"],
"type": "string"
}
},
"type": "object"
},
"width": {
"type": "number",
"description": "Set the width of chart, default is 600.",
"default": 600
},
"height": {
"type": "number",
"description": "Set the height of chart, default is 400.",
"default": 400
}
},
"required": ["data"]
}
}