-
Notifications
You must be signed in to change notification settings - Fork 38
/
semantics.json
374 lines (374 loc) · 11.1 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
[
{
"name": "threeImage",
"type": "group",
"widget": "threeImage",
"label": "Three Image Editor",
"importance": "high",
"fields": [
{
"name": "scenes",
"type": "list",
"label": "Scenes",
"entity": "Scene",
"min": 0,
"field": {
"name": "scene",
"type": "group",
"fields": [
{
"name": "sceneType",
"type": "select",
"label": "Scene type",
"widget": "radioGroup",
"alignment": "horizontal",
"options": [
{
"value": "360",
"label": "360 image"
},
{
"value": "static",
"label": "Static image"
}
],
"default": "360"
},
{
"name": "showBackButton",
"type": "boolean",
"label": "Display \"Back\" button",
"description": "Display button for navigating back to your previous scene",
"default": true,
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "sceneType",
"equals": "static"
}
]
}
},
{
"name": "sceneId",
"type": "number"
},
{
"name": "scenename",
"type": "text",
"label": "Scene Title",
"description": "Used to identify the scene"
},
{
"name": "scenesrc",
"type": "image",
"label": "Scene Background"
},
{
"name": "scenedescription",
"type": "text",
"widget": "html",
"label": "Scene Description",
"description": "A text that can describe the scene for the end-user",
"optional": true,
"tags": [
"p",
"br",
"strong",
"em",
"code"
]
},
{
"name": "cameraStartPosition",
"type": "text"
},
{
"name": "interactions",
"type": "list",
"min": 0,
"field": {
"name": "interaction",
"type": "group",
"fields": [
{
"name": "labelText",
"type": "text",
"label": "Label",
"optional": true,
"description": "If left blank no label will be displayed and we'll try to use the title field for screen readers"
},
{
"name": "label",
"type": "group",
"label": "Label Settings",
"importance": "low",
"fields": [
{
"name": "labelPosition",
"type": "select",
"label": "Label position",
"description": "Choose where the label should appear",
"options": [
{
"value": "inherit",
"label": "Use behavioral setting"
},
{
"value": "right",
"label": "Right aligned"
},
{
"value": "left",
"label": "Left aligned"
},
{
"value": "top",
"label": "Top aligned"
},
{
"value": "bottom",
"label": "Bottom aligned"
}
],
"default": "inherit"
},
{
"name": "showLabel",
"type": "select",
"label": "Display Label",
"description": "If hidden - labels will show only on mouse over",
"options": [
{
"value": "inherit",
"label": "Use behavioral setting"
},
{
"value": "show",
"label": "Show"
},
{
"value": "hide",
"label": "Hide"
}
],
"default": "inherit"
}
]
},
{
"name": "action",
"type": "library",
"options": [
"H5P.GoToScene 0.1",
"H5P.AdvancedText 1.1",
"H5P.Image 1.1",
"H5P.Audio 1.5",
"H5P.Video 1.6",
"H5P.Summary 1.10",
"H5P.SingleChoiceSet 1.11"
]
},
{
"name": "interactionpos",
"type": "text"
}
]
}
},
{
"name": "iconType",
"type": "select",
"label": "Button style",
"description": "Decide how buttons pointing to this scene should look. For scenes that are static and does not lead to new scenes, we recommend the \"More information\" button.",
"widget": "radioGroup",
"alignment": "horizontal",
"options": [
{
"value": "arrow",
"label": "New scene (arrow)"
},
{
"value": "plus",
"label": "More information (plus)"
}
],
"default": "arrow"
},
{
"name": "audio",
"type": "audio",
"label": "Audio Track",
"description": "Add an audio track that's specific for this scene.",
"optional": true,
"widgetExtensions": [
"AudioRecorder"
]
}
]
}
},
{
"name": "startSceneId",
"type": "number",
"default": 0
},
{
"name": "audio",
"type": "audio",
"label": "Audio track",
"optional": true
}
]
},
{
"name": "behaviour",
"type": "group",
"label": "Behavioral settings",
"importance": "low",
"description": "These options will let you control how the world behaves.",
"fields": [
{
"name": "audio",
"type": "audio",
"label": "Global Audio",
"description": "Add an audio track that's available for all of the scenes by default.",
"optional": true,
"widgetExtensions": [
"AudioRecorder"
]
},
{
"name": "sceneRenderingQuality",
"type": "select",
"label": "Scene rendering quality",
"description": "Choose the amount of width and height segments used to render a scene. This directly affects the quality level of the scene, try increasing the quality if a scene looks \"blocky\" or \"waves\" are seen within the scenes. Note that higher quality rendering takes more time to load.",
"options": [
{
"value": "high",
"label": "High Quality (128x128)"
},
{
"value": "medium",
"label": "Medium Quality (64x64)"
},
{
"value": "low",
"label": "Low Quality (16x16)"
}
],
"default": "high"
},
{
"name": "label",
"type": "group",
"label": "Label settings",
"importance": "low",
"expanded": true,
"fields": [
{
"name": "labelPosition",
"type": "select",
"label": "Label position",
"description": "The default label position. The position may be overriden per interaction",
"options": [
{
"value": "right",
"label": "Right aligned"
},
{
"value": "left",
"label": "Left aligned"
},
{
"value": "top",
"label": "Top aligned"
},
{
"value": "bottom",
"label": "Bottom aligned"
}
],
"default": "right"
},
{
"name": "showLabel",
"type": "boolean",
"label": "Display Labels",
"description": "If unchecked - labels will show only on mouse over",
"default": true
}
]
}
]
},
{
"name": "l10n",
"type": "group",
"common": true,
"label": "Localize",
"fields": [
{
"name": "title",
"type": "text",
"label": "Aria label for content type",
"default": "Virtual Tour"
},
{
"name": "playAudioTrack",
"type": "text",
"label": "Label for to play audio",
"default": "Play Audio Track"
},
{
"name": "pauseAudioTrack",
"type": "text",
"label": "Label to pause audio",
"default": "Pause Audio Track"
},
{
"name": "sceneDescription",
"type": "text",
"label": "Title to scene dialog",
"default": "Scene Description"
},
{
"name": "resetCamera",
"type": "text",
"label": "Label for button to reset camera",
"default": "Reset Camera"
},
{
"name": "submitDialog",
"type": "text",
"label": "Label for the submit dialog button",
"default": "Submit Dialog"
},
{
"name": "closeDialog",
"type": "text",
"label": "Label for the close dialog button",
"default": "Close Dialog"
},
{
"name": "expandButtonAriaLabel",
"type": "text",
"label": "Aria label for the expand label button",
"default": "Expand the visual label"
},
{
"name": "backgroundLoading",
"type": "text",
"label": "Label for when background image is loading in 360 scene",
"default": "Loading background image..."
},
{
"name": "noContent",
"type": "text",
"label": "Label for when there is no content",
"default": "No content"
}
]
}
]