Skip to content

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