Giter Club home page Giter Club logo

Comments (5)

mewim avatar mewim commented on August 27, 2024

Actually we have enabled force-directed layout (

) and it indeed prevents nodes overlapping when the graph is initially rendered, but I think your request is to have the force-directed layout dynamically recomputed when a node is dragged around. This does not seem to be G6's default behavior but I think there should be a way to implement that.

from explorer.

mewim avatar mewim commented on August 27, 2024

#86 Enable dynamic re-layout on drag, but it is not very smooth... it might need additional tweaking later.

from explorer.

prrao87 avatar prrao87 commented on August 27, 2024

@mewim I think it's really smooth and wonderful! Is there anything in particular you noticed that isn't smooth? I see it working great on my end.

from explorer.

prrao87 avatar prrao87 commented on August 27, 2024

Actually, now that I test it some more, it doesn't do the layout as clean as it maybe could. There are some edges/nodes that are still overlapping once the layout is computed. No worries, this is still a great step up in how it looks, imo.

from explorer.

mewim avatar mewim commented on August 27, 2024

It seems to have something to do with the parameter settings for the force-direct layout algorithm. I tweaked it a bit but have not got an optimal outcome yet.

from explorer.

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.