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

Scattergl transform fixes #2677

Merged
merged 6 commits into from
May 29, 2018
Merged

Scattergl transform fixes #2677

merged 6 commits into from
May 29, 2018

Conversation

etpinard
Copy link
Contributor

All transforms are broken on scattergl traces. Yikes!

Luckily it wasn't too hard to fix them. See c52fbe7 for more details. In the meantime, I also discovered two other bugs that made the transforms and point-selection mocks look (very) bad) using scattergl traces instead on scatter traces. This PR adds scattergl version of these mocks 🔒 ing down the behavior.

cc @alexcjohnson (I'll add a jasmine test tonight or tomorrow morning before 1.38.1)

etpinard added 4 commits May 28, 2018 18:07
- by mapping 'selectedpoints' input their post-transform values,
  using trace._indexToPoints
- by clearing 'dirty' flag after 1st of 2 _module.calc call,
  so that 2nd _module.calc does not append phony batches to
  scene render queue.
}
} else {
s = markerSizeFunc(optsIn.line.width);
s = optsIn.line.width / 2;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before this commit, gl2d_transforms looked like:

image

@@ -219,7 +219,7 @@ function convertMarkerSelection(trace, target) {
if(target.marker && target.marker.symbol) {
optsOut = convertMarkerStyle(Lib.extendFlat({}, optsIn, target.marker));
} else if(target.marker) {
if(target.marker.size) optsOut.sizes = target.marker.size;
if(target.marker.size) optsOut.sizes = target.marker.size / 2;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before this commit, gl2d_point-selection looked like:

image

@etpinard
Copy link
Contributor Author

Marking as reviewable.

@alexcjohnson
Copy link
Collaborator

Very nice! Great catches on the size and linewidth issues! 💃

@etpinard etpinard merged commit 5ccc83d into master May 29, 2018
@etpinard etpinard deleted the scattergl-transform-fixes branch May 29, 2018 15:13
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.

None yet

2 participants