Merged
Conversation
Some packages in d3 only expose es6 compiled code. We have to remove this to correctly compile the lib for IE11
Fix crosshair use of calc in transform. Fix legend wrapping and alignment.
Codecov Report
@@ Coverage Diff @@
## master #207 +/- ##
======================================
Coverage 97.4% 97.4%
======================================
Files 35 35
Lines 2120 2120
Branches 315 323 +8
======================================
Hits 2065 2065
Misses 48 48
Partials 7 7
Continue to review full report at Codecov.
|
Collaborator
Author
|
🎉 This PR is included in version 4.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fix the following compatibility issues with IE11:
d3-scaleandd3-arrayfrom version 2 are compiled as ES6 only. To fix that I've downgraded the version to the last ES5 one as described in d3 repos.calcinside a transform function. I've converted the calc into multiple transform of the same type: from this:translateX(calc(100% -50px))totranslateX(100%) translateX(-50px);Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.src/index.ts(and stories only import from../srcexcept for test data & storybook)