Drawflow icon indicating copy to clipboard operation
Drawflow copied to clipboard

Custom Node

Open usama4850 opened this issue 3 years ago • 5 comments

Hi I am trying to make a custom node that contains multiple nodes with connnection is it possible?

usama4850 avatar Jul 09 '21 16:07 usama4850

Hi @usama4850

You mean this? https://github.com/jerosoler/Drawflow/issues/93

You could embed drawflow into drawflow maybe. Since it supports multiple editors.

jerosoler avatar Jul 09 '21 17:07 jerosoler

I want to make a node that contains 3 nodes and each are connected to each other when i add that node to editor it actually add 3 nodes that are connected to each other

usama4850 avatar Jul 09 '21 17:07 usama4850

You can add 3 nodes at the same time.

const idofnodecreated = editor.addNode(...)
const idofnodecreated2 = editor.addNode(...)
...

addConnection(idofnodecreated, idofnodecreated2, 'output_1', 'input_1');
...

jerosoler avatar Jul 09 '21 17:07 jerosoler

now the issue in grouping and perfect positioning of all nodes when user drag and drop on editor

usama4850 avatar Jul 10 '21 11:07 usama4850

Currently you can only select one node and drag one.

jerosoler avatar Jul 12 '21 09:07 jerosoler