question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transition interruption not behaving as expected

See original GitHub issue

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);

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
magjaccommented, Sep 7, 2021

Thank you so much for this. I’ll look into it as soon as I can carve out some time and mental space for it.

1reaction
dbuezascommented, Sep 5, 2021

Got it.

I suspect something is waiting for the end event in the transition to happen. Calling element.__transition[group].timer.call(duration) on all elements does make the next transition start right away (but does jump to the end of the previous transition).

I’ll make a test repo soon then 😃.

Thanks for this awesome module btw, I’ve been using it for years, great work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interruption of a CSS transition does not work for same ...
Here is a minimal example showing the expected behaviour. It works but the properties with comments behind have to be different for some...
Read more >
Why Do Kids Have Trouble With Transitions?
Being asked to change activities or locations is often a trigger for behavior like whining, complaining, or throwing tantrums. Kids may not ...
Read more >
Interruptions and Task Transitions: Understanding Their ...
Breaks during working hours are another common interruption. They may be planned or unscheduled recesses from work to accommodate personal needs ...
Read more >
transitions do not work correctly with Ordered Interruption
3) Select "GameObject" in Hierarchy tab. 4) Press Play and go to Animator window. 5) You should see the Any State -> scale_some...
Read more >
Interrupted transitions to AnyState transitions cause weird ...
The only workarounds I'm aware of are to disable transition interruptions (causes animations to drag) or to set transition durations to 0s ( ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found