Created
January 9, 2018 21:57
-
-
Save p0rsche/bf9f43c4716cff3f1e6ad3e587e829aa to your computer and use it in GitHub Desktop.
getTransformToElement polyfill
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
SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) { | |
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi from https://stackoverflow.com/a/28855697
polyfill still works