summaryrefslogtreecommitdiff
path: root/views/script/schematic.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/script/schematic.js')
-rw-r--r--views/script/schematic.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/script/schematic.js b/views/script/schematic.js
index 016116a..6961806 100644
--- a/views/script/schematic.js
+++ b/views/script/schematic.js
@@ -308,6 +308,12 @@ Schematic.prototype.showbackground=function(){
}
}
}
+
+SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(toElement) {
+ return toElement.getScreenCTM().inverse().multiply(this.getScreenCTM());
+};
+
+
Schematic.prototype.parseMatrix=function(group){
var matrix={a:1,b:0,c:0,d:1,e:0,f:0};