@node-projects/web-component-designer-visualization-addons 0.1.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.
Files changed (78) hide show
  1. package/README.md +19 -0
  2. package/dist/blockly/BlocklyJavascriptHelper.d.ts +2 -0
  3. package/dist/blockly/BlocklyJavascriptHelper.js +35 -0
  4. package/dist/blockly/BlocklyScriptEditor.d.ts +16 -0
  5. package/dist/blockly/BlocklyScriptEditor.js +106 -0
  6. package/dist/blockly/BlocklyToolbox.d.ts +1117 -0
  7. package/dist/blockly/BlocklyToolbox.js +980 -0
  8. package/dist/blockly/components/Console.d.ts +0 -0
  9. package/dist/blockly/components/Console.js +26 -0
  10. package/dist/blockly/components/Debugger.d.ts +0 -0
  11. package/dist/blockly/components/Debugger.js +15 -0
  12. package/dist/blockly/components/GetState.d.ts +0 -0
  13. package/dist/blockly/components/GetState.js +21 -0
  14. package/dist/blockly/components/GetSubProperty.d.ts +0 -0
  15. package/dist/blockly/components/GetSubProperty.js +27 -0
  16. package/dist/blockly/components/OpenScreen.d.ts +0 -0
  17. package/dist/blockly/components/OpenScreen.js +31 -0
  18. package/dist/blockly/components/QuerySelector.d.ts +0 -0
  19. package/dist/blockly/components/QuerySelector.js +30 -0
  20. package/dist/blockly/components/QuerySelectorAll.d.ts +0 -0
  21. package/dist/blockly/components/QuerySelectorAll.js +30 -0
  22. package/dist/blockly/components/Return.d.ts +0 -0
  23. package/dist/blockly/components/Return.js +21 -0
  24. package/dist/blockly/components/SetElement.d.ts +0 -0
  25. package/dist/blockly/components/SetElement.js +44 -0
  26. package/dist/blockly/components/SetState.d.ts +0 -0
  27. package/dist/blockly/components/SetState.js +26 -0
  28. package/dist/blockly/components/StartEvent.d.ts +0 -0
  29. package/dist/blockly/components/StartEvent.js +23 -0
  30. package/dist/blockly/components/components.d.ts +11 -0
  31. package/dist/blockly/components/components.js +11 -0
  32. package/dist/blockly/components/fields/FieldObjectId.d.ts +1 -0
  33. package/dist/blockly/components/fields/FieldObjectId.js +6 -0
  34. package/dist/components/BindingsEditor.d.ts +49 -0
  35. package/dist/components/BindingsEditor.js +298 -0
  36. package/dist/components/BindingsEditorHistoric.d.ts +14 -0
  37. package/dist/components/BindingsEditorHistoric.js +97 -0
  38. package/dist/components/PropertyGridExt.d.ts +0 -0
  39. package/dist/components/PropertyGridExt.js +1 -0
  40. package/dist/components/ScriptEditor.d.ts +28 -0
  41. package/dist/components/ScriptEditor.js +254 -0
  42. package/dist/components/VisualizationPropertyGrid.d.ts +12 -0
  43. package/dist/components/VisualizationPropertyGrid.js +104 -0
  44. package/dist/helpers/BindingsHelper.d.ts +47 -0
  45. package/dist/helpers/BindingsHelper.js +642 -0
  46. package/dist/index.d.ts +21 -0
  47. package/dist/index.js +22 -0
  48. package/dist/interfaces/IScriptMultiplexValue.d.ts +15 -0
  49. package/dist/interfaces/IScriptMultiplexValue.js +15 -0
  50. package/dist/interfaces/VisualisationElementScript.d.ts +5 -0
  51. package/dist/interfaces/VisualisationElementScript.js +1 -0
  52. package/dist/interfaces/VisualizationBinding.d.ts +20 -0
  53. package/dist/interfaces/VisualizationBinding.js +4 -0
  54. package/dist/interfaces/VisualizationHandler.d.ts +24 -0
  55. package/dist/interfaces/VisualizationHandler.js +2 -0
  56. package/dist/interfaces/VisualizationShell.d.ts +13 -0
  57. package/dist/interfaces/VisualizationShell.js +1 -0
  58. package/dist/interfaces/VisualizationUiHandler.d.ts +5 -0
  59. package/dist/interfaces/VisualizationUiHandler.js +2 -0
  60. package/dist/scripting/Script.d.ts +6 -0
  61. package/dist/scripting/Script.js +5 -0
  62. package/dist/scripting/ScriptCommands.d.ts +192 -0
  63. package/dist/scripting/ScriptCommands.js +1 -0
  64. package/dist/scripting/ScriptSystem.d.ts +23 -0
  65. package/dist/scripting/ScriptSystem.js +224 -0
  66. package/dist/services/BindableObjectDragDropService.d.ts +16 -0
  67. package/dist/services/BindableObjectDragDropService.js +145 -0
  68. package/dist/services/BindingsService.d.ts +11 -0
  69. package/dist/services/BindingsService.js +46 -0
  70. package/dist/services/PropertyGridDragDropService.d.ts +7 -0
  71. package/dist/services/PropertyGridDragDropService.js +10 -0
  72. package/dist/services/ScriptRefactorService.d.ts +9 -0
  73. package/dist/services/ScriptRefactorService.js +79 -0
  74. package/dist/services/SignalPropertyEditor.d.ts +7 -0
  75. package/dist/services/SignalPropertyEditor.js +43 -0
  76. package/dist/setupVisuService.d.ts +0 -0
  77. package/dist/setupVisuService.js +1 -0
  78. package/package.json +29 -0
