Skip to content

Fix regl-scatter2d for IE #2863

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

Merged
merged 4 commits into from
Aug 16, 2018
Merged

Fix regl-scatter2d for IE #2863

merged 4 commits into from
Aug 16, 2018

Conversation

dy
Copy link
Contributor

@dy dy commented Aug 1, 2018

This fixes #2802.

@etpinard
Copy link
Contributor

etpinard commented Aug 1, 2018

🎉 DIMA IS BACK 🎉

@dy
Copy link
Contributor Author

dy commented Aug 1, 2018

🙇‍♂️ sorry for being off for that long. So many juicy things for plotly to accomplish.

@etpinard
Copy link
Contributor

etpinard commented Aug 1, 2018

no problem @dy !

@etpinard
Copy link
Contributor

etpinard commented Aug 1, 2018

Just curious @dy , what versions of npm are you using? I'm on v5.8.0. This might explain why the package-lock diff is a mess.

@dy
Copy link
Contributor Author

dy commented Aug 1, 2018

Mine is 6.1.0, yes, that may be the culprit. Should we bump it to the latest 6.2.0?

@etpinard
Copy link
Contributor

etpinard commented Aug 1, 2018

Ok thanks @dy, good to know. Before bumping we would have to check it there's a CircleCI container that runs npm 6.2.0. We should run the same npm version locally and on CI.

As Node 10 ships with npm6 and becomes LTS in October, I'd vote sticking to npm5 until then.

I can re-generate the package-lock, if you prefer working with npm6

@dy
Copy link
Contributor Author

dy commented Aug 1, 2018

Thanks! I can downgrade it for the time too.

@etpinard etpinard added bug something broken status: reviewable labels Aug 1, 2018
@etpinard
Copy link
Contributor

etpinard commented Aug 1, 2018

The relevant regl-scatter2d commit is -> gl-vis/regl-scatter2d@30d3874

@etpinard etpinard added this to the v1.40.0 milestone Aug 2, 2018
@@ -41,7 +41,7 @@
"resolved": "https://registry.npmjs.org/@etpinard/gl-text/-/gl-text-1.1.6.tgz",
"integrity": "sha512-sN007FwlqdSKJt2/cnGZu3jsAN7G4R/wxk/D6ZivPuQtrwJ42B68iuAqysJPgFepUTAsDRtGAOd1U7tZxfDJwA==",
"requires": {
"color-normalize": "1.1.0",
"color-normalize": "1.3.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

@dy I just noticed that we're using multiple versions of color-normalize in our bundle:

image

Copy link
Contributor

Choose a reason for hiding this comment

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

similarly for color-rgba:

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Can regl-error2d, regl-line2d and regl-scatter2d use [email protected]?

@@ -100,10 +100,10 @@
"ndarray-ops": "^1.2.2",
"point-cluster": "^3.1.4",
"polybooljs": "^1.2.0",
"regl": "^1.3.6",
"regl": "^1.3.7",
Copy link
Contributor

Choose a reason for hiding this comment

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

only this regl-project/regl#496 is new in 1.3.7 which only affects logging styles which should not have any effects for plotly.js

"gl-streamtube3d": "^1.0.0",
"@etpinard/gl-text": "^1.1.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

@dy is it ok to use gl-text now?

@etpinard
Copy link
Contributor

etpinard commented Aug 2, 2018

@dy so are all marker.symbol values now supported in IE11?

The gl2d_marker_symbols mock is looking pretty impressive, so I guess the answer is yes.

image

but it does spit out

image

in the console on browserstack.

@dy
Copy link
Contributor Author

dy commented Aug 2, 2018

Yes, I noticed that error. That seems to be regl init error, needs investigation.

@etpinard
Copy link
Contributor

etpinard commented Aug 10, 2018

Any updates of this @dy?. Would be nice to get this in 1.40.0 early next week.

@dy dy self-assigned this Aug 14, 2018
@etpinard
Copy link
Contributor

ping @dy - any updates?

@etpinard
Copy link
Contributor

@alexcjohnson I'd vote for merging this thing for 1.40.0 even though #2863 (comment) didn't get addressed yet. Marker symbols in IE11 and Edge appear fixed, or at least they're a lot better than before. #2802 would remain open for the time being.

@alexcjohnson
Copy link
Collaborator

As long as those console errors don't break other pre-existing functionality then sure, lets merge. 💃

@etpinard
Copy link
Contributor

Oops. Looks this PR didn't fix things in Edge:

image

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.

IE11: scattergl: problems with marker symbols
3 participants