diff --git a/registration-system/view/signups/game1/js/svgUtils.js b/registration-system/view/signups/game1/js/svgUtils.js index ca3985874b57f35049b3c4fc1fd8d488a93b50fa..9cbf4951f135eb5c779744fc3bfb9e0aac8f5130 100644 --- a/registration-system/view/signups/game1/js/svgUtils.js +++ b/registration-system/view/signups/game1/js/svgUtils.js @@ -1,3 +1,9 @@ +// 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) { return "translate("+x+", "+y+")"; }