0.0.7 • Published 2 years ago

visualflow v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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);
  });
0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.1-beta2

2 years ago

0.0.1-beta

2 years ago