Skip to content

Commit 23ee9ac

Browse files
Create toolboxImpl.md
1 parent 6a43cd2 commit 23ee9ac

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

docs/developers/toolboxImpl.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
```

0 commit comments

Comments
 (0)