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

Return promise after gl rendering #421

Merged
merged 3 commits into from
Apr 13, 2016
Merged

Return promise after gl rendering #421

merged 3 commits into from
Apr 13, 2016

Conversation

etpinard
Copy link
Contributor

resolve #122.

using @mikolalysenko 's suggestion in #122 (comment)

Moreover, this makes gl2d be drawn faster (to my 👀).

- so that Plotly.plot promise is returned
  when rendering is completed
- promise are now returned after initial plot call
- still need a 0 zero so that hover labels appear reliably
  in promise chains.
setTimeout(function() {
done();
}, PLOT_DELAY);
setTimeout(done, 0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need a 0 second timeout for the gl3d hover labels to test to pass reliably (at least on my machine).

More info in: #122 (comment)

@mdtusz
Copy link
Contributor

mdtusz commented Apr 13, 2016

Looks ok to me. I love these small gl fixes!

💃

@etpinard etpinard merged commit 52be69a into master Apr 13, 2016
@etpinard etpinard deleted the gl-draw-promise branch April 13, 2016 19:23
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.

Promise returns before rendering gl traces?
2 participants