diagram-maker icon indicating copy to clipboard operation
diagram-maker copied to clipboard

Is it possible to add custom number of Connectors for Nodes?

Open rahul-codeb opened this issue 3 years ago • 8 comments

Hi, I'm finding difficulty to manage custom number of connectors to the nodes. Right now, Diagram-Maker Nodes only support (one input and one output).

Also, please let us know, if it is possible to create custom-standard nodes in diagram maker.

rahul-codeb avatar Aug 17 '21 13:08 rahul-codeb

Apologies for the delay in our response and thank you for reaching out.

Could you please expand more on your use case?

occhangg avatar Aug 17 '21 21:08 occhangg

I want to implement custom number to Left-Right-Rectangular Node, and the connector behaviour should be completely configurable (Dropzone / Draggable).

Expectations : image

Please, let me know if this is possible, and if possible please provide a demo code.

Thanks.

rahul-codeb avatar Aug 18 '21 12:08 rahul-codeb

Hey @notsonoobiee we currently do not have plans to support adding multiple node inputs/outputs. Would you be willing to contribute a code change to support this?

NorbertNader avatar Aug 25 '21 19:08 NorbertNader

@NorbertNader I don't understand why you would not even plan adding multiple inputs/outputs to nodes.

It's the most basic functionality and the first thing anyone is going to ask for when building something a little more complex than a single input and output, right?

nkev avatar Feb 01 '22 11:02 nkev

You can add multiple inputs & outputs already by just adding the right data attributes. See the relevant documentation around it: https://awslabs.github.io/diagram-maker/usage/declarative.html#customizing-the-node-connectors.

However, what's currently not possible is for edges to start & end at these "custom" connectors. That feature would need to be added.

sameergoyal avatar Feb 10 '22 16:02 sameergoyal

I'm going to try and give this a shot and submit a PR.

ktsao565 avatar Feb 21 '22 20:02 ktsao565

@nkev I would like to clarify, there is no plans for the maintainers to actively create this feature, not that we would not accept this feature as a contribution. We would be happy to accept this feature. We are in communications with another user of this library, @tsao565 who is interested in implementing this. Stay tuned :-)

diehbria avatar Feb 21 '22 20:02 diehbria

Thanks @diehbria but I have since moved on to using drawflow, which better suits my needs.

nkev avatar Feb 22 '22 00:02 nkev

Sorry, we are not planning to act on this request in any timely manner and will be closing this issue. Thank you.

tracy-french avatar Aug 25 '22 21:08 tracy-french