Fix for issue #281, support for Chrome v 48

This commit is contained in:
knsv
2016-01-25 18:59:03 +01:00
parent d56af022c1
commit f005c72669
11 changed files with 87 additions and 32 deletions

View File

@@ -33,6 +33,9 @@ var classRenderer = require('./diagrams/classDiagram/classRenderer');
var classDb = require('./diagrams/classDiagram/classDb');
var d3 = require('./d3');
SVGElement.prototype.getTransformToElement = 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: