Skip to content

Transition interruption not behaving as expected #201

Description

@dbuezas

Steps to reproduce:

  1. Render a dot file (first)
  2. Transition into a different dot file (second) rendering
  3. Interrupt transition before it finishes
  4. Transition again into a third dot file

Expected behaviour

  1. The third transition should begin right away and from the state the svg is at the moment of the interruption

Current behaviour

  1. The second transition is interrupted but there is a delay (as big as the remaining transition time)
  2. Then the third transition takes over (choppy)

Kapture 2021-09-05 at 11 17 29

My rendering code

      selectAll([container]).selectAll("*").interrupt("reload");
      const t = transition("reload").ease(easeCubic).duration(3000);
      graphviz(container)
        .zoomScaleExtent([0, Infinity])
        .zoom(true)
        .tweenShapes(true)
        .convertEqualSidedPolygons(false)
        .growEnteringEdges(true)
        .tweenPaths(true)
        .fade(true)
        .tweenPrecision("25")
        .transition(t as any) // @TODO: no clue why there is a type problem there
       .renderDot(dot);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions