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
import{Canvas}from ...
exportdefaultfunctionApp(){return(<Canvas></Canvas>);}//TODO: need a menu to work
defind your own nodes
import{useNode,useSocketOut,useSocketIn}from ...
exportfunctionNumberGen(node: StanderNode){//put on where you want to darg node aroundconst[startNode]=useNode(node);//put on where the socket are const[startSocket]=useSocketOut(sOut);return(<divonMouseDown={startNode}><div/><circleonMouseDown={startSocket}></circle>
);
}exportfunctionDisplay(node: StanderNode){const[startNode]=useNode(node);const[startSocket]=useSocketIn(sIn);return(<divonMouseDown={startNode}><div/><circleonMouseDown={startSocket}></circle>
);
}
see more detail in the CustomNodes.tsx under src/component