first working version of Subgraphs

This commit is contained in:
tamat
2019-04-11 19:04:59 +02:00
parent 4843134143
commit c03f0eb3b7
14 changed files with 3966 additions and 2233 deletions

View File

@@ -55,6 +55,13 @@
LiteGraph.wrapFunctionAsNode("string/split",toUpperCase, ["String","String"],"Array");
function toFixed(a)
{
if(a != null && a.constructor === Number)
return a.toFixed(this.properties.precision);
return a;
}
LiteGraph.wrapFunctionAsNode("string/toFixed", toFixed, ["Number"], "String", { precision: 0 } );
})(this);