-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Scattermapbox BADNUM + [email protected] #1543
Conversation
- to improve performance in check downstream - add calc tests to scattergeo_test.js
- to determine if calcdata item should be skipped
- 🔪 scattermapbox/calc.js, reuse scattergeo/calc.js instead! - this makes calcdata items 1-1 with fullData coords (as all our other trace types) - Use identity function type in properties (available since 0.26.0) to replace brutal hack with `stops` 🎉
- no need for it anymore.
if(!Array.isArray(cd) || !cd[0]) { | ||
cd = [{x: false, y: false, placeholder: true}]; | ||
cd = [{x: false, y: false}]; |
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.
should we turn this into [{x: BADNUM, y: BADNUM}]
or are we not quite ready for that yet?
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.
Good call. Let me try that!
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.
This looks great! Really nice simplification. Lets get the |
Replaced by #1564 |
to be merged in #1538 - fixing the test failures there.
In brief, this PR:
scattermapbox/calc.js
reusescattergeo/calc.js
♻️placeholder
mapbox-gl
to^0.33.1
. Among a few interesting performance improvements, this new version allows use theidentity
property function which 🔪 the hackystops
logic inscattermapbox/convert.js
🎉Important
[email protected]
does not get along with thenw.js
version we use in our image test container (same as on the plot.ly image server) - see here for more details. This is probably a good time to bump thenw.js
version. The latestnw.js
version is0.21.4
while we're still using0.12
cc @bpostlethwaiteNote that I couldn't update
mapbox-gl
to their latest version (v0.34.0
) because that version is currently broken in browserified bundles and that patch hasn't been published yet.