Giter VIP home page Giter VIP logo

Comments (7)

jerosoler avatar jerosoler commented on June 14, 2024 1

View function updateConnectionNodes(id)

Example use:

editor.updateConnectionNodes('node-5');

from drawflow.

jerosoler avatar jerosoler commented on June 14, 2024 1

Could it be because it is taking 100 miliseconds to hide and show? Try settimeout.

Or prepare a codepen or sandbox to try

from drawflow.

meet1919 avatar meet1919 commented on June 14, 2024

Ohh yes. Sorry, I didnt study the documentation well.

from drawflow.

meet1919 avatar meet1919 commented on June 14, 2024

the connection tries to update but doesnt attaches to the actual position of input and output when the node resizes. What should be the problem now? It is working when I drag the nodes, so same function applies here. It should work as expected right?

from drawflow.

jerosoler avatar jerosoler commented on June 14, 2024

Same function

from drawflow.

meet1919 avatar meet1919 commented on June 14, 2024

yeah, but it doesnt work properly. But works properly when node is dragged.

here how I am using it

$('#project-details').on('click', '.add-input', function () {
    $(this).prop('hidden', true)
    $(this).parent().find('.remove-input').prop('hidden', false)
    $(this).parent().find('.user-instruction-input').show(100)
    let node_id = $(this).closest('.drawflow-node').attr('id')
    drawflow.updateConnectionNodes(node_id)
})


$('#project-details').on('click', '.remove-input', function () {
    $(this).prop('hidden', true)
    $(this).parent().find('.add-input').prop('hidden', false)
    $(this).parent().find('.user-instruction-input').hide(100)
    let node_id = $(this).closest('.drawflow-node').attr('id')
    drawflow.updateConnectionNodes(node_id)
})

from drawflow.

meet1919 avatar meet1919 commented on June 14, 2024

Yeah, 100 ms was the problem.

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.