-
Notifications
You must be signed in to change notification settings - Fork 24
/
semantics.json
107 lines (107 loc) · 2.58 KB
/
semantics.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[
{
"label": "Images",
"name": "imageSlides",
"type": "list",
"field": {
"label": "Image Slide",
"name": "imageSlide",
"type": "group",
"fields": [
{
"label": "Image Slide",
"name": "imageSlide",
"type": "library",
"options": [
"H5P.ImageSlide 1.1"
]
}
]
}
},
{
"label": "Aspect ratio",
"name": "aspectRatioMode",
"type": "select",
"description": "Automatic means fixed aspect ratio automatically determined based on the images",
"default": "auto",
"options": [
{
"value": "auto",
"label": "Automatic"
},
{
"value": "custom",
"label": "Custom"
},
{
"value": "notFixed",
"label": "Not fixed"
}
]
},
{
"label": "Aspect Ratio Settings",
"name": "aspectRatio",
"type": "group",
"widget": "showWhen",
"expanded": true,
"showWhen": {
"rules": [
{
"field": "aspectRatioMode",
"equals": "custom"
}
]
},
"fields": [
{
"label": "Aspect ratio width",
"name": "aspectWidth",
"type": "number",
"default": 4,
"description": "If you use 4 here, and 3 for the height the aspect ratio will be 4:3"
},
{
"label": "Aspect ratio height",
"name": "aspectHeight",
"type": "number",
"default": 3,
"description": "If you use 3 here, and 4 for the width the aspect ratio will be 4:3"
}
]
},
{
"name": "a11y",
"type": "group",
"label": "Image slider accessibility",
"importance": "low",
"common": true,
"fields": [
{
"name": "nextSlide",
"type": "text",
"label": "Label for next slide buttons",
"importance": "low",
"default": "Next Image",
"description": "This is only used for read-speakers. It won't be displayed."
},
{
"name": "prevSlide",
"type": "text",
"label": "Label for previous slide buttons",
"importance": "low",
"default": "Previous Image",
"description": "This is only used for read-speakers. It won't be displayed."
},
{
"name": "gotoSlide",
"type": "text",
"label": "Label for slide buttons",
"importance": "low",
"default": "Go to image %slide",
"description": "This is only used for read-speakers. It won't be displayed. %slide is a variable and will be replaced with the image number."
}
]
}
]