Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edges disappearing in graph mode #2851

Merged
merged 3 commits into from
Sep 14, 2017
Merged

Conversation

fbarl
Copy link
Contributor

@fbarl fbarl commented Sep 11, 2017

Fixes #2850.

It seems that under some circumstances isAnimated prop would turn from false to true after the waypoints would be fixed, so prepareWaypointsForMotion would never be called given how the conditionals were set, giving an empty waypointsMap and consequently an ill-defined spline path for animated edges.

Changes
  • Simplified and broadened the conditions for waypointsMap recalculation to make sure they are called when necessary (but not making excessive calls).
  • Made helper functions for spring to avoid repeated code.

@fbarl fbarl self-assigned this Sep 11, 2017
@fbarl fbarl requested a review from foot September 12, 2017 10:38
@fbarl fbarl changed the title [WIP] Fix edges disappearing in graph mode Fix edges disappearing in graph mode Sep 12, 2017
@foot
Copy link
Contributor

foot commented Sep 14, 2017

Is there an easy way to repro this one?

@rade
Copy link
Member

rade commented Sep 14, 2017

I see this all the time in Chrome on Linux when I

  1. go to https://cloud.weave.works/app/cold-sky-72
  2. click 'bug' -> 'Reset your local view state' (this should bring up the table view of 'Controllers')
  3. click graph view

The edges show up for a few seconds and then disappear.

@foot
Copy link
Contributor

foot commented Sep 14, 2017 via email

Copy link
Contributor

@foot foot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, much better, LGTM

@fbarl fbarl merged commit 1cb82ad into master Sep 14, 2017
@fbarl fbarl deleted the 2850-fix-graph-edge-path-undefined branch October 20, 2017 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graph view edges sometimes disappear
3 participants