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
First reported in plotly/plotly.R#1055
In our src code, we add a fallback to
ArrayBuffer.isViewhere, but @dfcreative 'scolor-parsedoes 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-parseto include anisViewfallback, this will fix this one case. But maybe instead we could add aArrayBuffer.isViewpolyfill to thetypedarray.min.jswe provide which will solve this problem for all our dependencies.By the way, does anyone know where
typedarray.min.jscomes from?cc @alexcjohnson @cpsievert @bcdunbar