(function(global) { var LiteGraph = global.LiteGraph; /* in types :: run in console :: var s=""; LiteGraph.slot_types_in.forEach(function(el){s+=el+"\n";}); console.log(s); */ if(typeof LiteGraph.slot_types_default_in == "undefined") LiteGraph.slot_types_default_in = {}; //[]; LiteGraph.slot_types_default_in["_event_"] = "widget/button"; LiteGraph.slot_types_default_in["array"] = "basic/array"; LiteGraph.slot_types_default_in["boolean"] = "basic/boolean"; LiteGraph.slot_types_default_in["number"] = "widget/number"; LiteGraph.slot_types_default_in["object"] = "basic/data"; LiteGraph.slot_types_default_in["string"] = ["basic/string","string/concatenate"]; LiteGraph.slot_types_default_in["vec2"] = "math3d/xy-to-vec2"; LiteGraph.slot_types_default_in["vec3"] = "math3d/xyz-to-vec3"; LiteGraph.slot_types_default_in["vec4"] = "math3d/xyzw-to-vec4"; /* out types :: run in console :: var s=""; LiteGraph.slot_types_out.forEach(function(el){s+=el+"\n";}); console.log(s); */ if(typeof LiteGraph.slot_types_default_out == "undefined") LiteGraph.slot_types_default_out = {}; LiteGraph.slot_types_default_out["_event_"] = ["logic/IF","events/sequencer","events/log","events/counter"]; LiteGraph.slot_types_default_out["array"] = ["basic/watch","basic/set_array","basic/array[]"]; LiteGraph.slot_types_default_out["boolean"] = ["logic/IF","basic/watch","math/branch","math/gate"]; LiteGraph.slot_types_default_out["number"] = ["basic/watch" ,{node:"math/operation",properties:{OP:"*"},title:"A*B"} ,{node:"math/operation",properties:{OP:"/"},title:"A/B"} ,{node:"math/operation",properties:{OP:"+"},title:"A+B"} ,{node:"math/operation",properties:{OP:"-"},title:"A-B"} ,{node:"math/compare",outputs:[["A==B", "boolean"]],title:"A==B"} ,{node:"math/compare",outputs:[["A>B", "boolean"]],title:"A>B"} ,{node:"math/compare",outputs:[["A