Add workaround for plotly.js for a wont-fix bug in Firefox
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=756985
This commit is contained in:
parent
47306b8b17
commit
b3d99d92c9
3 changed files with 81 additions and 1 deletions
12
plotly-workaround-for-firefox/README
Normal file
12
plotly-workaround-for-firefox/README
Normal file
|
@ -0,0 +1,12 @@
|
|||
This is the official plotly.min.js of the plotly.js
|
||||
library version 1.58.5 with the following fix:
|
||||
|
||||
return (
|
||||
// Workaround for a bug in firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=756985
|
||||
t.getCTM() === null ? 0 : t.getCTM().e
|
||||
)+t.getBBox().width
|
||||
|
||||
This fix has been incorporated directly into the
|
||||
minified build, as it doesn't make a lot of sense
|
||||
to file a proper pull request to upstream for such
|
||||
an old version of the library.
|
68
plotly-workaround-for-firefox/plotly.min.js
vendored
Normal file
68
plotly-workaround-for-firefox/plotly.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -55,7 +55,7 @@ module.exports = {
|
|||
to: './vendor/webcomponentsjs/custom-elements-es5-adapter.js',
|
||||
},
|
||||
{
|
||||
from: 'node_modules/plotly.js/dist/plotly.min.js',
|
||||
from: 'plotly-workaround-for-firefox/plotly.min.js',
|
||||
to: './vendor/plotly.js/plotly.min.js',
|
||||
},
|
||||
]),
|
||||
|
|
Loading…
Reference in a new issue