Giter Site home page Giter Site logo

Comments (2)

gordonwoodhull avatar gordonwoodhull commented on August 16, 2024

the new object stage would contradict #21, which i think i like better. after all, the new objects are often why other stuff has moved.

it's a question of whether to emphasize causality or separation of actions.

from dc.graph.js.

gordonwoodhull avatar gordonwoodhull commented on August 16, 2024

Two different modes of staged transitions are now supported via .stageTransitions(mode)

  1. Modify-insert (mode === 'modins'): first, old nodes and edges move to their new positions. Then inserted nodes and edges fade in. Node-node overlaps are mostly avoided during transitions because old nodes are in the correct positions before new nodes appear, and there is no superfluous movement. However, it can be confusing to see nodes move out of the way of something that is not yet there.
  2. Insert-modify (mode === 'insmod'): first, new nodes and edges appear. Then old nodes and edges move to their new positions. This emphasizes causality because old nodes and edges move in response to both deletions and inserts. However, there may be temporary collisions if new nodes are inserted where old nodes used to be, and there is extra movement because old edges move twice.

No matter the staged transition mode, deletions always happen before layout calculation begins.

from dc.graph.js.

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.