You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to run a graph with my own nodes in NodeJS.
How can I set a node that can run in NodeJS and in the browser?
Specific node: special.js
(function(global){varLiteGraph=global.LiteGraph;classSpecialConstNumber{constructor(){this.title="Const Special";this.desc="Constant special";this.color='#222234'this.bgcolor='#333257'this.addOutput("value","special");this.addProperty("value",1.0);}onExecute(){this.setOutputData(0,this.properties["value"]);}onDrawBackground(ctx){//show the current valuethis.outputs[0].label=this.properties["value"];}getTitle(){if(this.flags.collapsed){returnthis.properties.value;}returnthis.title;};setValue(v){this.setProperty("value",v);}}LiteGraph.registerNodeType("special/const_number",SpecialConstNumber);})(this);
I want to run a graph with my own nodes in NodeJS.
How can I set a node that can run in NodeJS and in the browser?
Specific node: special.js
in Browser
with Node.js
How can I import
special.js
?The text was updated successfully, but these errors were encountered: