-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Implement connect gaps for 2d WebGL plots #449
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
Conversation
cc/ @monfera |
@mikolalysenko Something broke the that line should be on follow the marker points. |
@@ -28,6 +28,7 @@ | |||
"cibuild": "node tasks/cibundle.js", | |||
"watch": "node tasks/watch_plotly.js", | |||
"lint": "eslint . || true", | |||
"lint-fix": "eslint . --fix", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicely done!
@etpinard Looks like the xData and yData arrays aren't getting initialized correctly for that plot. I can take a look at it next time I get a day to work. |
linePositions = new Float32Array(2 * x.length); | ||
|
||
for(i=0; i<x.length; ++i) { | ||
linePositions[p++] = x[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might have to ♻️ this block.
@etpinard just a quick ping: I fixed up the problem with the axes computations on some plots. Let me know if this looks good now. |
@mikolalysenko The logs coordinates show up as |
Alright, taking another look |
Alright, I think I got the picking issue fixed. Let me know if there is anything else out of the ordinary here. |
@mikolalysenko Looks great. Thanks! |
This PR implements connect gaps for 2D webgl plots. It requires the following upgrades to gl-line2d:
gl-vis/gl-line2d@42172ed
This should solve the following issue:
https://github.com/plotly/phoenix-integration/issues/44
A new test case (
gl2d_connect_gaps
) was added to the dashboard to verify that the feature is working:CC @bpostlethwaite @etpinard