@pie-element/graphing 3.7.23 → 4.0.0
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/CHANGELOG.md +17 -0
- package/configure/CHANGELOG.md +17 -0
- package/configure/lib/configure.js +69 -45
- package/configure/lib/configure.js.map +1 -1
- package/configure/lib/correct-response.js +101 -17
- package/configure/lib/correct-response.js.map +1 -1
- package/configure/lib/defaults.js +35 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/graphing-config.js +35 -18
- package/configure/lib/graphing-config.js.map +1 -1
- package/configure/lib/index.js +21 -13
- package/configure/lib/index.js.map +1 -1
- package/configure/package.json +4 -4
- package/controller/CHANGELOG.md +17 -0
- package/controller/lib/index.js +13 -3
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/docs/config-schema.json +298 -10
- package/docs/config-schema.json.md +228 -11
- package/docs/demo/generate.js +1 -0
- package/docs/pie-schema.json +171 -6
- package/docs/pie-schema.json.md +135 -7
- package/lib/main.js +2 -0
- package/lib/main.js.map +1 -1
- package/package.json +3 -3
|
@@ -8,16 +8,83 @@ Properties of the `authoring` object:
|
|
|
8
8
|
|
|
9
9
|
## `settings` (boolean)
|
|
10
10
|
|
|
11
|
-
Indicates if the item
|
|
11
|
+
Indicates if the item is displayed in the Settings Panel
|
|
12
12
|
|
|
13
13
|
## `label` (string)
|
|
14
14
|
|
|
15
|
-
Indicates the label for the item that
|
|
15
|
+
Indicates the label for the item that is displayed in the Settings Panel
|
|
16
16
|
|
|
17
17
|
## `enabled` (boolean)
|
|
18
18
|
|
|
19
|
-
Indicates
|
|
20
|
-
|
|
19
|
+
Indicates if the Grid Setup Panel is displayed
|
|
20
|
+
|
|
21
|
+
## `includeAxesEnabled` (boolean)
|
|
22
|
+
|
|
23
|
+
Indicates if the "includeAxes" toggle is displayed in the Grid Setup Panel
|
|
24
|
+
|
|
25
|
+
## `standardGridEnabled` (boolean)
|
|
26
|
+
|
|
27
|
+
Indicates if the "standardGrid" toggle is displayed in the Grid Setup Panel
|
|
28
|
+
|
|
29
|
+
## `min` (object)
|
|
30
|
+
|
|
31
|
+
Properties of the `min` object:
|
|
32
|
+
|
|
33
|
+
### `label` (string)
|
|
34
|
+
|
|
35
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
36
|
+
|
|
37
|
+
### `enabled` (boolean)
|
|
38
|
+
|
|
39
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
40
|
+
|
|
41
|
+
## `max` (object)
|
|
42
|
+
|
|
43
|
+
Properties of the `max` object:
|
|
44
|
+
|
|
45
|
+
### `label` (string)
|
|
46
|
+
|
|
47
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
48
|
+
|
|
49
|
+
### `enabled` (boolean)
|
|
50
|
+
|
|
51
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
52
|
+
|
|
53
|
+
## `axisLabel` (object)
|
|
54
|
+
|
|
55
|
+
Properties of the `axisLabel` object:
|
|
56
|
+
|
|
57
|
+
### `label` (string)
|
|
58
|
+
|
|
59
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
60
|
+
|
|
61
|
+
### `enabled` (boolean)
|
|
62
|
+
|
|
63
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
64
|
+
|
|
65
|
+
## `step` (object)
|
|
66
|
+
|
|
67
|
+
Properties of the `step` object:
|
|
68
|
+
|
|
69
|
+
### `label` (string)
|
|
70
|
+
|
|
71
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
72
|
+
|
|
73
|
+
### `enabled` (boolean)
|
|
74
|
+
|
|
75
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
76
|
+
|
|
77
|
+
## `labelStep` (object)
|
|
78
|
+
|
|
79
|
+
Properties of the `labelStep` object:
|
|
80
|
+
|
|
81
|
+
### `label` (string)
|
|
82
|
+
|
|
83
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
84
|
+
|
|
85
|
+
### `enabled` (boolean)
|
|
86
|
+
|
|
87
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
21
88
|
|
|
22
89
|
# `arrows` (object)
|
|
23
90
|
|
|
@@ -63,6 +130,12 @@ Properties of the `down` object:
|
|
|
63
130
|
|
|
64
131
|
Indicates the label for the arrow that has to be displayed in the Settings Panel
|
|
65
132
|
|
|
133
|
+
# `availableTools` (array)
|
|
134
|
+
|
|
135
|
+
Graph toolbar tools configuration
|
|
136
|
+
|
|
137
|
+
The object is an array with all elements of the type `string`.
|
|
138
|
+
|
|
66
139
|
# `coordinatesOnHover` (object)
|
|
67
140
|
|
|
68
141
|
Properties of the `coordinatesOnHover` object:
|
|
@@ -216,6 +289,38 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
216
289
|
Indicates the value of the item if it affects config-ui
|
|
217
290
|
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
218
291
|
|
|
292
|
+
# `maxImageWidth` (object)
|
|
293
|
+
|
|
294
|
+
Properties of the `maxImageWidth` object:
|
|
295
|
+
|
|
296
|
+
## `teacherInstructions` (number)
|
|
297
|
+
|
|
298
|
+
Indicates the max dimension for images in teacher instructions
|
|
299
|
+
|
|
300
|
+
## `prompt` (number)
|
|
301
|
+
|
|
302
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
303
|
+
|
|
304
|
+
## `rationale` (number)
|
|
305
|
+
|
|
306
|
+
Indicates the max dimension for images in rationale
|
|
307
|
+
|
|
308
|
+
# `maxImageHeight` (object)
|
|
309
|
+
|
|
310
|
+
Properties of the `maxImageHeight` object:
|
|
311
|
+
|
|
312
|
+
## `teacherInstructions` (number)
|
|
313
|
+
|
|
314
|
+
Indicates the max dimension for images in teacher instructions
|
|
315
|
+
|
|
316
|
+
## `prompt` (number)
|
|
317
|
+
|
|
318
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
319
|
+
|
|
320
|
+
## `rationale` (number)
|
|
321
|
+
|
|
322
|
+
Indicates the max dimension for images in rationale
|
|
323
|
+
|
|
219
324
|
# `showPrompt` (boolean)
|
|
220
325
|
|
|
221
326
|
Determines whether prompt field will be displayed or not
|
|
@@ -240,22 +345,101 @@ Default: `true`
|
|
|
240
345
|
|
|
241
346
|
The schema defines the following additional types:
|
|
242
347
|
|
|
243
|
-
## `
|
|
348
|
+
## `AuthoringConfigProp` (object)
|
|
244
349
|
|
|
245
|
-
Properties of the `
|
|
350
|
+
Properties of the `AuthoringConfigProp` object:
|
|
246
351
|
|
|
247
352
|
### `settings` (boolean)
|
|
248
353
|
|
|
249
|
-
Indicates if the item
|
|
354
|
+
Indicates if the item is displayed in the Settings Panel
|
|
250
355
|
|
|
251
356
|
### `label` (string)
|
|
252
357
|
|
|
253
|
-
Indicates the label for the item that
|
|
358
|
+
Indicates the label for the item that is displayed in the Settings Panel
|
|
254
359
|
|
|
255
360
|
### `enabled` (boolean)
|
|
256
361
|
|
|
257
|
-
Indicates
|
|
258
|
-
|
|
362
|
+
Indicates if the Grid Setup Panel is displayed
|
|
363
|
+
|
|
364
|
+
### `includeAxesEnabled` (boolean)
|
|
365
|
+
|
|
366
|
+
Indicates if the "includeAxes" toggle is displayed in the Grid Setup Panel
|
|
367
|
+
|
|
368
|
+
### `standardGridEnabled` (boolean)
|
|
369
|
+
|
|
370
|
+
Indicates if the "standardGrid" toggle is displayed in the Grid Setup Panel
|
|
371
|
+
|
|
372
|
+
### `min` (object)
|
|
373
|
+
|
|
374
|
+
Properties of the `min` object:
|
|
375
|
+
|
|
376
|
+
#### `label` (string)
|
|
377
|
+
|
|
378
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
379
|
+
|
|
380
|
+
#### `enabled` (boolean)
|
|
381
|
+
|
|
382
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
383
|
+
|
|
384
|
+
### `max` (object)
|
|
385
|
+
|
|
386
|
+
Properties of the `max` object:
|
|
387
|
+
|
|
388
|
+
#### `label` (string)
|
|
389
|
+
|
|
390
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
391
|
+
|
|
392
|
+
#### `enabled` (boolean)
|
|
393
|
+
|
|
394
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
395
|
+
|
|
396
|
+
### `axisLabel` (object)
|
|
397
|
+
|
|
398
|
+
Properties of the `axisLabel` object:
|
|
399
|
+
|
|
400
|
+
#### `label` (string)
|
|
401
|
+
|
|
402
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
403
|
+
|
|
404
|
+
#### `enabled` (boolean)
|
|
405
|
+
|
|
406
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
407
|
+
|
|
408
|
+
### `step` (object)
|
|
409
|
+
|
|
410
|
+
Properties of the `step` object:
|
|
411
|
+
|
|
412
|
+
#### `label` (string)
|
|
413
|
+
|
|
414
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
415
|
+
|
|
416
|
+
#### `enabled` (boolean)
|
|
417
|
+
|
|
418
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
419
|
+
|
|
420
|
+
### `labelStep` (object)
|
|
421
|
+
|
|
422
|
+
Properties of the `labelStep` object:
|
|
423
|
+
|
|
424
|
+
#### `label` (string)
|
|
425
|
+
|
|
426
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
427
|
+
|
|
428
|
+
#### `enabled` (boolean)
|
|
429
|
+
|
|
430
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
431
|
+
|
|
432
|
+
## `GridPanelConfigProp` (object)
|
|
433
|
+
|
|
434
|
+
Properties of the `GridPanelConfigProp` object:
|
|
435
|
+
|
|
436
|
+
### `label` (string)
|
|
437
|
+
|
|
438
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
439
|
+
|
|
440
|
+
### `enabled` (boolean)
|
|
441
|
+
|
|
442
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
259
443
|
|
|
260
444
|
## `ArrowsConfigProp` (object)
|
|
261
445
|
|
|
@@ -347,4 +531,37 @@ Indicates the maximum value for the graph width and height
|
|
|
347
531
|
|
|
348
532
|
### `step` (number)
|
|
349
533
|
|
|
350
|
-
Indicates the increase/decrease value for the graph width and height
|
|
534
|
+
Indicates the increase/decrease value for the graph width and height
|
|
535
|
+
|
|
536
|
+
## `ConfigurePropWithEnabled` (object)
|
|
537
|
+
|
|
538
|
+
Properties of the `ConfigurePropWithEnabled` object:
|
|
539
|
+
|
|
540
|
+
### `settings` (boolean)
|
|
541
|
+
|
|
542
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
543
|
+
|
|
544
|
+
### `label` (string)
|
|
545
|
+
|
|
546
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
547
|
+
|
|
548
|
+
### `enabled` (boolean)
|
|
549
|
+
|
|
550
|
+
Indicates the value of the item if it affects config-ui
|
|
551
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
552
|
+
|
|
553
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
554
|
+
|
|
555
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
556
|
+
|
|
557
|
+
### `teacherInstructions` (number)
|
|
558
|
+
|
|
559
|
+
Indicates the max dimension for images in teacher instructions
|
|
560
|
+
|
|
561
|
+
### `prompt` (number)
|
|
562
|
+
|
|
563
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
564
|
+
|
|
565
|
+
### `rationale` (number)
|
|
566
|
+
|
|
567
|
+
Indicates the max dimension for images in rationale
|
package/docs/demo/generate.js
CHANGED
package/docs/pie-schema.json
CHANGED
|
@@ -1485,6 +1485,22 @@
|
|
|
1485
1485
|
"type": "boolean",
|
|
1486
1486
|
"title": "coordinatesOnHover"
|
|
1487
1487
|
},
|
|
1488
|
+
"defaultTool": {
|
|
1489
|
+
"description": "Indicates the default selected tool for the graph",
|
|
1490
|
+
"enum": [
|
|
1491
|
+
"circle",
|
|
1492
|
+
"line",
|
|
1493
|
+
"parabola",
|
|
1494
|
+
"point",
|
|
1495
|
+
"polygon",
|
|
1496
|
+
"ray",
|
|
1497
|
+
"segment",
|
|
1498
|
+
"sine",
|
|
1499
|
+
"vector"
|
|
1500
|
+
],
|
|
1501
|
+
"type": "string",
|
|
1502
|
+
"title": "defaultTool"
|
|
1503
|
+
},
|
|
1488
1504
|
"domain": {
|
|
1489
1505
|
"title": "GraphSettings",
|
|
1490
1506
|
"type": "object",
|
|
@@ -1755,6 +1771,7 @@
|
|
|
1755
1771
|
"required": [
|
|
1756
1772
|
"answers",
|
|
1757
1773
|
"backgroundMarks",
|
|
1774
|
+
"defaultTool",
|
|
1758
1775
|
"domain",
|
|
1759
1776
|
"element",
|
|
1760
1777
|
"graph",
|
|
@@ -1766,22 +1783,128 @@
|
|
|
1766
1783
|
"teacherInstructionsEnabled"
|
|
1767
1784
|
],
|
|
1768
1785
|
"definitions": {
|
|
1769
|
-
"
|
|
1770
|
-
"title": "
|
|
1786
|
+
"AuthoringConfigProp": {
|
|
1787
|
+
"title": "AuthoringConfigProp",
|
|
1771
1788
|
"type": "object",
|
|
1772
1789
|
"properties": {
|
|
1773
1790
|
"settings": {
|
|
1774
|
-
"description": "Indicates if the item
|
|
1791
|
+
"description": "Indicates if the item is displayed in the Settings Panel",
|
|
1775
1792
|
"type": "boolean",
|
|
1776
1793
|
"title": "settings"
|
|
1777
1794
|
},
|
|
1778
1795
|
"label": {
|
|
1779
|
-
"description": "Indicates the label for the item that
|
|
1796
|
+
"description": "Indicates the label for the item that is displayed in the Settings Panel",
|
|
1780
1797
|
"type": "string",
|
|
1781
1798
|
"title": "label"
|
|
1782
1799
|
},
|
|
1783
1800
|
"enabled": {
|
|
1784
|
-
"description": "Indicates
|
|
1801
|
+
"description": "Indicates if the Grid Setup Panel is displayed",
|
|
1802
|
+
"type": "boolean",
|
|
1803
|
+
"title": "enabled"
|
|
1804
|
+
},
|
|
1805
|
+
"includeAxesEnabled": {
|
|
1806
|
+
"description": "Indicates if the \"includeAxes\" toggle is displayed in the Grid Setup Panel",
|
|
1807
|
+
"type": "boolean",
|
|
1808
|
+
"title": "includeAxesEnabled"
|
|
1809
|
+
},
|
|
1810
|
+
"standardGridEnabled": {
|
|
1811
|
+
"description": "Indicates if the \"standardGrid\" toggle is displayed in the Grid Setup Panel",
|
|
1812
|
+
"type": "boolean",
|
|
1813
|
+
"title": "standardGridEnabled"
|
|
1814
|
+
},
|
|
1815
|
+
"min": {
|
|
1816
|
+
"title": "GridPanelConfigProp",
|
|
1817
|
+
"type": "object",
|
|
1818
|
+
"properties": {
|
|
1819
|
+
"label": {
|
|
1820
|
+
"description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
|
|
1821
|
+
"type": "string",
|
|
1822
|
+
"title": "label"
|
|
1823
|
+
},
|
|
1824
|
+
"enabled": {
|
|
1825
|
+
"description": "Indicates if the item is displayed in the Grid Setup Panel",
|
|
1826
|
+
"type": "boolean",
|
|
1827
|
+
"title": "enabled"
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
},
|
|
1831
|
+
"max": {
|
|
1832
|
+
"title": "GridPanelConfigProp",
|
|
1833
|
+
"type": "object",
|
|
1834
|
+
"properties": {
|
|
1835
|
+
"label": {
|
|
1836
|
+
"description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
|
|
1837
|
+
"type": "string",
|
|
1838
|
+
"title": "label"
|
|
1839
|
+
},
|
|
1840
|
+
"enabled": {
|
|
1841
|
+
"description": "Indicates if the item is displayed in the Grid Setup Panel",
|
|
1842
|
+
"type": "boolean",
|
|
1843
|
+
"title": "enabled"
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"axisLabel": {
|
|
1848
|
+
"title": "GridPanelConfigProp",
|
|
1849
|
+
"type": "object",
|
|
1850
|
+
"properties": {
|
|
1851
|
+
"label": {
|
|
1852
|
+
"description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
|
|
1853
|
+
"type": "string",
|
|
1854
|
+
"title": "label"
|
|
1855
|
+
},
|
|
1856
|
+
"enabled": {
|
|
1857
|
+
"description": "Indicates if the item is displayed in the Grid Setup Panel",
|
|
1858
|
+
"type": "boolean",
|
|
1859
|
+
"title": "enabled"
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"step": {
|
|
1864
|
+
"title": "GridPanelConfigProp",
|
|
1865
|
+
"type": "object",
|
|
1866
|
+
"properties": {
|
|
1867
|
+
"label": {
|
|
1868
|
+
"description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
|
|
1869
|
+
"type": "string",
|
|
1870
|
+
"title": "label"
|
|
1871
|
+
},
|
|
1872
|
+
"enabled": {
|
|
1873
|
+
"description": "Indicates if the item is displayed in the Grid Setup Panel",
|
|
1874
|
+
"type": "boolean",
|
|
1875
|
+
"title": "enabled"
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
"labelStep": {
|
|
1880
|
+
"title": "GridPanelConfigProp",
|
|
1881
|
+
"type": "object",
|
|
1882
|
+
"properties": {
|
|
1883
|
+
"label": {
|
|
1884
|
+
"description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
|
|
1885
|
+
"type": "string",
|
|
1886
|
+
"title": "label"
|
|
1887
|
+
},
|
|
1888
|
+
"enabled": {
|
|
1889
|
+
"description": "Indicates if the item is displayed in the Grid Setup Panel",
|
|
1890
|
+
"type": "boolean",
|
|
1891
|
+
"title": "enabled"
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
"GridPanelConfigProp": {
|
|
1898
|
+
"title": "GridPanelConfigProp",
|
|
1899
|
+
"type": "object",
|
|
1900
|
+
"properties": {
|
|
1901
|
+
"label": {
|
|
1902
|
+
"description": "Indicates the label for the item that is displayed in the Grid Setup Panel",
|
|
1903
|
+
"type": "string",
|
|
1904
|
+
"title": "label"
|
|
1905
|
+
},
|
|
1906
|
+
"enabled": {
|
|
1907
|
+
"description": "Indicates if the item is displayed in the Grid Setup Panel",
|
|
1785
1908
|
"type": "boolean",
|
|
1786
1909
|
"title": "enabled"
|
|
1787
1910
|
}
|
|
@@ -1910,6 +2033,48 @@
|
|
|
1910
2033
|
}
|
|
1911
2034
|
}
|
|
1912
2035
|
},
|
|
2036
|
+
"ConfigurePropWithEnabled": {
|
|
2037
|
+
"title": "ConfigurePropWithEnabled",
|
|
2038
|
+
"type": "object",
|
|
2039
|
+
"properties": {
|
|
2040
|
+
"settings": {
|
|
2041
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
2042
|
+
"type": "boolean",
|
|
2043
|
+
"title": "settings"
|
|
2044
|
+
},
|
|
2045
|
+
"label": {
|
|
2046
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
2047
|
+
"type": "string",
|
|
2048
|
+
"title": "label"
|
|
2049
|
+
},
|
|
2050
|
+
"enabled": {
|
|
2051
|
+
"description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
|
|
2052
|
+
"type": "boolean",
|
|
2053
|
+
"title": "enabled"
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
"ConfigureMaxImageDimensionsProp": {
|
|
2058
|
+
"title": "ConfigureMaxImageDimensionsProp",
|
|
2059
|
+
"type": "object",
|
|
2060
|
+
"properties": {
|
|
2061
|
+
"teacherInstructions": {
|
|
2062
|
+
"description": "Indicates the max dimension for images in teacher instructions",
|
|
2063
|
+
"type": "number",
|
|
2064
|
+
"title": "teacherInstructions"
|
|
2065
|
+
},
|
|
2066
|
+
"prompt": {
|
|
2067
|
+
"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",
|
|
2068
|
+
"type": "number",
|
|
2069
|
+
"title": "prompt"
|
|
2070
|
+
},
|
|
2071
|
+
"rationale": {
|
|
2072
|
+
"description": "Indicates the max dimension for images in rationale",
|
|
2073
|
+
"type": "number",
|
|
2074
|
+
"title": "rationale"
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
1913
2078
|
"Answer": {
|
|
1914
2079
|
"title": "Answer",
|
|
1915
2080
|
"type": "object",
|
|
@@ -2771,4 +2936,4 @@
|
|
|
2771
2936
|
}
|
|
2772
2937
|
},
|
|
2773
2938
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2774
|
-
}
|
|
2939
|
+
}
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -72,6 +72,22 @@ Additional restrictions:
|
|
|
72
72
|
|
|
73
73
|
Indicates if coordinates of a point are displayed on hover
|
|
74
74
|
|
|
75
|
+
# `defaultTool` (string, enum, required)
|
|
76
|
+
|
|
77
|
+
Indicates the default selected tool for the graph
|
|
78
|
+
|
|
79
|
+
This element must be one of the following enum values:
|
|
80
|
+
|
|
81
|
+
* `circle`
|
|
82
|
+
* `line`
|
|
83
|
+
* `parabola`
|
|
84
|
+
* `point`
|
|
85
|
+
* `polygon`
|
|
86
|
+
* `ray`
|
|
87
|
+
* `segment`
|
|
88
|
+
* `sine`
|
|
89
|
+
* `vector`
|
|
90
|
+
|
|
75
91
|
# `domain` (object, required)
|
|
76
92
|
|
|
77
93
|
Properties of the `domain` object:
|
|
@@ -243,22 +259,101 @@ The html Element tag name
|
|
|
243
259
|
|
|
244
260
|
The schema defines the following additional types:
|
|
245
261
|
|
|
246
|
-
## `
|
|
262
|
+
## `AuthoringConfigProp` (object)
|
|
247
263
|
|
|
248
|
-
Properties of the `
|
|
264
|
+
Properties of the `AuthoringConfigProp` object:
|
|
249
265
|
|
|
250
266
|
### `settings` (boolean)
|
|
251
267
|
|
|
252
|
-
Indicates if the item
|
|
268
|
+
Indicates if the item is displayed in the Settings Panel
|
|
253
269
|
|
|
254
270
|
### `label` (string)
|
|
255
271
|
|
|
256
|
-
Indicates the label for the item that
|
|
272
|
+
Indicates the label for the item that is displayed in the Settings Panel
|
|
257
273
|
|
|
258
274
|
### `enabled` (boolean)
|
|
259
275
|
|
|
260
|
-
Indicates
|
|
261
|
-
|
|
276
|
+
Indicates if the Grid Setup Panel is displayed
|
|
277
|
+
|
|
278
|
+
### `includeAxesEnabled` (boolean)
|
|
279
|
+
|
|
280
|
+
Indicates if the "includeAxes" toggle is displayed in the Grid Setup Panel
|
|
281
|
+
|
|
282
|
+
### `standardGridEnabled` (boolean)
|
|
283
|
+
|
|
284
|
+
Indicates if the "standardGrid" toggle is displayed in the Grid Setup Panel
|
|
285
|
+
|
|
286
|
+
### `min` (object)
|
|
287
|
+
|
|
288
|
+
Properties of the `min` object:
|
|
289
|
+
|
|
290
|
+
#### `label` (string)
|
|
291
|
+
|
|
292
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
293
|
+
|
|
294
|
+
#### `enabled` (boolean)
|
|
295
|
+
|
|
296
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
297
|
+
|
|
298
|
+
### `max` (object)
|
|
299
|
+
|
|
300
|
+
Properties of the `max` object:
|
|
301
|
+
|
|
302
|
+
#### `label` (string)
|
|
303
|
+
|
|
304
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
305
|
+
|
|
306
|
+
#### `enabled` (boolean)
|
|
307
|
+
|
|
308
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
309
|
+
|
|
310
|
+
### `axisLabel` (object)
|
|
311
|
+
|
|
312
|
+
Properties of the `axisLabel` object:
|
|
313
|
+
|
|
314
|
+
#### `label` (string)
|
|
315
|
+
|
|
316
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
317
|
+
|
|
318
|
+
#### `enabled` (boolean)
|
|
319
|
+
|
|
320
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
321
|
+
|
|
322
|
+
### `step` (object)
|
|
323
|
+
|
|
324
|
+
Properties of the `step` object:
|
|
325
|
+
|
|
326
|
+
#### `label` (string)
|
|
327
|
+
|
|
328
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
329
|
+
|
|
330
|
+
#### `enabled` (boolean)
|
|
331
|
+
|
|
332
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
333
|
+
|
|
334
|
+
### `labelStep` (object)
|
|
335
|
+
|
|
336
|
+
Properties of the `labelStep` object:
|
|
337
|
+
|
|
338
|
+
#### `label` (string)
|
|
339
|
+
|
|
340
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
341
|
+
|
|
342
|
+
#### `enabled` (boolean)
|
|
343
|
+
|
|
344
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
345
|
+
|
|
346
|
+
## `GridPanelConfigProp` (object)
|
|
347
|
+
|
|
348
|
+
Properties of the `GridPanelConfigProp` object:
|
|
349
|
+
|
|
350
|
+
### `label` (string)
|
|
351
|
+
|
|
352
|
+
Indicates the label for the item that is displayed in the Grid Setup Panel
|
|
353
|
+
|
|
354
|
+
### `enabled` (boolean)
|
|
355
|
+
|
|
356
|
+
Indicates if the item is displayed in the Grid Setup Panel
|
|
262
357
|
|
|
263
358
|
## `ArrowsConfigProp` (object)
|
|
264
359
|
|
|
@@ -352,6 +447,39 @@ Indicates the maximum value for the graph width and height
|
|
|
352
447
|
|
|
353
448
|
Indicates the increase/decrease value for the graph width and height
|
|
354
449
|
|
|
450
|
+
## `ConfigurePropWithEnabled` (object)
|
|
451
|
+
|
|
452
|
+
Properties of the `ConfigurePropWithEnabled` object:
|
|
453
|
+
|
|
454
|
+
### `settings` (boolean)
|
|
455
|
+
|
|
456
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
457
|
+
|
|
458
|
+
### `label` (string)
|
|
459
|
+
|
|
460
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
461
|
+
|
|
462
|
+
### `enabled` (boolean)
|
|
463
|
+
|
|
464
|
+
Indicates the value of the item if it affects config-ui
|
|
465
|
+
(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
|
|
466
|
+
|
|
467
|
+
## `ConfigureMaxImageDimensionsProp` (object)
|
|
468
|
+
|
|
469
|
+
Properties of the `ConfigureMaxImageDimensionsProp` object:
|
|
470
|
+
|
|
471
|
+
### `teacherInstructions` (number)
|
|
472
|
+
|
|
473
|
+
Indicates the max dimension for images in teacher instructions
|
|
474
|
+
|
|
475
|
+
### `prompt` (number)
|
|
476
|
+
|
|
477
|
+
Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
|
|
478
|
+
|
|
479
|
+
### `rationale` (number)
|
|
480
|
+
|
|
481
|
+
Indicates the max dimension for images in rationale
|
|
482
|
+
|
|
355
483
|
## `Answer` (object)
|
|
356
484
|
|
|
357
485
|
Properties of the `Answer` object:
|
|
@@ -582,4 +710,4 @@ Label for left side of the graph
|
|
|
582
710
|
|
|
583
711
|
### `right` (string, required)
|
|
584
712
|
|
|
585
|
-
Label for right side of the graph
|
|
713
|
+
Label for right side of the graph
|
package/lib/main.js
CHANGED
|
@@ -86,6 +86,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
86
86
|
backgroundMarks = _ref2.backgroundMarks,
|
|
87
87
|
coordinatesOnHover = _ref2.coordinatesOnHover,
|
|
88
88
|
correctResponse = _ref2.correctResponse,
|
|
89
|
+
defaultTool = _ref2.defaultTool,
|
|
89
90
|
disabled = _ref2.disabled,
|
|
90
91
|
domain = _ref2.domain,
|
|
91
92
|
labels = _ref2.labels,
|
|
@@ -140,6 +141,7 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
140
141
|
},
|
|
141
142
|
backgroundMarks: backgroundMarks,
|
|
142
143
|
coordinatesOnHover: coordinatesOnHover,
|
|
144
|
+
defaultTool: defaultTool,
|
|
143
145
|
disabled: disabled,
|
|
144
146
|
domain: domain,
|
|
145
147
|
labels: labels,
|