Remove getTransformToElement polyfill because it's fixed in dagre-d3

This commit is contained in:
Tyler Long
2017-04-16 09:30:04 +08:00
parent 736d57f3f2
commit 538d2c2b83

View File

@@ -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: