@pie-element/graphing 3.7.21 → 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.
@@ -8,16 +8,83 @@ Properties of the `authoring` object:
8
8
 
9
9
  ## `settings` (boolean)
10
10
 
11
- Indicates if the item has to be displayed in the Settings Panel
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 has to be displayed in the Settings Panel
15
+ Indicates the label for the item that is displayed in the Settings Panel
16
16
 
17
17
  ## `enabled` (boolean)
18
18
 
19
- Indicates the value of the item if it affects config-ui
20
- (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
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:
@@ -75,6 +148,34 @@ Indicates if the item has to be displayed in the Settings Panel
75
148
 
76
149
  Indicates the label for the item that has to be displayed in the Settings Panel
77
150
 
151
+ # `graphDimensions` (object)
152
+
153
+ Properties of the `graphDimensions` object:
154
+
155
+ ## `settings` (boolean)
156
+
157
+ Indicates if the item has to be displayed in the Settings Panel
158
+
159
+ ## `label` (string)
160
+
161
+ Indicates the label for the item that has to be displayed in the Settings Panel
162
+
163
+ ## `enabled` (boolean)
164
+
165
+ Indicates if the graph dimensions are included in the Grid Setup Panel
166
+
167
+ ## `min` (number)
168
+
169
+ Indicates the minimum value for the graph width and height
170
+
171
+ ## `max` (number)
172
+
173
+ Indicates the maximum value for the graph width and height
174
+
175
+ ## `step` (number)
176
+
177
+ Indicates the increase/decrease value for the graph width and height
178
+
78
179
  # `padding` (object)
79
180
 
80
181
  Properties of the `padding` object:
@@ -188,6 +289,38 @@ Indicates the label for the item that has to be displayed in the Settings Panel
188
289
  Indicates the value of the item if it affects config-ui
189
290
  (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
190
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
+
191
324
  # `showPrompt` (boolean)
192
325
 
193
326
  Determines whether prompt field will be displayed or not
@@ -212,22 +345,101 @@ Default: `true`
212
345
 
213
346
  The schema defines the following additional types:
214
347
 
215
- ## `ConfigurePropWithEnabled` (object)
348
+ ## `AuthoringConfigProp` (object)
216
349
 
217
- Properties of the `ConfigurePropWithEnabled` object:
350
+ Properties of the `AuthoringConfigProp` object:
218
351
 
219
352
  ### `settings` (boolean)
220
353
 
221
- Indicates if the item has to be displayed in the Settings Panel
354
+ Indicates if the item is displayed in the Settings Panel
222
355
 
223
356
  ### `label` (string)
224
357
 
225
- Indicates the label for the item that has to be displayed in the Settings Panel
358
+ Indicates the label for the item that is displayed in the Settings Panel
226
359
 
227
360
  ### `enabled` (boolean)
228
361
 
229
- Indicates the value of the item if it affects config-ui
230
- (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
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
231
443
 
232
444
  ## `ArrowsConfigProp` (object)
233
445
 
@@ -291,4 +503,65 @@ Indicates if the item has to be displayed in the Settings Panel
291
503
 
292
504
  ### `label` (string)
293
505
 
294
- Indicates the label for the item that has to be displayed in the Settings Panel
506
+ Indicates the label for the item that has to be displayed in the Settings Panel
507
+
508
+ ## `DimensionsConfigProp` (object)
509
+
510
+ Properties of the `DimensionsConfigProp` object:
511
+
512
+ ### `settings` (boolean)
513
+
514
+ Indicates if the item has to be displayed in the Settings Panel
515
+
516
+ ### `label` (string)
517
+
518
+ Indicates the label for the item that has to be displayed in the Settings Panel
519
+
520
+ ### `enabled` (boolean)
521
+
522
+ Indicates if the graph dimensions are included in the Grid Setup Panel
523
+
524
+ ### `min` (number)
525
+
526
+ Indicates the minimum value for the graph width and height
527
+
528
+ ### `max` (number)
529
+
530
+ Indicates the maximum value for the graph width and height
531
+
532
+ ### `step` (number)
533
+
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
@@ -128,6 +128,7 @@ exports.model = (id, element) => ({
128
128
  labelStep: 1,
129
129
  axisLabel: 'x'
130
130
  },
131
+ defaultTool: 'point',
131
132
  graph: {
132
133
  width: 480,
133
134
  height: 480
@@ -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",
@@ -1549,6 +1565,11 @@
1549
1565
  "width"
1550
1566
  ]
1551
1567
  },
1568
+ "includeAxes": {
1569
+ "description": "Indicates if the graph axes and labels are enabled",
1570
+ "type": "boolean",
1571
+ "title": "includeAxes"
1572
+ },
1552
1573
  "labels": {
1553
1574
  "title": "Labels",
1554
1575
  "type": "object",
@@ -1721,6 +1742,11 @@
1721
1742
  "type": "boolean",
1722
1743
  "title": "spellCheckEnabled"
1723
1744
  },
1745
+ "standardGrid": {
1746
+ "description": "Indicates if some domain values will be synched to the range values",
1747
+ "type": "boolean",
1748
+ "title": "standardGrid"
1749
+ },
1724
1750
  "studentInstructionsEnabled": {
1725
1751
  "description": "Indicates if Student Instructions are enabled",
1726
1752
  "type": "boolean",
@@ -1745,6 +1771,7 @@
1745
1771
  "required": [
1746
1772
  "answers",
1747
1773
  "backgroundMarks",
1774
+ "defaultTool",
1748
1775
  "domain",
1749
1776
  "element",
1750
1777
  "graph",
@@ -1756,22 +1783,128 @@
1756
1783
  "teacherInstructionsEnabled"
1757
1784
  ],
1758
1785
  "definitions": {
1759
- "ConfigurePropWithEnabled": {
1760
- "title": "ConfigurePropWithEnabled",
1786
+ "AuthoringConfigProp": {
1787
+ "title": "AuthoringConfigProp",
1761
1788
  "type": "object",
1762
1789
  "properties": {
1763
1790
  "settings": {
1764
- "description": "Indicates if the item has to be displayed in the Settings Panel",
1791
+ "description": "Indicates if the item is displayed in the Settings Panel",
1765
1792
  "type": "boolean",
1766
1793
  "title": "settings"
1767
1794
  },
1768
1795
  "label": {
1769
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1796
+ "description": "Indicates the label for the item that is displayed in the Settings Panel",
1770
1797
  "type": "string",
1771
1798
  "title": "label"
1772
1799
  },
1773
1800
  "enabled": {
1774
- "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)",
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",
1775
1908
  "type": "boolean",
1776
1909
  "title": "enabled"
1777
1910
  }
@@ -1864,6 +1997,84 @@
1864
1997
  }
1865
1998
  }
1866
1999
  },
2000
+ "DimensionsConfigProp": {
2001
+ "title": "DimensionsConfigProp",
2002
+ "type": "object",
2003
+ "properties": {
2004
+ "settings": {
2005
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
2006
+ "type": "boolean",
2007
+ "title": "settings"
2008
+ },
2009
+ "label": {
2010
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
2011
+ "type": "string",
2012
+ "title": "label"
2013
+ },
2014
+ "enabled": {
2015
+ "description": "Indicates if the graph dimensions are included in the Grid Setup Panel",
2016
+ "type": "boolean",
2017
+ "title": "enabled"
2018
+ },
2019
+ "min": {
2020
+ "description": "Indicates the minimum value for the graph width and height",
2021
+ "type": "number",
2022
+ "title": "min"
2023
+ },
2024
+ "max": {
2025
+ "description": "Indicates the maximum value for the graph width and height",
2026
+ "type": "number",
2027
+ "title": "max"
2028
+ },
2029
+ "step": {
2030
+ "description": "Indicates the increase/decrease value for the graph width and height",
2031
+ "type": "number",
2032
+ "title": "step"
2033
+ }
2034
+ }
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
+ },
1867
2078
  "Answer": {
1868
2079
  "title": "Answer",
1869
2080
  "type": "object",
@@ -2725,4 +2936,4 @@
2725
2936
  }
2726
2937
  },
2727
2938
  "$schema": "http://json-schema.org/draft-07/schema#"
2728
- }
2939
+ }