Code
Rete.js plugin
; Component // ... { // 'node' param is similar to worker's "node" // "inputs" contains variables name // add code line ; // add variable with value "node.data.num" } const sourceCode = await CodePlugin;
For example, the scheme with such nodes
Number 6
\ Add 11 -- Add 16
/ /
Number 5 ---------
will generate the next sourceCode
console;const number1num = 5;console;const number3num = 6;const add4num = number3num + number1num;const add2num = add4num + number1num;