diff --git a/registration-system/view/signups/game1/js/svgUtils.js b/registration-system/view/signups/game1/js/svgUtils.js index ca39858..9cbf495 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+")"; }