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

The typed array polyfill we provide in dist/ does not polyfill ArrayBuffer.isView #1900

Closed
etpinard opened this issue Jul 19, 2017 · 11 comments
Labels
bug something broken

Comments

@etpinard
Copy link
Contributor

First reported in plotly/plotly.R#1055

In our src code, we add a fallback to ArrayBuffer.isView here, but @dfcreative 's color-parse does not. This lead to 3D and gl2d (and anything else using color-rgba) breaking in RStudio even with typed array polyfill we provide in dist/.

So, we could of course patch color-parse to include an isView fallback, this will fix this one case. But maybe instead we could add a ArrayBuffer.isView polyfill to the typedarray.min.js we provide which will solve this problem for all our dependencies.

By the way, does anyone know where typedarray.min.js comes from?

cc @alexcjohnson @cpsievert @bcdunbar

@etpinard etpinard added the bug something broken label Jul 19, 2017
@dy
Copy link
Contributor

dy commented Jul 19, 2017

@etpinard I can just check if ArrayBuffer has that method.

@etpinard
Copy link
Contributor Author

@etpinard I can just check if ArrayBuffer has that method.

Yeah, that would be great thanks 👍

@dy
Copy link
Contributor

dy commented Jul 19, 2017

@etpinard done colorjs/color-parse@4be59c5#diff-168726dbe96b3ce427e7fedce31bb0bcL164

@etpinard
Copy link
Contributor Author

Thanks @dfcreative I'll include your fix in the next patch release 1.29.1 (probably coming next Monday).

@etpinard
Copy link
Contributor Author

Oops. I forgot to include this in 1.29.1. My mistake.

@etpinard
Copy link
Contributor Author

@dfcreative would you mind publishing colorjs/color-parse@4be59c5#diff-168726dbe96b3ce427e7fedce31bb0bcL164 and making a PR here bumping color-rgba?

@dy dy mentioned this issue Jul 26, 2017
@dy
Copy link
Contributor

dy commented Jul 26, 2017

@etpinard here #1915

@etpinard
Copy link
Contributor Author

fixed by #1915 (verification made by @cpsievert )

@etpinard
Copy link
Contributor Author

Actually, I'll reopen this issue.

#1915 fixed the issue, but the typed array polyfill we provide in dist/ does not polyfill ArrayBuffer.isView still holds.

@jackparmer
Copy link
Contributor

jackparmer commented Sep 10, 2020

This issue has been tagged with NEEDS SPON$OR

A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.

What Sponsorship includes:

  • Completion of this feature to the Sponsor's satisfaction, in a manner coherent with the rest of the Plotly.js library and API
  • Tests for this feature
  • Long-term support (continued support of this feature in the latest version of Plotly.js)
  • Documentation at plotly.com/javascript
  • Possibility of integrating this feature with Plotly Graphing Libraries (Python, R, F#, Julia, MATLAB, etc)
  • Possibility of integrating this feature with Dash
  • Feature announcement on community.plotly.com with shout out to Sponsor (or can remain anonymous)
  • Gratification of advancing the world's most downloaded, interactive scientific graphing libraries (>50M downloads across supported languages)

Please include the link to this issue when contacting us to discuss.

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

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

No branches or pull requests

4 participants