@pie-element/graphing-solution-set 7.0.4-next.20261011174919 → 7.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/configure.d.ts +23 -13
- package/dist/author/configure.js +46 -58
- package/dist/author/correct-response.d.ts +1 -0
- package/dist/author/correct-response.js +1 -0
- package/dist/author/defaults.d.ts +138 -60
- package/dist/author/graphing-config.d.ts +1 -0
- package/dist/author/graphing-config.js +1 -0
- package/dist/author/index.d.ts +15 -49
- package/dist/author/index.js +5 -2
- package/dist/browser/author/index.js +77 -85
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +57 -55
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/editor-runtime/author/index.js +77 -85
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/controller/index.js +57 -55
- package/dist/browser/editor-runtime/controller/index.js.map +1 -1
- package/dist/controller/defaults.d.ts +19 -18
- package/dist/controller/index.d.ts +45 -13
- package/dist/controller/index.js +16 -12
- package/dist/controller/utils.d.ts +17 -11
- package/dist/controller/utils.js +28 -30
- package/dist/index.d.ts +1 -0
- package/dist/schemas/configuration.schema.json +561 -0
- package/dist/schemas/model.schema.json +744 -0
- package/dist/schemas/session.schema.json +126 -0
- package/dist/types.d.ts +349 -0
- package/package.json +18 -14
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@pie-element/graphing-solution-set@7.0.4/dist/schemas/configuration.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"authoring": {
|
|
7
|
+
"$ref": "#/definitions/AuthoringConfigProp",
|
|
8
|
+
"description": "Grid Setup Panel configuration"
|
|
9
|
+
},
|
|
10
|
+
"arrows": {
|
|
11
|
+
"$ref": "#/definitions/ArrowsConfigProp",
|
|
12
|
+
"description": "Arrows configuration"
|
|
13
|
+
},
|
|
14
|
+
"coordinatesOnHover": {
|
|
15
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
16
|
+
"description": "Coordinates configuration"
|
|
17
|
+
},
|
|
18
|
+
"contentDimensions": {
|
|
19
|
+
"$ref": "#/definitions/ContentDimensions",
|
|
20
|
+
"description": "Minimum and maximum dimensions of the authoring view"
|
|
21
|
+
},
|
|
22
|
+
"graphDimensions": {
|
|
23
|
+
"$ref": "#/definitions/DimensionsConfigProp",
|
|
24
|
+
"description": "Graph dimensions configuration"
|
|
25
|
+
},
|
|
26
|
+
"gridConfigurations": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"$ref": "#/definitions/GridConfiguration"
|
|
30
|
+
},
|
|
31
|
+
"description": "Grid default configurations"
|
|
32
|
+
},
|
|
33
|
+
"instruction": {
|
|
34
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
35
|
+
"description": "Instructions shown at the top of the authoring view"
|
|
36
|
+
},
|
|
37
|
+
"padding": {
|
|
38
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
39
|
+
"description": "Padding configuration"
|
|
40
|
+
},
|
|
41
|
+
"labels": {
|
|
42
|
+
"$ref": "#/definitions/LabelsConfigProp",
|
|
43
|
+
"description": "Labels configuration"
|
|
44
|
+
},
|
|
45
|
+
"language": {
|
|
46
|
+
"$ref": "#/definitions/ConfigurePropWithEnabled",
|
|
47
|
+
"description": "Language configuration"
|
|
48
|
+
},
|
|
49
|
+
"languageChoices": {
|
|
50
|
+
"$ref": "#/definitions/ConfigureLanguageOptions",
|
|
51
|
+
"description": "Language choices configuration Only available if language is enabled"
|
|
52
|
+
},
|
|
53
|
+
"prompt": {
|
|
54
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
55
|
+
"description": "Configuration for the prompt"
|
|
56
|
+
},
|
|
57
|
+
"rationale": {
|
|
58
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
59
|
+
"description": "Configuration for the rationale"
|
|
60
|
+
},
|
|
61
|
+
"settingsPanelDisabled": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"description": "Indicates if the settings panel is not available"
|
|
64
|
+
},
|
|
65
|
+
"spellCheck": {
|
|
66
|
+
"$ref": "#/definitions/ConfigurePropWithEnabled",
|
|
67
|
+
"description": "Configuration for the author's spellcheck"
|
|
68
|
+
},
|
|
69
|
+
"scoringType": {
|
|
70
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
71
|
+
"description": "Scoring Type configuration"
|
|
72
|
+
},
|
|
73
|
+
"studentInstructions": {
|
|
74
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
75
|
+
"description": "Student Instructions configuration"
|
|
76
|
+
},
|
|
77
|
+
"teacherInstructions": {
|
|
78
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
79
|
+
"description": "Teacher Instructions configuration"
|
|
80
|
+
},
|
|
81
|
+
"title": {
|
|
82
|
+
"$ref": "#/definitions/TitleConfigProp",
|
|
83
|
+
"description": "Graph title configuration"
|
|
84
|
+
},
|
|
85
|
+
"maxImageWidth": {
|
|
86
|
+
"$ref": "#/definitions/ConfigureMaxImageDimensionsProp",
|
|
87
|
+
"description": "Maximum image width for input fields"
|
|
88
|
+
},
|
|
89
|
+
"maxImageHeight": {
|
|
90
|
+
"$ref": "#/definitions/ConfigureMaxImageDimensionsProp",
|
|
91
|
+
"description": "Maximum image height for input fields"
|
|
92
|
+
},
|
|
93
|
+
"withRubric": {
|
|
94
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
95
|
+
"description": "Rubric configuration - only relevant in environments that use pie-player-components"
|
|
96
|
+
},
|
|
97
|
+
"mathMlOptions": {
|
|
98
|
+
"$ref": "#/definitions/ConfigureMathMLProp",
|
|
99
|
+
"description": "Configuration for editable-html"
|
|
100
|
+
},
|
|
101
|
+
"showPrompt": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"description": "Not read by this element."
|
|
104
|
+
},
|
|
105
|
+
"promptLabel": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Not read by this element."
|
|
108
|
+
},
|
|
109
|
+
"settingsPartialScoring": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"description": "Not read by this element."
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"definitions": {
|
|
115
|
+
"AuthoringConfigProp": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"settings": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
121
|
+
},
|
|
122
|
+
"label": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
125
|
+
},
|
|
126
|
+
"enabled": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"description": "Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)"
|
|
129
|
+
},
|
|
130
|
+
"includeAxesEnabled": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"description": "Indicates if the \"Include axes and labels?\" toggle is displayed in the Grid Setup Panel"
|
|
133
|
+
},
|
|
134
|
+
"standardGridEnabled": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"description": "Indicates if the \"Constrain to standard coordinate grid?\" toggle is displayed in the Grid Setup Panel"
|
|
137
|
+
},
|
|
138
|
+
"min": {
|
|
139
|
+
"$ref": "#/definitions/GridPanelConfigProp",
|
|
140
|
+
"description": "Min value configuration"
|
|
141
|
+
},
|
|
142
|
+
"max": {
|
|
143
|
+
"$ref": "#/definitions/GridPanelConfigProp",
|
|
144
|
+
"description": "Max value configuration"
|
|
145
|
+
},
|
|
146
|
+
"axisLabel": {
|
|
147
|
+
"$ref": "#/definitions/GridPanelConfigProp",
|
|
148
|
+
"description": "Axis label configuration"
|
|
149
|
+
},
|
|
150
|
+
"step": {
|
|
151
|
+
"$ref": "#/definitions/GridPanelConfigProp",
|
|
152
|
+
"description": "Step value configuration"
|
|
153
|
+
},
|
|
154
|
+
"labelStep": {
|
|
155
|
+
"$ref": "#/definitions/GridPanelConfigProp",
|
|
156
|
+
"description": "Label step value configuration"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"GridPanelConfigProp": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"label": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Label for the field in the Grid Setup Panel"
|
|
166
|
+
},
|
|
167
|
+
"enabled": {
|
|
168
|
+
"type": "boolean",
|
|
169
|
+
"description": "Indicates if the field is displayed in the Grid Setup Panel"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"ArrowsConfigProp": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"properties": {
|
|
176
|
+
"settings": {
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
179
|
+
},
|
|
180
|
+
"label": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
183
|
+
},
|
|
184
|
+
"left": {
|
|
185
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
186
|
+
"description": "Configuration for the left arrow checkbox"
|
|
187
|
+
},
|
|
188
|
+
"right": {
|
|
189
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
190
|
+
"description": "Configuration for the right arrow checkbox"
|
|
191
|
+
},
|
|
192
|
+
"up": {
|
|
193
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
194
|
+
"description": "Configuration for the up arrow checkbox"
|
|
195
|
+
},
|
|
196
|
+
"down": {
|
|
197
|
+
"$ref": "#/definitions/ConfigureProp",
|
|
198
|
+
"description": "Configuration for the down arrow checkbox"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"ConfigureProp": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"properties": {
|
|
205
|
+
"settings": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
208
|
+
},
|
|
209
|
+
"label": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"description": "Building blocks of an element's authoring configuration: the object a host passes to the `<tag>-config` custom element to decide which settings the author sees and how editors behave.\n\nEach element declares its own `<Name>Configuration` interface from these, and its JSON Schema is generated from that interface. Descriptions are carried over from the legacy `pie-elements` config schemas, so they appear in the generated schemas unchanged."
|
|
215
|
+
},
|
|
216
|
+
"ContentDimensions": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"properties": {
|
|
219
|
+
"maxHeight": {
|
|
220
|
+
"type": [
|
|
221
|
+
"string",
|
|
222
|
+
"number"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"maxWidth": {
|
|
226
|
+
"type": [
|
|
227
|
+
"string",
|
|
228
|
+
"number"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"minHeight": {
|
|
232
|
+
"type": [
|
|
233
|
+
"string",
|
|
234
|
+
"number"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"minWidth": {
|
|
238
|
+
"type": [
|
|
239
|
+
"string",
|
|
240
|
+
"number"
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"description": "Indicates the dimensions configuration for the authoring container. Note: Some items have a default minimum width because of their content, but if a lower minWidth is provided, it will be used."
|
|
245
|
+
},
|
|
246
|
+
"DimensionsConfigProp": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"settings": {
|
|
250
|
+
"type": "boolean",
|
|
251
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
252
|
+
},
|
|
253
|
+
"label": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
256
|
+
},
|
|
257
|
+
"enabled": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"description": "Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)"
|
|
260
|
+
},
|
|
261
|
+
"min": {
|
|
262
|
+
"type": "number",
|
|
263
|
+
"description": "Minimum graph dimension, in pixels"
|
|
264
|
+
},
|
|
265
|
+
"max": {
|
|
266
|
+
"type": "number",
|
|
267
|
+
"description": "Maximum graph dimension, in pixels"
|
|
268
|
+
},
|
|
269
|
+
"step": {
|
|
270
|
+
"type": "number",
|
|
271
|
+
"description": "Step between graph dimensions, in pixels"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"GridConfiguration": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"label": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "Name shown in the grid configuration picker"
|
|
281
|
+
},
|
|
282
|
+
"arrows": {
|
|
283
|
+
"$ref": "#/definitions/Arrows",
|
|
284
|
+
"description": "Arrows for the grid"
|
|
285
|
+
},
|
|
286
|
+
"domain": {
|
|
287
|
+
"$ref": "#/definitions/GraphSettings",
|
|
288
|
+
"description": "Domain settings for the grid"
|
|
289
|
+
},
|
|
290
|
+
"graph": {
|
|
291
|
+
"$ref": "#/definitions/Graph",
|
|
292
|
+
"description": "Graph dimensions for the grid"
|
|
293
|
+
},
|
|
294
|
+
"includeAxes": {
|
|
295
|
+
"type": "boolean",
|
|
296
|
+
"description": "Indicates if the graph axes and labels are enabled"
|
|
297
|
+
},
|
|
298
|
+
"labels": {
|
|
299
|
+
"$ref": "#/definitions/Labels",
|
|
300
|
+
"description": "Labels for the grid"
|
|
301
|
+
},
|
|
302
|
+
"padding": {
|
|
303
|
+
"type": "boolean",
|
|
304
|
+
"description": "Indicates if padding is enabled"
|
|
305
|
+
},
|
|
306
|
+
"range": {
|
|
307
|
+
"$ref": "#/definitions/GraphSettings",
|
|
308
|
+
"description": "Range settings for the grid"
|
|
309
|
+
},
|
|
310
|
+
"standardGrid": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"description": "Indicates if domain values are synched to the range values"
|
|
313
|
+
},
|
|
314
|
+
"title": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"description": "Graph title"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"description": "A preset grid an author picks from; selecting it copies these values into the model."
|
|
320
|
+
},
|
|
321
|
+
"Arrows": {
|
|
322
|
+
"type": "object",
|
|
323
|
+
"properties": {
|
|
324
|
+
"left": {
|
|
325
|
+
"type": "boolean",
|
|
326
|
+
"description": "Indicates if left arrow is enabled"
|
|
327
|
+
},
|
|
328
|
+
"right": {
|
|
329
|
+
"type": "boolean",
|
|
330
|
+
"description": "Indicates if right arrow is enabled"
|
|
331
|
+
},
|
|
332
|
+
"up": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"description": "Indicates if up arrow is enabled"
|
|
335
|
+
},
|
|
336
|
+
"down": {
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"description": "Indicates if down arrow is enabled"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"required": [
|
|
342
|
+
"left",
|
|
343
|
+
"right",
|
|
344
|
+
"up",
|
|
345
|
+
"down"
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
"GraphSettings": {
|
|
349
|
+
"type": "object",
|
|
350
|
+
"properties": {
|
|
351
|
+
"min": {
|
|
352
|
+
"type": "number",
|
|
353
|
+
"description": "Min value"
|
|
354
|
+
},
|
|
355
|
+
"max": {
|
|
356
|
+
"type": "number",
|
|
357
|
+
"description": "Max value"
|
|
358
|
+
},
|
|
359
|
+
"padding": {
|
|
360
|
+
"type": "number",
|
|
361
|
+
"description": "Padding value"
|
|
362
|
+
},
|
|
363
|
+
"step": {
|
|
364
|
+
"type": "number",
|
|
365
|
+
"description": "Step value"
|
|
366
|
+
},
|
|
367
|
+
"labelStep": {
|
|
368
|
+
"type": "number",
|
|
369
|
+
"description": "Label step value"
|
|
370
|
+
},
|
|
371
|
+
"axisLabel": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "Axis Label"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": [
|
|
377
|
+
"min",
|
|
378
|
+
"max",
|
|
379
|
+
"step",
|
|
380
|
+
"labelStep",
|
|
381
|
+
"axisLabel"
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
"Graph": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"properties": {
|
|
387
|
+
"width": {
|
|
388
|
+
"type": "number",
|
|
389
|
+
"description": "Width for graph representation"
|
|
390
|
+
},
|
|
391
|
+
"height": {
|
|
392
|
+
"type": "number",
|
|
393
|
+
"description": "Height for graph representation"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"required": [
|
|
397
|
+
"width",
|
|
398
|
+
"height"
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"Labels": {
|
|
402
|
+
"type": "object",
|
|
403
|
+
"properties": {
|
|
404
|
+
"top": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"description": "Label for top side of the graph"
|
|
407
|
+
},
|
|
408
|
+
"bottom": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"description": "Label for bottom side of the graph"
|
|
411
|
+
},
|
|
412
|
+
"left": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"description": "Label for left side of the graph"
|
|
415
|
+
},
|
|
416
|
+
"right": {
|
|
417
|
+
"type": "string",
|
|
418
|
+
"description": "Label for right side of the graph"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"LabelsConfigProp": {
|
|
423
|
+
"type": "object",
|
|
424
|
+
"properties": {
|
|
425
|
+
"settings": {
|
|
426
|
+
"type": "boolean",
|
|
427
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
428
|
+
},
|
|
429
|
+
"label": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
432
|
+
},
|
|
433
|
+
"enabled": {
|
|
434
|
+
"type": "boolean",
|
|
435
|
+
"description": "Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)"
|
|
436
|
+
},
|
|
437
|
+
"top": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"description": "Placeholder for the top label"
|
|
440
|
+
},
|
|
441
|
+
"right": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"description": "Placeholder for the right label"
|
|
444
|
+
},
|
|
445
|
+
"bottom": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"description": "Placeholder for the bottom label"
|
|
448
|
+
},
|
|
449
|
+
"left": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"description": "Placeholder for the left label"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"ConfigurePropWithEnabled": {
|
|
456
|
+
"type": "object",
|
|
457
|
+
"properties": {
|
|
458
|
+
"settings": {
|
|
459
|
+
"type": "boolean",
|
|
460
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
461
|
+
},
|
|
462
|
+
"label": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
465
|
+
},
|
|
466
|
+
"enabled": {
|
|
467
|
+
"type": "boolean",
|
|
468
|
+
"description": "Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"ConfigureLanguageOptions": {
|
|
473
|
+
"type": "object",
|
|
474
|
+
"properties": {
|
|
475
|
+
"label": {
|
|
476
|
+
"type": "string"
|
|
477
|
+
},
|
|
478
|
+
"options": {
|
|
479
|
+
"type": "array",
|
|
480
|
+
"items": {
|
|
481
|
+
"$ref": "#/definitions/ConfigureLanguageOptionsProp"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": [
|
|
486
|
+
"label",
|
|
487
|
+
"options"
|
|
488
|
+
]
|
|
489
|
+
},
|
|
490
|
+
"ConfigureLanguageOptionsProp": {
|
|
491
|
+
"type": "object",
|
|
492
|
+
"properties": {
|
|
493
|
+
"value": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"description": "Value of the language option"
|
|
496
|
+
},
|
|
497
|
+
"label": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"description": "Label of the language option"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"required": [
|
|
503
|
+
"value",
|
|
504
|
+
"label"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
"TitleConfigProp": {
|
|
508
|
+
"type": "object",
|
|
509
|
+
"properties": {
|
|
510
|
+
"settings": {
|
|
511
|
+
"type": "boolean",
|
|
512
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel"
|
|
513
|
+
},
|
|
514
|
+
"label": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel"
|
|
517
|
+
},
|
|
518
|
+
"enabled": {
|
|
519
|
+
"type": "boolean",
|
|
520
|
+
"description": "Indicates the value of the item if it affects config-ui (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)"
|
|
521
|
+
},
|
|
522
|
+
"placeholder": {
|
|
523
|
+
"type": "string",
|
|
524
|
+
"description": "Placeholder for the graph title"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
529
|
+
"type": "object",
|
|
530
|
+
"properties": {
|
|
531
|
+
"teacherInstructions": {
|
|
532
|
+
"type": "number",
|
|
533
|
+
"description": "Indicates the max dimension for images in teacher instructions"
|
|
534
|
+
},
|
|
535
|
+
"prompt": {
|
|
536
|
+
"type": "number",
|
|
537
|
+
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified"
|
|
538
|
+
},
|
|
539
|
+
"rationale": {
|
|
540
|
+
"type": "number",
|
|
541
|
+
"description": "Indicates the max dimension for images in rationale"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"description": "Maximum image dimensions per editable field. Elements extend it with their own fields."
|
|
545
|
+
},
|
|
546
|
+
"ConfigureMathMLProp": {
|
|
547
|
+
"type": "object",
|
|
548
|
+
"properties": {
|
|
549
|
+
"mmlOutput": {
|
|
550
|
+
"type": "boolean",
|
|
551
|
+
"description": "Indicates if model should have mathML output instead of latex"
|
|
552
|
+
},
|
|
553
|
+
"mmlEditing": {
|
|
554
|
+
"type": "boolean",
|
|
555
|
+
"description": "Indicates if mathML that's already in model should be editable"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"additionalProperties": false
|
|
561
|
+
}
|