@pie-element/graphing 4.1.3 → 4.3.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.
@@ -234,6 +234,219 @@
234
234
  }
235
235
  }
236
236
  },
237
+ "gridConfigurations": {
238
+ "description": "Grid default configurations",
239
+ "type": "array",
240
+ "items": {
241
+ "title": "GridConfigurationsProp",
242
+ "type": "object",
243
+ "properties": {
244
+ "label": {
245
+ "description": "Indicates the label for the configuration",
246
+ "type": "string",
247
+ "title": "label"
248
+ },
249
+ "arrows": {
250
+ "title": "Arrows",
251
+ "type": "object",
252
+ "properties": {
253
+ "left": {
254
+ "description": "Indicates if left arrow is enabled",
255
+ "type": "boolean",
256
+ "title": "left"
257
+ },
258
+ "right": {
259
+ "description": "Indicates if right arrow is enabled",
260
+ "type": "boolean",
261
+ "title": "right"
262
+ },
263
+ "up": {
264
+ "description": "Indicates if up arrow is enabled",
265
+ "type": "boolean",
266
+ "title": "up"
267
+ },
268
+ "down": {
269
+ "description": "Indicates if down arrow is enabled",
270
+ "type": "boolean",
271
+ "title": "down"
272
+ }
273
+ },
274
+ "required": [
275
+ "down",
276
+ "left",
277
+ "right",
278
+ "up"
279
+ ]
280
+ },
281
+ "domain": {
282
+ "title": "GraphSettings",
283
+ "type": "object",
284
+ "properties": {
285
+ "min": {
286
+ "description": "Min value",
287
+ "type": "number",
288
+ "title": "min"
289
+ },
290
+ "max": {
291
+ "description": "Max value",
292
+ "type": "number",
293
+ "title": "max"
294
+ },
295
+ "padding": {
296
+ "description": "Padding value",
297
+ "type": "number",
298
+ "title": "padding"
299
+ },
300
+ "step": {
301
+ "description": "Step value",
302
+ "type": "number",
303
+ "title": "step"
304
+ },
305
+ "labelStep": {
306
+ "description": "Label step value",
307
+ "type": "number",
308
+ "title": "labelStep"
309
+ },
310
+ "axisLabel": {
311
+ "description": "Axis Label",
312
+ "type": "string",
313
+ "title": "axisLabel"
314
+ }
315
+ },
316
+ "required": [
317
+ "axisLabel",
318
+ "labelStep",
319
+ "max",
320
+ "min",
321
+ "padding",
322
+ "step"
323
+ ]
324
+ },
325
+ "graph": {
326
+ "title": "Graph",
327
+ "type": "object",
328
+ "properties": {
329
+ "width": {
330
+ "description": "Width for graph representation",
331
+ "type": "number",
332
+ "title": "width"
333
+ },
334
+ "height": {
335
+ "description": "Height for graph representation",
336
+ "type": "number",
337
+ "title": "height"
338
+ }
339
+ },
340
+ "required": [
341
+ "height",
342
+ "width"
343
+ ]
344
+ },
345
+ "includeAxes": {
346
+ "description": "Indicates if the graph axes and labels are enabled",
347
+ "type": "boolean",
348
+ "title": "includeAxes"
349
+ },
350
+ "labels": {
351
+ "title": "Labels",
352
+ "type": "object",
353
+ "properties": {
354
+ "top": {
355
+ "description": "Label for top side of the graph",
356
+ "type": "string",
357
+ "title": "top"
358
+ },
359
+ "bottom": {
360
+ "description": "Label for bottom side of the graph",
361
+ "type": "string",
362
+ "title": "bottom"
363
+ },
364
+ "left": {
365
+ "description": "Label for left side of the graph",
366
+ "type": "string",
367
+ "title": "left"
368
+ },
369
+ "right": {
370
+ "description": "Label for right side of the graph",
371
+ "type": "string",
372
+ "title": "right"
373
+ }
374
+ },
375
+ "required": [
376
+ "bottom",
377
+ "left",
378
+ "right",
379
+ "top"
380
+ ]
381
+ },
382
+ "padding": {
383
+ "description": "Indicates if padding is enabled",
384
+ "type": "boolean",
385
+ "title": "padding"
386
+ },
387
+ "range": {
388
+ "title": "GraphSettings",
389
+ "type": "object",
390
+ "properties": {
391
+ "min": {
392
+ "description": "Min value",
393
+ "type": "number",
394
+ "title": "min"
395
+ },
396
+ "max": {
397
+ "description": "Max value",
398
+ "type": "number",
399
+ "title": "max"
400
+ },
401
+ "padding": {
402
+ "description": "Padding value",
403
+ "type": "number",
404
+ "title": "padding"
405
+ },
406
+ "step": {
407
+ "description": "Step value",
408
+ "type": "number",
409
+ "title": "step"
410
+ },
411
+ "labelStep": {
412
+ "description": "Label step value",
413
+ "type": "number",
414
+ "title": "labelStep"
415
+ },
416
+ "axisLabel": {
417
+ "description": "Axis Label",
418
+ "type": "string",
419
+ "title": "axisLabel"
420
+ }
421
+ },
422
+ "required": [
423
+ "axisLabel",
424
+ "labelStep",
425
+ "max",
426
+ "min",
427
+ "padding",
428
+ "step"
429
+ ]
430
+ },
431
+ "standardGrid": {
432
+ "description": "Indicates if some domain values will be synched to the range values",
433
+ "type": "boolean",
434
+ "title": "standardGrid"
435
+ },
436
+ "title": {
437
+ "description": "Indicates graph title",
438
+ "type": "string",
439
+ "title": "title"
440
+ }
441
+ },
442
+ "required": [
443
+ "domain",
444
+ "graph",
445
+ "range"
446
+ ]
447
+ },
448
+ "title": "gridConfigurations"
449
+ },
237
450
  "padding": {
238
451
  "title": "ConfigureProp",
239
452
  "type": "object",
@@ -251,9 +464,29 @@
251
464
  }
