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

Add redrawReglTraces subroutine #3067

Merged
merged 7 commits into from
Oct 2, 2018
Merged

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Oct 2, 2018

resolves #2562, to be merged into #3057 to addressed @alexcjohnson 's #3057 (comment)

In brief, this PR makes regl-based traces coexist better. All their "draw" calls are done in one single subroutine. This preserves ordering and makes it easier to redraw the canvas on drag and selections. For now on, regl-based traces (excluding parcoords) only update their buffers during _module.plot and do not do any "drawing".

cc @dy @archmoj @antoinerg

- which (re)-draw scattergl, scatterpolargl, splom traces as well as
  splom regl grid line in one go, always in the correct order
- packaging these gl draw calls in one subroutine is especially
  useful for drag and selections, where buffers of targeted traces/scene
  are updated, but *all* traces need to be redraw following clearGlCanvases
... no need for this now that we have redrawReglTraces
- no longer need _module.styleOnSelect!
- selections on overlaid subplots now work!
- remove clearViewport (for now), we could bring it back
  again to optimize selections on disjoint subplots.
@etpinard etpinard added bug something broken type: maintenance labels Oct 2, 2018
@etpinard etpinard added this to the v1.42.0 milestone Oct 2, 2018
@etpinard etpinard mentioned this pull request Oct 2, 2018
@alexcjohnson
Copy link
Collaborator

Beautiful cleanup @etpinard - dunno if you want someone better versed in the regl code to weigh in, but from my standpoint this is ready to 💃 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants