How to use the noflo.createNetwork function in noflo

To help you get started, we’ve selected a few noflo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github d4tocchini / noflo-draggabilly / demo / index.html View on Github external
graph.addEdge('Touch', 'end', 'DragY', 'close');
      graph.addEdge('DragY', 'out', 'PosY', 'in');

      // up-down axis return when touch ends
      graph.addEdge('AnchorY', 'out', 'SpringY', 'anchor');
      graph.addEdge('Touch', 'moveY', 'NewY', 'data');
      graph.addEdge('Touch', 'end', 'NewY', 'in');
      graph.addEdge('NewY', 'out', 'SpringY', 'in');
      graph.addEdge('SpringY', 'out', 'PosY', 'in');

      // write graph JSON to textarea
      var g = document.getElementById('graph');
      g.value = JSON.stringify(graph.toJSON(), null, 2);
      
      // run the graph
      noflo.createNetwork(graph, function (network) {
        console.log("Network created");
      });
    };
github noflo / dataflow-noflo / demo / clock.html View on Github external
dataflow.plugins.noflo.registerGraph(graph, dataflow, function (dfGraph) {
            // Run the graph
            noflo.createNetwork(graph, function (network) {
              graph.on('addInitial', function () {
                network.sendInitials();
              });
            });
          });
        });
github noflo / dataflow-noflo / demo / blank.html View on Github external
dataflow.plugins.noflo.registerGraph(nfGraph, dataflow, function(dfGraph){
          // Run the graph
          noflo.createNetwork(nfGraph, function (network) {
            nfGraph.on('addInitial', function () {
              network.sendInitials();
            });
          });
          // Show source
          nfGraph.dataflowGraph.trigger("change");
        }, true);
      };
github noflo / dataflow-noflo / demo / index.html View on Github external
noflo.graph.loadJSON(graphDefinition, function (graph) {
          window.graph = graph;
          // Which component to start with when loading components
          graph.baseDir = '/dataflow-noflo';

          var dataflow = new Dataflow({appendTo:"#noflo-ui"});

          // Dataflow-Noflo connection
          dataflow.plugins.noflo.registerGraph(graph, dataflow);
      
          // Run the graph
          noflo.createNetwork(graph, function (network) {
            graph.on('addInitial', function () {
              network.sendInitials();
            });
          });
        });
      });

noflo

Flow-Based Programming environment for JavaScript

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis