From 538d2c2b83d57e5408ecae57f7a9343ddea59b2d Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Sun, 16 Apr 2017 09:30:04 +0800 Subject: [PATCH] Remove getTransformToElement polyfill because it's fixed in dagre-d3 --- src/mermaidAPI.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mermaidAPI.js b/src/mermaidAPI.js index 14fd18671..c4ebb9218 100644 --- a/src/mermaidAPI.js +++ b/src/mermaidAPI.js @@ -36,9 +36,11 @@ var gitGraphRenderer = require('./diagrams/gitGraph/gitGraphRenderer') var gitGraphAst = require('./diagrams/gitGraph/gitGraphAst') var d3 = require('./d3') -window.SVGElement.prototype.getTransformToElement = window.SVGElement.prototype.getTransformToElement || function (toElement) { - return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM()) -} +// https://github.com/cpettitt/dagre-d3/issues/202 +// window.SVGElement.prototype.getTransformToElement = window.SVGElement.prototype.getTransformToElement || function (toElement) { +// return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM()) +// } + /** * ## Configuration * These are the default options which can be overridden with the initialization call as in the example below: