aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D/view-utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/3D/view-utils.js')
-rwxr-xr-xjs/helper-classes/3D/view-utils.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/js/helper-classes/3D/view-utils.js b/js/helper-classes/3D/view-utils.js
index a2fac34f..c1f59397 100755
--- a/js/helper-classes/3D/view-utils.js
+++ b/js/helper-classes/3D/view-utils.js
@@ -580,7 +580,8 @@ exports.ViewUtils = Montage.create(Component, {
580 if (elt.style.height) h = MathUtils.styleToNumber(elt.style.height); 580 if (elt.style.height) h = MathUtils.styleToNumber(elt.style.height);
581 } 581 }
582 582
583 if (elt instanceof SVGSVGElement) { 583// if (elt instanceof SVGSVGElement) {
584 if(elt.nodeName.toLowerCase() === "svg") {
584 if(w instanceof SVGAnimatedLength) 585 if(w instanceof SVGAnimatedLength)
585 w = w.animVal.value; 586 w = w.animVal.value;
586 if(h instanceof SVGAnimatedLength) 587 if(h instanceof SVGAnimatedLength)
@@ -1226,6 +1227,14 @@ exports.ViewUtils = Montage.create(Component, {
1226 } 1227 }
1227 }, 1228 },
1228 1229
1230 getCurrentDocument:
1231 {
1232 value: function()
1233 {
1234 return snapManagerModule.SnapManager.application.ninja.currentDocument;
1235 }
1236 },
1237
1229 setStageZoom: { 1238 setStageZoom: {
1230 value:function( globalPt, zoomFactor ) { 1239 value:function( globalPt, zoomFactor ) {
1231 var localPt; 1240 var localPt;