252
465
  },
253
466
  "labels": {
254
- "title": "ConfigureProp",
467
+ "title": "LabelsConfigProp",
255
468
  "type": "object",
256
469
  "properties": {
470
+ "top": {
471
+ "description": "Indicates the placeholder for the top label",
472
+ "type": "string",
473
+ "title": "top"
474
+ },
475
+ "right": {
476
+ "description": "Indicates the placeholder for the right label",
477
+ "type": "string",
478
+ "title": "right"
479
+ },
480
+ "bottom": {
481
+ "description": "Indicates the placeholder for the bottom label",
482
+ "type": "string",
483
+ "title": "bottom"
484
+ },
485
+ "left": {
486
+ "description": "Indicates the placeholder for the left label",
487
+ "type": "string",
488
+ "title": "left"
489
+ },
257
490
  "settings": {
258
491
  "description": "Indicates if the item has to be displayed in the Settings Panel",
259
492
  "type": "boolean",
@@ -263,6 +496,11 @@
263
496
  "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
264
497
  "type": "string",
265
498
  "title": "label"
499
+ },
500
+ "enabled": {
501
+ "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)",
502
+ "type": "boolean",
503
+ "title": "enabled"
266
504
  }
267
505
  }
268
506
  },
@@ -363,9 +601,14 @@
363
601
  }
364
602
  },
365
603
  "title": {
366
- "title": "ConfigurePropWithEnabled",
604
+ "title": "TitleConfigProp",
367
605
  "type": "object",
368
606
  "properties": {
607
+ "placeholder": {
608
+ "description": "Indicates the placeholder for the title label",
609
+ "type": "string",
610
+ "title": "placeholder"
611
+ },
369
612
  "settings": {
370
613
  "description": "Indicates if the item has to be displayed in the Settings Panel",
371
614
  "type": "boolean",
@@ -444,6 +687,9 @@
444
687
  "title": "settingsPartialScoring"
445
688
  }
446
689
  },
690
+ "required": [
691
+ "gridConfigurations"
692
+ ],
447
693
  "definitions": {
448
694
  "AuthoringConfigProp": {
449
695
  "title": "AuthoringConfigProp",
@@ -695,10 +941,392 @@
695
941
  }
696
942
  }
697
943
  },
