mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 01:39:53 +02:00
Remove getTransformToElement polyfill because it's fixed in dagre-d3
This commit is contained in:
@@ -36,9 +36,11 @@ var gitGraphRenderer = require('./diagrams/gitGraph/gitGraphRenderer')
|
|||||||
var gitGraphAst = require('./diagrams/gitGraph/gitGraphAst')
|
var gitGraphAst = require('./diagrams/gitGraph/gitGraphAst')
|
||||||
var d3 = require('./d3')
|
var d3 = require('./d3')
|
||||||
|
|
||||||
window.SVGElement.prototype.getTransformToElement = window.SVGElement.prototype.getTransformToElement || function (toElement) {
|
// https://github.com/cpettitt/dagre-d3/issues/202
|
||||||
return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM())
|
// window.SVGElement.prototype.getTransformToElement = window.SVGElement.prototype.getTransformToElement || function (toElement) {
|
||||||
}
|
// return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM())
|
||||||
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ## Configuration
|
* ## Configuration
|
||||||
* These are the default options which can be overridden with the initialization call as in the example below:
|
* These are the default options which can be overridden with the initialization call as in the example below:
|
||||||
|
Reference in New Issue
Block a user