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

Keep the size of gl2d markers constant when using different plotGlPixelRatio values #5093

Merged
merged 2 commits into from
Aug 21, 2020

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Aug 21, 2020

Redo #3637
Fixes #3246
now that regl-scatter2d v3.2.0 has a new option to keep the marker sizes constant.
cc: gl-vis/regl-scatter2d/pull/20

Demo: Before | After

@plotly/plotly_js

@alexcjohnson
Copy link
Collaborator

Looks great! Also, and perhaps this is the key test, the scattergl markers match scatter markers in size for any plotGlPixelRatio, as you can see from changing the type of one or more of the traces in your codepen to scatter.

Can we 🔒 this by increasing plotGlPixelRatio in one of our gl2d mocks?

@archmoj
Copy link
Contributor Author

archmoj commented Aug 21, 2020

Can we this by increasing plotGlPixelRatio in one of our gl2d mocks?

Good call. Done in e849912.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Fantastic! 💃

@archmoj archmoj merged commit 4ac68aa into master Aug 21, 2020
@archmoj archmoj deleted the fix3246-redo branch August 21, 2020 14:40
@archmoj archmoj mentioned this pull request Aug 21, 2020
10 tasks
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.

config option plotGlPixelRatio changes size of markers
2 participants