698
- "ConfigurePropWithEnabled": {
699
- "title": "ConfigurePropWithEnabled",
944
+ "GridConfigurationsProp": {
945
+ "title": "GridConfigurationsProp",
700
946
  "type": "object",
701
947
  "properties": {
948
+ "label": {
949
+ "description": "Indicates the label for the configuration",
950
+ "type": "string",
951
+ "title": "label"
952
+ },
953
+ "arrows": {
954
+ "title": "Arrows",
955
+ "type": "object",
956
+ "properties": {
957
+ "left": {
958
+ "description": "Indicates if left arrow is enabled",
959
+ "type": "boolean",
960
+ "title": "left"
961
+ },
962
+ "right": {
963
+ "description": "Indicates if right arrow is enabled",
964
+ "type": "boolean",
965
+ "title": "right"
966
+ },
967
+ "up": {
968
+ "description": "Indicates if up arrow is enabled",
969
+ "type": "boolean",
970
+ "title": "up"
971
+ },
972
+ "down": {
973
+ "description": "Indicates if down arrow is enabled",
974
+ "type": "boolean",
975
+ "title": "down"
976
+ }
977
+ },
978
+ "required": [
979
+ "down",
980
+ "left",
981
+ "right",
982
+ "up"
983
+ ]
984
+ },
985
+ "domain": {
986
+ "title": "GraphSettings",
987
+ "type": "object",
988
+ "properties": {
989
+ "min": {
990
+ "description": "Min value",
991
+ "type": "number",
992
+ "title": "min"
993
+ },
994
+ "max": {
995
+ "description": "Max value",
996
+ "type": "number",
997
+ "title": "max"
998
+ },
999
+ "padding": {
1000
+ "description": "Padding value",
1001
+ "type": "number",
1002
+ "title": "padding"
1003
+ },
1004
+ "step": {
1005
+ "description": "Step value",
1006
+ "type": "number",
1007
+ "title": "step"
1008
+ },
1009
+ "labelStep": {
1010
+ "description": "Label step value",
1011
+ "type": "number",
1012
+ "title": "labelStep"
1013
+ },
1014
+ "axisLabel": {
1015
+ "description": "Axis Label",
1016
+ "type": "string",
1017
+ "title": "axisLabel"
1018
+ }
1019
+ },
1020
+ "required": [
1021
+ "axisLabel",
1022
+ "labelStep",
1023
+ "max",
1024
+ "min",
1025
+ "padding",
1026
+ "step"
1027
+ ]
1028
+ },
1029
+ "graph": {
1030
+ "title": "Graph",
1031
+ "type": "object",
1032
+ "properties": {
1033
+ "width": {
1034
+ "description": "Width for graph representation",
1035
+ "type": "number",
1036
+ "title": "width"
1037
+ },
1038
+ "height": {
1039
+ "description": "Height for graph representation",
1040
+ "type": "number",
1041
+ "title": "height"
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "height",
1046
+ "width"
1047
+ ]
1048
+ },
1049
+ "includeAxes": {
1050
+ "description": "Indicates if the graph axes and labels are enabled",
1051
+ "type": "boolean",
1052
+ "title": "includeAxes"
1053
+ },
1054
+ "labels": {
1055
+ "title": "Labels",
1056
+ "type": "object",
1057
+ "properties": {
1058
+ "top": {
1059
+ "description": "Label for top side of the graph",
1060
+ "type": "string",
1061
+ "title": "top"
1062
+ },
1063
+ "bottom": {
1064
+ "description": "Label for bottom side of the graph",
1065
+ "type": "string",
1066
+ "title": "bottom"
1067
+ },
1068
+ "left": {
1069
+ "description": "Label for left side of the graph",
1070
+ "type": "string",
1071
+ "title": "left"
1072
+ },
1073
+ "right": {
1074
+ "description": "Label for right side of the graph",
1075
+ "type": "string",
1076
+ "title": "right"
1077
+ }
1078
+ },
1079
+ "required": [
1080
+ "bottom",
1081
+ "left",
1082
+ "right",
1083
+ "top"
1084
+ ]
1085
+ },
1086
+ "padding": {
1087
+ "description": "Indicates if padding is enabled",
1088
+ "type": "boolean",
1089
+ "title": "padding"
1090
+ },
1091
+ "range": {
1092
+ "title": "GraphSettings",
1093
+ "type": "object",
1094
+ "properties": {
1095
+ "min": {
1096
+ "description": "Min value",
1097
+ "type": "number",
1098
+ "title": "min"
1099
+ },
1100
+ "max": {
1101
+ "description": "Max value",
1102
+ "type": "number",
1103
+ "title": "max"
1104
+ },
1105
+ "padding": {
1106
+ "description": "Padding value",
1107
+ "type": "number",
1108
+ "title": "padding"
1109
+ },
1110
+ "step": {
1111
+ "description": "Step value",
1112
+ "type": "number",
1113
+ "title": "step"
1114
+ },
1115
+ "labelStep": {
1116
+ "description": "Label step value",
1117
+ "type": "number",
1118
+ "title": "labelStep"
1119
+ },
1120
+ "axisLabel": {
1121
+ "description": "Axis Label",
1122
+ "type": "string",
1123
+ "title": "axisLabel"
1124
+ }
1125
+ },
1126
+ "required": [
1127
+ "axisLabel",
1128
+ "labelStep",
1129
+ "max",
1130
+ "min",
1131
+ "padding",
1132
+ "step"
1133
+ ]
1134
+ },
1135
+ "standardGrid": {
1136
+ "description": "Indicates if some domain values will be synched to the range values",
1137
+ "type": "boolean",
1138
+ "title": "standardGrid"
1139
+ },
1140
+ "title": {
1141
+ "description": "Indicates graph title",
1142
+ "type": "string",
1143
+ "title": "title"
1144
+ }
1145
+ },
1146
+ "required": [
1147
+ "domain",
1148
+ "graph",
1149
+ "range"
1150
+ ]
1151
+ },
1152
+ "Arrows": {
1153
+ "title": "Arrows",
1154
+ "type": "object",
1155
+ "properties": {
1156
+ "left": {
1157
+ "description": "Indicates if left arrow is enabled",
1158
+ "type": "boolean",
1159
+ "title": "left"
1160
+ },
1161
+ "right": {
1162
+ "description": "Indicates if right arrow is enabled",
1163
+ "type": "boolean",
1164
+ "title": "right"
1165
+ },
1166
+ "up": {
1167
+ "description": "Indicates if up arrow is enabled",
1168
+ "type": "boolean",
1169
+ "title": "up"
1170
+ },
1171
+ "down": {
1172
+ "description": "Indicates if down arrow is enabled",
1173
+ "type": "boolean",
1174
+ "title": "down"
1175
+ }
1176
+ },
1177
+ "required": [
1178
+ "down",
1179
+ "left",
1180
+ "right",
1181
+ "up"
1182
+ ]
1183
+ },
1184
+ "GraphSettings": {
1185
+ "title": "GraphSettings",
1186
+ "type": "object",
1187
+ "properties": {
1188
+ "min": {
1189
+ "description": "Min value",
1190
+ "type": "number",
1191
+ "title": "min"
1192
+ },
1193
+ "max": {
1194
+ "description": "Max value",
1195
+ "type": "number",
1196
+ "title": "max"
1197
+ },
1198
+ "padding": {
1199
+ "description": "Padding value",
1200
+ "type": "number",
1201
+ "title": "padding"
1202
+ },
1203
+ "step": {
1204
+ "description": "Step value",
1205
+ "type": "number",
1206
+ "title": "step"
1207
+ },
1208
+ "labelStep": {
1209
+ "description": "Label step value",
1210
+ "type": "number",
1211
+ "title": "labelStep"
1212
+ },
1213
+ "axisLabel": {
1214
+ "description": "Axis Label",
1215
+ "type": "string",
1216
+ "title": "axisLabel"
1217
+ }
1218
+ },
1219
+ "required": [
1220
+ "axisLabel",
1221
+ "labelStep",
1222
+ "max",
1223
+ "min",
1224
+ "padding",
1225
+ "step"
1226
+ ]
1227
+ },
1228
+ "Graph": {
1229
+ "title": "Graph",
1230
+ "type": "object",
1231
+ "properties": {
1232
+ "width": {
1233
+ "description": "Width for graph representation",
1234
+ "type": "number",
1235
+ "title": "width"
1236
+ },
1237
+ "height": {
1238
+ "description": "Height for graph representation",
1239
+ "type": "number",
1240
+ "title": "height"
1241
+ }
1242
+ },
1243
+ "required": [
1244
+ "height",
1245
+ "width"
1246
+ ]
1247
+ },
1248
+ "Labels": {
1249
+ "title": "Labels",
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "top": {
1253
+ "description": "Label for top side of the graph",
1254
+ "type": "string",
1255
+ "title": "top"
1256
+ },
1257
+ "bottom": {
1258
+ "description": "Label for bottom side of the graph",
1259
+ "type": "string",
1260
+ "title": "bottom"
1261
+ },
1262
+ "left": {
1263
+ "description": "Label for left side of the graph",
1264
+ "type": "string",
1265
+ "title": "left"
1266
+ },
1267
+ "right": {
1268
+ "description": "Label for right side of the graph",
1269
+ "type": "string",
1270
+ "title": "right"
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "bottom",
1275
+ "left",
1276
+ "right",
1277
+ "top"
1278
+ ]
1279
+ },
1280
+ "LabelsConfigProp": {
1281
+ "title": "LabelsConfigProp",
1282
+ "type": "object",
1283
+ "properties": {
1284
+ "top": {
1285
+ "description": "Indicates the placeholder for the top label",
1286
+ "type": "string",
1287
+ "title": "top"
1288
+ },
1289
+ "right": {
1290
+ "description": "Indicates the placeholder for the right label",
1291
+ "type": "string",
1292
+ "title": "right"
1293
+ },
1294
+ "bottom": {
1295
+ "description": "Indicates the placeholder for the bottom label",
1296
+ "type": "string",
1297
+ "title": "bottom"
1298
+ },
1299
+ "left": {
1300
+ "description": "Indicates the placeholder for the left label",
1301
+ "type": "string",
1302
+ "title": "left"
1303
+ },
1304
+ "settings": {
1305
+ "description": "Indicates if the item has to be displayed in the Settings Panel",
1306
+ "type": "boolean",
1307
+ "title": "settings"
1308
+ },
1309
+ "label": {
1310
+ "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
1311
+ "type": "string",
1312
+ "title": "label"
1313
+ },
1314
+ "enabled": {
1315
+ "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)",
1316
+ "type": "boolean",
1317
+ "title": "enabled"
1318
+ }
1319
+ }
1320
+ },
1321
+ "TitleConfigProp": {
1322
+ "title": "TitleConfigProp",
1323
+ "type": "object",
1324
+ "properties": {
1325
+ "placeholder": {
1326
+ "description": "Indicates the placeholder for the title label",
1327
+ "type": "string",
1328
+ "title": "placeholder"
1329
+ },
702
1330
  "settings": {
703
1331
  "description": "Indicates if the item has to be displayed in the Settings Panel",
704
1332
  "type": "boolean",