Skip to content
Snippets Groups Projects
Commit 433c0d99 authored by Manuel Herrmann's avatar Manuel Herrmann
Browse files

Fixed issue #43. Chrome removed getTransformToElement. See...

Fixed issue #43. Chrome removed getTransformToElement. See https://github.com/cpettitt/dagre-d3/issues/202
parent 3d68f70c
No related branches found
No related tags found
No related merge requests found
// Chrome removed getTranfformToElement https://github.com/cpettitt/dagre-d3/issues/202
SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
};
function translate(x, y) { function translate(x, y) {
return "translate("+x+", "+y+")"; return "translate("+x+", "+y+")";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment