Giter VIP home page Giter VIP logo

Comments (23)

mushzak avatar mushzak commented on June 7, 2024

for example when I remove node output_3 from condition_desc, it works, but when trying to remove 2nd it gives issue,

For adding new output I'm using this:
image

from drawflow.

mushzak avatar mushzak commented on June 7, 2024
image

from drawflow.

jerosoler avatar jerosoler commented on June 7, 2024

In drawflow outputs and inputs as sequential number.

Example:
If you have 3 outputs.
And eliminate number 2.
Outputs 1 and 2 will remain available.

You are using the functions: removeNodeOutput(id, output_class) and addNodeOutput(id)?

from drawflow.

mushzak avatar mushzak commented on June 7, 2024
image I'm adding node output like this

from drawflow.

jerosoler avatar jerosoler commented on June 7, 2024

Use

editor.addNodeOutput(idOfNode);

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

if I use like this, how I can add lables?
image

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

is there any function that I can check if output exists or not?

from drawflow.

jerosoler avatar jerosoler commented on June 7, 2024

I don't know how you are adding the labels.

But once the connection is added you can always access the node information or add the label to the created connection.

You can get the node information with the function:

const dataNode = editor.getNodeFromId(idOfNode);

Here you can see the outputs and inputs of the nodes.

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

is there any function that I can check if output exists or not?

from drawflow.

jerosoler avatar jerosoler commented on June 7, 2024

There is no function.
But you can use what was shown in the comment above to see if the output exists.

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

tthis will remove "removeNodeOutput(id, output_class)" from child node inputs?

from drawflow.

jerosoler avatar jerosoler commented on June 7, 2024

Yes

from drawflow.

mushzak avatar mushzak commented on June 7, 2024
image having issues like this when using "removeNodeOutput(id, output_class)"

from drawflow.

mushzak avatar mushzak commented on June 7, 2024
image

from drawflow.

mushzak avatar mushzak commented on June 7, 2024
image My problem is that I can have 3 outputs in the condition node, and then I can remove the second one, or the first one, and in this image, you can see what looks like. I don't have output_2 because I removed it. and after that, I'm having this issue. image

from drawflow.

jerosoler avatar jerosoler commented on June 7, 2024

In drawflow outputs and inputs are sequential number.

There can be no jump in them.

from drawflow.

mushzak avatar mushzak commented on June 7, 2024
image image

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

image image

@jerosoler I'm using .removeNodeOutput() function wrongly?

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

as I understand the problem is when node has any outputs + connection removeNodeOutput() gives error.

image

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

When I try to remove first output which has a connection I see this error

image

when removing output_2 or output_3 it gives this error

image image

and it works when I remove connection and try remove output again

from drawflow.

jerosoler avatar jerosoler commented on June 7, 2024

Please create a codepen to reproduce this problem.

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

I'm not able to copy json from my working place, I can send screenshots

from drawflow.

mushzak avatar mushzak commented on June 7, 2024

I found the problem, closing the ticket, thanks.

from drawflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.