@@ -0,0 +1,980 @@
1
+ import './components/components.js';
2
+ //TODO: OpenScreen
3
+ //setTimeout
4
+ export default {
5
+ kind: 'categoryToolbox',
6
+ contents: [
7
+ {
8
+ kind: 'category',
9
+ name: 'Start',
10
+ categorystyle: 'start_category',
11
+ contents: [
12
+ {
13
+ kind: 'block',
14
+ type: 'start_event',
15
+ }
16
+ ]
17
+ },
18
+ {
19
+ kind: 'category',
20
+ name: 'System',
21
+ categorystyle: 'system_category',
22
+ contents: [
23
+ {
24
+ kind: 'block',
25
+ type: 'console',
26
+ },
27
+ {
28
+ kind: 'block',
29
+ type: 'debugger',
30
+ },
31
+ {
32
+ kind: 'block',
33
+ type: 'open_screen',
34
+ inputs: {
35
+ SCREEN: {
36
+ shadow: {
37
+ type: 'text',
38
+ fields: {
39
+ TEXT: '',
40
+ },
41
+ },
42
+ },
43
+ },
44
+ },
45
+ {
46
+ kind: 'block',
47
+ type: 'set_state',
48
+ inputs: {
49
+ OID: {
50
+ shadow: {
51
+ type: 'text',
52
+ fields: {
53
+ TEXT: '',
54
+ },
55
+ },
56
+ },
57
+ },
58
+ },
59
+ {
60
+ kind: 'block',
61
+ type: 'get_state',
62
+ inputs: {
63
+ OID: {
64
+ shadow: {
65
+ type: 'text',
66
+ fields: {
67
+ TEXT: '',
68
+ },
69
+ },
70
+ },
71
+ },
72
+ },
73
+ {
74
+ kind: 'block',
75
+ type: 'get_sub_property',
76
+ inputs: {
77
+ PROPERTYPATH: {
78
+ shadow: {
79
+ type: 'text',
80
+ fields: {
81
+ TEXT: '',
82
+ },
83
+ },
84
+ },
85
+ },
86
+ },
87
+ {
88
+ kind: 'block',
89
+ type: 'query_selector',
90
+ inputs: {
91
+ SELECTOR: {
92
+ shadow: {
93
+ type: 'text',
94
+ fields: {
95
+ TEXT: '',
96
+ },
97
+ },
98
+ },
99
+ },
100
+ },
101
+ {
102
+ kind: 'block',
103
+ type: 'query_selector_all',
104
+ inputs: {
105
+ SELECTOR: {
106
+ shadow: {
107
+ type: 'text',
108
+ fields: {
109
+ TEXT: '',
110
+ },
111
+ },
112
+ },
113
+ },
114
+ },
115
+ {
116
+ kind: 'block',
117
+ type: 'set_element', inputs: {
118
+ NAME: {
119
+ shadow: {
120
+ type: 'text',
121
+ fields: {
122
+ TEXT: '',
123
+ },
124
+ },
125
+ },
126
+ },
127
+ },
128
+ ]
129
+ },
130
+ {
131
+ kind: 'category',
132
+ name: 'Logic',
133
+ categorystyle: 'logic_category',
134
+ contents: [
135
+ {
136
+ type: 'controls_if',
137
+ kind: 'block',
138
+ },
139
+ {
140
+ type: 'logic_compare',
141
+ kind: 'block',
142
+ fields: {
143
+ OP: 'EQ',
144
+ },
145
+ },
146
+ {
147
+ type: 'logic_operation',
148
+ kind: 'block',
149
+ fields: {
150
+ OP: 'AND',
151
+ },
152
+ },
153
+ {
154
+ type: 'logic_negate',
155
+ kind: 'block',
156
+ },
157
+ {
158
+ type: 'logic_boolean',
159
+ kind: 'block',
160
+ fields: {
161
+ BOOL: 'TRUE',
162
+ },
163
+ },
164
+ {
165
+ type: 'logic_null',
166
+ kind: 'block'
167
+ },
168
+ {
169
+ type: 'logic_ternary',
170
+ kind: 'block',
171
+ },
172
+ ],
173
+ },
174
+ {
175
+ kind: 'category',
176
+ name: 'Loops',
177
+ categorystyle: 'loop_category',
178
+ contents: [
179
+ {
180
+ type: 'controls_repeat_ext',
181
+ kind: 'block',
182
+ inputs: {
183
+ TIMES: {
184
+ shadow: {
185
+ type: 'math_number',
186
+ fields: {
187
+ NUM: 10,
188
+ },
189
+ },
190
+ },
191
+ },
192
+ },
193
+ {
194
+ type: 'controls_whileUntil',
195
+ kind: 'block',
196
+ fields: {
197
+ MODE: 'WHILE',
198
+ },
199
+ },
200
+ {
201
+ type: 'controls_for',
202
+ kind: 'block',
203
+ fields: {
204
+ VAR: {
205
+ name: 'i',
206
+ },
207
+ },
208
+ inputs: {
209
+ FROM: {
210
+ shadow: {
211
+ type: 'math_number',
212
+ fields: {
213
+ NUM: 1,
214
+ },
215
+ },
216
+ },
217
+ TO: {
218
+ shadow: {
219
+ type: 'math_number',
220
+ fields: {
221
+ NUM: 10,
222
+ },
223
+ },
224
+ },
225
+ BY: {
226
+ shadow: {
227
+ type: 'math_number',
228
+ fields: {
229
+ NUM: 1,
230
+ },
231
+ },
232
+ },
233
+ },
234
+ },
235
+ {
236
+ type: 'controls_forEach',
237
+ kind: 'block',
238
+ fields: {
239
+ VAR: {
240
+ name: 'j',
241
+ },
242
+ },
243
+ },
244
+ {
245
+ type: 'controls_flow_statements',
246
+ kind: 'block',
247
+ fields: {
248
+ FLOW: 'BREAK',
249
+ },
250
+ },
251
+ ],
252
+ },
253
+ {
254
+ kind: 'category',
255
+ name: 'Math',
256
+ categorystyle: 'math_category',
257
+ contents: [
258
+ {
259
+ type: 'math_number',
260
+ kind: 'block',
261
+ fields: {
262
+ NUM: 123,
263
+ },
264
+ },
265
+ {
266
+ type: 'math_arithmetic',
267
+ kind: 'block',
268
+ fields: {
269
+ OP: 'ADD',
270
+ },
271
+ inputs: {
272
+ A: {
273
+ shadow: {
274
+ type: 'math_number',
275
+ fields: {
276
+ NUM: 1,
277
+ },
278
+ },
279
+ },
280
+ B: {
281
+ shadow: {
282
+ type: 'math_number',
283
+ fields: {
284
+ NUM: 1,
285
+ },
286
+ },
287
+ },
288
+ },
289
+ },
290
+ {
291
+ type: 'math_single',
292
+ kind: 'block',
293
+ fields: {
294
+ OP: 'ROOT',
295
+ },
296
+ inputs: {
297
+ NUM: {
298
+ shadow: {
299
+ type: 'math_number',
300
+ fields: {
301
+ NUM: 9,
302
+ },
303
+ },
304
+ },
305
+ },
306
+ },
307
+ {
308
+ type: 'math_trig',
309
+ kind: 'block',
310
+ fields: {
311
+ OP: 'SIN',
312
+ },
313
+ inputs: {
314
+ NUM: {
315
+ shadow: {
316
+ type: 'math_number',
317
+ fields: {
318
+ NUM: 45,
319
+ },
320
+ },
321
+ },
322
+ },
323
+ },
324
+ {
325
+ type: 'math_constant',
326
+ kind: 'block',
327
+ fields: {
328
+ CONSTANT: 'PI',
329
+ },
330
+ },
331
+ {
332
+ type: 'math_number_property',
333
+ kind: 'block',
334
+ fields: {
335
+ PROPERTY: 'EVEN',
336
+ },
337
+ inputs: {
338
+ NUMBER_TO_CHECK: {
339
+ shadow: {
340
+ type: 'math_number',
341
+ fields: {
342
+ NUM: 0,
343
+ },
344
+ },
345
+ },
346
+ },
347
+ },
348
+ {
349
+ type: 'math_round',
350
+ kind: 'block',
351
+ fields: {
352
+ OP: 'ROUND',
353
+ },
354
+ inputs: {
355
+ NUM: {
356
+ shadow: {
357
+ type: 'math_number',
358
+ fields: {
359
+ NUM: 3.1,
360
+ },
361
+ },
362
+ },
363
+ },
364
+ },
365
+ {
366
+ type: 'math_on_list',
367
+ kind: 'block',
368
+ fields: {
369
+ OP: 'SUM',
370
+ },
371
+ },
372
+ {
373
+ type: 'math_modulo',
374
+ kind: 'block',
375
+ inputs: {
376
+ DIVIDEND: {
377
+ shadow: {
378
+ type: 'math_number',
379
+ fields: {
380
+ NUM: 64,
381
+ },
382
+ },
383
+ },
384
+ DIVISOR: {
385
+ shadow: {
386
+ type: 'math_number',
387
+ fields: {
388
+ NUM: 10,
389
+ },
390
+ },
391
+ },
392
+ },
393
+ },
394
+ {
395
+ type: 'math_constrain',
396
+ kind: 'block',
397
+ inputs: {
398
+ VALUE: {
399
+ shadow: {
400
+ type: 'math_number',
401
+ fields: {
402
+ NUM: 50,
403
+ },
404
+ },
405
+ },
406
+ LOW: {
407
+ shadow: {
408
+ type: 'math_number',
409
+ fields: {
410
+ NUM: 1,
411
+ },
412
+ },
413
+ },
414
+ HIGH: {
415
+ shadow: {
416
+ type: 'math_number',
417
+ fields: {
418
+ NUM: 100,
419
+ },
420
+ },
421
+ },
422
+ },
423
+ },
424
+ {
425
+ type: 'math_random_int',
426
+ kind: 'block',
427
+ inputs: {
428
+ FROM: {
429
+ shadow: {
430
+ type: 'math_number',
431
+ fields: {
432
+ NUM: 1,
433
+ },
434
+ },
435
+ },
436
+ TO: {
437
+ shadow: {
438
+ type: 'math_number',
439
+ fields: {
440
+ NUM: 100,
441
+ },
442
+ },
443
+ },
444
+ },
445
+ },
446
+ {
447
+ type: 'math_random_float',
448
+ kind: 'block',
449
+ },
450
+ {
451
+ type: 'math_atan2',
452
+ kind: 'block',
453
+ inputs: {
454
+ X: {
455
+ shadow: {
456
+ type: 'math_number',
457
+ fields: {
458
+ NUM: 1,
459
+ },
460
+ },
461
+ },
462
+ Y: {
463
+ shadow: {
464
+ type: 'math_number',
465
+ fields: {
466
+ NUM: 1,
467
+ },
468
+ },
469
+ },
470
+ },
471
+ },
472
+ ],
473
+ },
474
+ {
475
+ kind: 'category',
476
+ name: 'Text',
477
+ categorystyle: 'text_category',
478
+ contents: [
479
+ {
480
+ type: 'text',
481
+ kind: 'block',
482
+ fields: {
483
+ TEXT: '',
484
+ },
485
+ },
486
+ {
487
+ type: 'text_multiline',
488
+ kind: 'block',
489
+ fields: {
490
+ TEXT: '',
491
+ },
492
+ },
493
+ {
494
+ type: 'text_join',
495
+ kind: 'block',
496
+ },
497
+ {
498
+ type: 'text_append',
499
+ kind: 'block',
500
+ fields: {
501
+ name: 'item',
502
+ },
503
+ inputs: {
504
+ TEXT: {
505
+ shadow: {
506
+ type: 'text',
507
+ fields: {
508
+ TEXT: '',
509
+ },
510
+ },
511
+ },
512
+ },
513
+ },
514
+ {
515
+ type: 'text_length',
516
+ kind: 'block',
517
+ inputs: {
518
+ VALUE: {
519
+ shadow: {
520
+ type: 'text',
521
+ fields: {
522
+ TEXT: 'abc',
523
+ },
524
+ },
525
+ },
526
+ },
527
+ },
528
+ {
529
+ type: 'text_isEmpty',
530
+ kind: 'block',
531
+ inputs: {
532
+ VALUE: {
533
+ shadow: {
534
+ type: 'text',
535
+ fields: {
536
+ TEXT: '',
537
+ },
538
+ },
539
+ },
540
+ },
541
+ },
542
+ {
543
+ type: 'text_indexOf',
544
+ kind: 'block',
545
+ fields: {
546
+ END: 'FIRST',
547
+ },
548
+ inputs: {
549
+ VALUE: {
550
+ block: {
551
+ type: 'variables_get',
552
+ fields: {
553
+ VAR: {
554
+ name: 'text',
555
+ },
556
+ },
557
+ },
558
+ },
559
+ FIND: {
560
+ shadow: {
561
+ type: 'text',
562
+ fields: {
563
+ TEXT: 'abc',
564
+ },
565
+ },
566
+ },
567
+ },
568
+ },
569
+ {
570
+ type: 'text_charAt',
571
+ kind: 'block',
572
+ fields: {
573
+ WHERE: 'FROM_START',
574
+ },
575
+ inputs: {
576
+ VALUE: {
577
+ block: {
578
+ type: 'variables_get',
579
+ fields: {
580
+ VAR: {
581
+ name: 'text',
582
+ },
583
+ },
584
+ },
585
+ },
586
+ },
587
+ },
588
+ {
589
+ type: 'text_getSubstring',
590
+ kind: 'block',
591
+ fields: {
592
+ WHERE1: 'FROM_START',
593
+ WHERE2: 'FROM_START',
594
+ },
595
+ inputs: {
596
+ STRING: {
597
+ block: {
598
+ type: 'variables_get',
599
+ fields: {
600
+ VAR: {
601
+ name: 'text',
602
+ },
603
+ },
604
+ },
605
+ },
606
+ },
607
+ },
608
+ {
609
+ type: 'text_changeCase',
610
+ kind: 'block',
611
+ fields: {
612
+ CASE: 'UPPERCASE',
613
+ },
614
+ inputs: {
615
+ TEXT: {
616
+ shadow: {
617
+ type: 'text',
618
+ fields: {
619
+ TEXT: 'abc',
620
+ },
621
+ },
622
+ },
623
+ },
624
+ },
625
+ {
626
+ type: 'text_trim',
627
+ kind: 'block',
628
+ fields: {
629
+ MODE: 'BOTH',
630
+ },
631
+ inputs: {
632
+ TEXT: {
633
+ shadow: {
634
+ type: 'text',
635
+ fields: {
636
+ TEXT: 'abc',
637
+ },
638
+ },
639
+ },
640
+ },
641
+ },
642
+ {
643
+ type: 'text_count',
644
+ kind: 'block',
645
+ inputs: {
646
+ SUB: {
647
+ shadow: {
648
+ type: 'text',
649
+ fields: {
650
+ TEXT: '',
651
+ },
652
+ },
653
+ },
654
+ TEXT: {
655
+ shadow: {
656
+ type: 'text',
657
+ fields: {
658
+ TEXT: '',
659
+ },
660
+ },
661
+ },
662
+ },
663
+ },
664
+ {
665
+ type: 'text_replace',
666
+ kind: 'block',
667
+ inputs: {
668
+ FROM: {
669
+ shadow: {
670
+ type: 'text',
671
+ fields: {
672
+ TEXT: '',
673
+ },
674
+ },
675
+ },
676
+ TO: {
677
+ shadow: {
678
+ type: 'text',
679
+ fields: {
680
+ TEXT: '',
681
+ },
682
+ },
683
+ },
684
+ TEXT: {
685
+ shadow: {
686
+ type: 'text',
687
+ fields: {
688
+ TEXT: '',
689
+ },
690
+ },
691
+ },
692
+ },
693
+ },
694
+ {
695
+ type: 'text_reverse',
696
+ kind: 'block',
697
+ inputs: {
698
+ TEXT: {
699
+ shadow: {
700
+ type: 'text',
701
+ fields: {
702
+ TEXT: '',
703
+ },
704
+ },
705
+ },
706
+ },
707
+ },
708
+ {
709
+ type: 'text_print',
710
+ kind: 'block',
711
+ inputs: {
712
+ TEXT: {
713
+ shadow: {
714
+ type: 'text',
715
+ fields: {
716
+ TEXT: 'abc',
717
+ },
718
+ },
719
+ },
720
+ },
721
+ },
722
+ {
723
+ type: 'text_prompt_ext',
724
+ kind: 'block',
725
+ fields: {
726
+ TYPE: 'TEXT',
727
+ },
728
+ inputs: {
729
+ TEXT: {
730
+ shadow: {
731
+ type: 'text',
732
+ fields: {
733
+ TEXT: 'abc',
734
+ },
735
+ },
736
+ },
737
+ },
738
+ },
739
+ ],
740
+ },
741
+ {
742
+ kind: 'category',
743
+ name: 'Lists',
744
+ categorystyle: 'list_category',
745
+ contents: [
746
+ {
747
+ type: 'lists_create_with',
748
+ kind: 'block',
749
+ },
750
+ {
751
+ type: 'lists_create_with',
752
+ kind: 'block',
753
+ },
754
+ {
755
+ type: 'lists_repeat',
756
+ kind: 'block',
757
+ inputs: {
758
+ NUM: {
759
+ shadow: {
760
+ type: 'math_number',
761
+ fields: {
762
+ NUM: 5,
763
+ },
764
+ },
765
+ },
766
+ },
767
+ },
768
+ {
769
+ type: 'lists_length',
770
+ kind: 'block',
771
+ },
772
+ {
773
+ type: 'lists_isEmpty',
774
+ kind: 'block',
775
+ },
776
+ {
777
+ type: 'lists_indexOf',
778
+ kind: 'block',
779
+ fields: {
780
+ END: 'FIRST',
781
+ },
782
+ inputs: {
783
+ VALUE: {
784
+ block: {
785
+ type: 'variables_get',
786
+ fields: {
787
+ VAR: {
788
+ name: 'list',
789
+ },
790
+ },
791
+ },
792
+ },
793
+ },
794
+ },
795
+ {
796
+ type: 'lists_getIndex',
797
+ kind: 'block',
798
+ fields: {
799
+ MODE: 'GET',
800
+ WHERE: 'FROM_START',
801
+ },
802
+ inputs: {
803
+ VALUE: {
804
+ block: {
805
+ type: 'variables_get',
806
+ fields: {
807
+ VAR: {
808
+ name: 'list',
809
+ },
810
+ },
811
+ },
812
+ },
813
+ },
814
+ },
815
+ {
816
+ type: 'lists_setIndex',
817
+ kind: 'block',
818
+ fields: {
819
+ MODE: 'SET',
820
+ WHERE: 'FROM_START',
821
+ },
822
+ inputs: {
823
+ LIST: {
824
+ block: {
825
+ type: 'variables_get',
826
+ fields: {
827
+ VAR: {
828
+ name: 'list',
829
+ },
830
+ },
831
+ },
832
+ },
833
+ },
834
+ },
835
+ {
836
+ type: 'lists_getSublist',
837
+ kind: 'block',
838
+ fields: {
839
+ WHERE1: 'FROM_START',
840
+ WHERE2: 'FROM_START',
841
+ },
842
+ inputs: {
843
+ LIST: {
844
+ block: {
845
+ type: 'variables_get',
846
+ fields: {
847
+ VAR: {
848
+ name: 'list',
849
+ },
850
+ },
851
+ },
852
+ },
853
+ },
854
+ },
855
+ {
856
+ type: 'lists_split',
857
+ kind: 'block',
858
+ fields: {
859
+ MODE: 'SPLIT',
860
+ },
861
+ inputs: {
862
+ DELIM: {
863
+ shadow: {
864
+ type: 'text',
865
+ fields: {
866
+ TEXT: ',',
867
+ },
868
+ },
869
+ },
870
+ },
871
+ },
872
+ {
873
+ type: 'lists_sort',
874
+ kind: 'block',
875
+ fields: {
876
+ TYPE: 'NUMERIC',
877
+ DIRECTION: '1',
878
+ },
879
+ },
880
+ {
881
+ type: 'lists_reverse',
882
+ kind: 'block',
883
+ },
884
+ ],
885
+ },
886
+ {
887
+ kind: 'category',
888
+ categorystyle: 'colour_category',
889
+ name: 'Color',
890
+ contents: [
891
+ {
892
+ type: 'colour_picker',
893
+ kind: 'block',
894
+ fields: {
895
+ COLOUR: '#ff0000',
896
+ },
897
+ },
898
+ {
899
+ type: 'colour_random',
900
+ kind: 'block',
901
+ },
902
+ {
903
+ type: 'colour_rgb',
904
+ kind: 'block',
905
+ inputs: {
906
+ RED: {
907
+ shadow: {
908
+ type: 'math_number',
909
+ fields: {
910
+ NUM: 100,
911
+ },
912
+ },
913
+ },
914
+ GREEN: {
915
+ shadow: {
916
+ type: 'math_number',
917
+ fields: {
918
+ NUM: 50,
919
+ },
920
+ },
921
+ },
922
+ BLUE: {
923
+ shadow: {
924
+ type: 'math_number',
925
+ fields: {
926
+ NUM: 0,
927
+ },
928
+ },
929
+ },
930
+ },
931
+ },
932
+ {
933
+ type: 'colour_blend',
934
+ kind: 'block',
935
+ inputs: {
936
+ COLOUR1: {
937
+ shadow: {
938
+ type: 'colour_picker',
939
+ fields: {
940
+ COLOUR: '#ff0000',
941
+ },
942
+ },
943
+ },
944
+ COLOUR2: {
945
+ shadow: {
946
+ type: 'colour_picker',
947
+ fields: {
948
+ COLOUR: '#3333ff',
949
+ },
950
+ },
951
+ },
952
+ RATIO: {
953
+ shadow: {
954
+ type: 'math_number',
955
+ fields: {
956
+ NUM: 0.5,
957
+ },
958
+ },
959
+ },
960
+ },
961
+ },
962
+ ],
963
+ },
964
+ {
965
+ kind: 'sep',
966
+ },
967
+ {
968
+ kind: 'category',
969
+ name: 'Variables',
970
+ custom: 'VARIABLE',
971
+ categorystyle: 'variable_category',
972
+ },
973
+ {
974
+ kind: 'category',
975
+ name: 'Functions',
976
+ custom: 'PROCEDURE',
977
+ categorystyle: 'procedure_category',
978
+ },
979
+ ],
980
+ };