-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
The typed array polyfill we provide in dist/ does not polyfill ArrayBuffer.isView #1900
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
Comments
@etpinard I can just check if ArrayBuffer has that method. |
Yeah, that would be great thanks 👍 |
Thanks @dfcreative I'll include your fix in the next patch release |
Oops. I forgot to include this in |
@dfcreative would you mind publishing colorjs/color-parse@4be59c5#diff-168726dbe96b3ce427e7fedce31bb0bcL164 and making a PR here bumping |
fixed by #1915 (verification made by @cpsievert ) |
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. |
This issue has been tagged with 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:
Please include the link to this issue when contacting us to discuss. |
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 |
First reported in plotly/plotly.R#1055
In our src code, we add a fallback to
ArrayBuffer.isView
here, but @dfcreative 'scolor-parse
does not. This lead to 3D and gl2d (and anything else usingcolor-rgba
) breaking in RStudio even with typed array polyfill we provide indist/
.So, we could of course patch
color-parse
to include anisView
fallback, this will fix this one case. But maybe instead we could add aArrayBuffer.isView
polyfill to thetypedarray.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
The text was updated successfully, but these errors were encountered: