File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## ToolBox Implementation
2+
3+ In the core, the implementation of the toolbox uses a map to get all the
4+ core namespaces and regular namespaces, which are extensions or libraries
5+ not outside of the pxsim.
6+ ``` ts
7+
8+ export const blockColors: Map <number | string > = {
9+ loops: ' #107c10' ,
10+ logic: ' #006970' ,
11+ math: ' #712672' ,
12+ variables: ' #A80000' ,
13+ functions: ' #005a9e' ,
14+ text: ' #996600' ,
15+ arrays: ' #A94400' ,
16+ advanced: ' #3c3c3c' ,
17+ addpackage: ' #717171' ,
18+ search: ' #000' ,
19+ debug: ' #e03030' ,
20+ default: ' #dddddd' ,
21+ topblocks: ' #aa8f00' ,
22+ recipes: ' #717171'
23+ }
24+
25+ export const blockIcons: Map <number | string > = {
26+ loops: ' \uf01e ' ,
27+ logic: ' \uf074 ' ,
28+ math: ' \uf1ec ' ,
29+ variables: ' \uf039 ' ,
30+ functions: ' \uf109 ' ,
31+ text: ' \uf035 ' ,
32+ arrays: ' \uf0cb ' ,
33+ advancedcollapsed: ' \uf078 ' ,
34+ advancedexpanded: ' \uf077 ' ,
35+ more: ' \uf141 ' ,
36+ addpackage: ' \uf055 ' ,
37+ search: ' \uf002 ' ,
38+ debug: ' \uf111 ' ,
39+ default: ' \uf12e ' ,
40+ topblocks: ' \uf005 ' ,
41+ recipes: ' \uf0eb '
42+ }
43+
44+ ```
You can’t perform that action at this time.
0 commit comments