jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.61k stars 721 forks source link

Parallel flow detection..? #185

Closed NakulVadnere closed 3 years ago

NakulVadnere commented 3 years ago

Is there any way to detect independent flow in a module? As all nodes are in same json. Or I have to go for custom algorithm to detect the independent flow ?

jerosoler commented 3 years ago

Hello @NakulVadnere

The export separates the modules in this format.

{
    "drawflow": {
        "Home": {
            "data": {}
        },
        "Other": {
          "data": {}
},
}
}

In data all nodes in module.

Anuj-Kushwah-ak commented 3 years ago

@jerosoler, what if I want to differentiate 2 or more independent flows in same module(i.e. in module "Home").

jerosoler commented 3 years ago

Hello @Anuj-Kushwah-ak

They cannot be differentiated.

But you can go through the json and get all the flow. Since each node has its input and output connections.

But if you want to differentiate them, you can use the modules function or even create more than one editor at the same time.

Anuj-Kushwah-ak commented 3 years ago

@jerosoler , as you have told about module functions but in README file there is only mentioned about related to clear and get module, so i would like you to tell me more about those modules function to identify the flows.

jerosoler commented 3 years ago

Hello

The modules in Demo: https://jerosoler.github.io/Drawflow/ Are the tabs: image

Modules info: https://github.com/jerosoler/Drawflow#modules