-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblock.json
65 lines (65 loc) · 1.45 KB
/
block.json
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
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "mermaid-chart/block",
"version": "1.0.0",
"title": "Mermaid Chart Block",
"category": "widgets",
"icon": "chart-bar",
"description": "Displays diagrams with Mermaid Chart.",
"keywords": [
"diagram",
"chart",
"mmc",
"flowchart",
"er"
],
"textdomain": "mermaid-chart-block",
"attributes": {
"diagramCode": {
"type": "string",
"default": "erDiagram\\n CUSTOMER ||--o{ ORDER : places\\n ORDER ||--|{ LINE-ITEM : contains\\n CUSTOMER }|--|{ DELIVERY-ADDRESS : uses"
},
"content": {
"type": "string",
"default": ""
},
"theme": {
"type": "string",
"default": "default"
},
"fontSize": {
"type": "number",
"default": 16
},
"backgroundColor": {
"type": "string",
"default": "#ffffff"
},
"padding": {
"type": "number",
"default": 16
},
"borderStyle": {
"type": "string",
"default": "dashed"
},
"diagramDirection": {
"type": "string",
"default": "TB"
},
"isDraggable": {
"type": "boolean",
"default": false
}
},
"supports": {
"anchor": true,
"interactivity": true
},
"editorScript": "file:./build/index.js",
"editorStyle": "file:./build/style-index.css",
"style": "file:./build/style-index.css",
"viewScript": "file:./build/view.js",
"render": "file:./render.php"
}