Giter VIP home page Giter VIP logo

Comments (5)

peterkogo avatar peterkogo commented on September 16, 2024

It is possible to connect a target handle to a source handle the same way you can connect a source handle to a target handle. Why shouldn't it be?

from react-flow.

minaBemani avatar minaBemani commented on September 16, 2024

It is possible to connect a target handle to a source handle the same way you can connect a source handle to a target handle. Why shouldn't it be?

Thanks for your response, I want the whole node to be connectable and act as target handle, but in this situation the node is not draggable anymore and edge comes out of it. The target handle should not be like this. In other words how can I make target handle with no outgoing edge?

from react-flow.

peterkogo avatar peterkogo commented on September 16, 2024

We have two handle props that are not implemented yet in SvelteFlow that would achieve something like this.

In the meantime, I feel like there is a better solution to what you want to achieve. You can subscribe to the connection that is currently in progress through the store and apply pointer-event: none; to the target handles if there is currently no connection happening.

from react-flow.

minaBemani avatar minaBemani commented on September 16, 2024

pointer-event: none; does not solve the issue and still edge comes out of target handle.

from react-flow.

peterkogo avatar peterkogo commented on September 16, 2024

Take a look at our easy-connect example. You can also conditionally render the handles.

pointer-events: none works for me flawlessly.

<Handle style="pointer-events: none;" {...} />

from react-flow.

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.