Node's Pretty Magical

    visualflow

    0.0.7 • Public • Published

    Visual Flow Creator

    website: https://visualflow.cc/

    demo: https://demo.visualflow.cc/

    Workflow package:

    • @visualflow/core (Done)
    • @visualflow/web (Planning)
    • @visualflow/pc (Planning)
    • @visualflow/office (Planning)
    • @visualflow/moblie (Planning)

    Setup:

    npm i visualflow
    

    setup on browser

    
      let optionFlow = {
        properties: {
          name: {
            default: ""
          },
        },
        control: {}
      }
      visualflow_core.workerManager.getControlNodes().forEach((item) => {
        optionFlow.control[item.key] = item;
      })
      let flow = (new visualflow.VisualFlow(document.getElementById("flow")));
      flow.setOption(optionFlow, false);
      flow.newSolution();
      flow.callbackRunProject((data, callbackEnd) => {
        console.log(data);
        setTimeout(() => {
          visualflow_core.workerManager.LoadData(data).excute();
          callbackEnd?.();
        });
      })
      flow.callbackStopProject(() => {
        visualflow_core.workerManager.stop();
      })
      visualflow_core.workerManager.on('worker_end', () => {
        flow.setRunning(false);
      });
    

    Install

    npm i visualflow

    DownloadsWeekly Downloads

    2

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    1.45 MB

    Total Files

    29

    Last publish

    Collaborators

    • hauxyz