org.vectomatic.dom.svg.impl.getTransformToElement.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lib-gwt-svg Show documentation
Show all versions of lib-gwt-svg Show documentation
A GWT library to access the SVG functionalities of web browsers
// getTransformToElement() polyfill
// courtesy of http://jointjs.com/blog/get-transform-to-element-polyfill.html
(function() { "use strict";
SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
}());
© 2015 - 2024 Weber Informatics LLC | Privacy Policy