diff options
author | Nivesh Rajbhandari | 2012-02-22 11:58:45 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-22 11:58:45 -0800 |
commit | 75bca514358ed90b8b4274bafed9422c82695776 (patch) | |
tree | b956398809f7bf492a0eedea4993fad8f08a4f89 /js/tools | |
parent | 50bb05efbafc9a80f069dfde32988e5cd6826865 (diff) | |
download | ninja-75bca514358ed90b8b4274bafed9422c82695776.tar.gz |
Integrating Zoom tool fixes.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/RotateStage3DTool.js | 7 | ||||
-rwxr-xr-x | js/tools/ZoomTool.js | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/js/tools/RotateStage3DTool.js b/js/tools/RotateStage3DTool.js index ca2a8bf3..2b312e53 100755 --- a/js/tools/RotateStage3DTool.js +++ b/js/tools/RotateStage3DTool.js | |||
@@ -131,9 +131,14 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, { | |||
131 | var iMat = Matrix.I(4); | 131 | var iMat = Matrix.I(4); |
132 | 132 | ||
133 | ElementsMediator.setMatrix(this.application.ninja.currentDocument.documentRoot, iMat, false); | 133 | ElementsMediator.setMatrix(this.application.ninja.currentDocument.documentRoot, iMat, false); |
134 | |||
135 | this.application.ninja.currentDocument.documentRoot.elementModel.props3D.m_transformCtr = null; | 134 | this.application.ninja.currentDocument.documentRoot.elementModel.props3D.m_transformCtr = null; |
136 | 135 | ||
136 | // let the document and stage manager know about the zoom change | ||
137 | this.application.ninja.stage._firstDraw = true; | ||
138 | this.application.ninja.documentBar.zoomFactor = 100; | ||
139 | this.application.ninja.currentDocument.iframe.style.zoom = 1.0; | ||
140 | this.application.ninja.stage._firstDraw = false; | ||
141 | |||
137 | // TODO - Any updates to the stage should redraw stage's children. Move this to mediator? | 142 | // TODO - Any updates to the stage should redraw stage's children. Move this to mediator? |
138 | this.application.ninja.stage.updatedStage = true; | 143 | this.application.ninja.stage.updatedStage = true; |
139 | 144 | ||
diff --git a/js/tools/ZoomTool.js b/js/tools/ZoomTool.js index 4b6705c1..93caf984 100755 --- a/js/tools/ZoomTool.js +++ b/js/tools/ZoomTool.js | |||
@@ -146,7 +146,7 @@ exports.ZoomTool = Montage.create(DrawingTool, { | |||
146 | var dx = Math.abs(point.x - this.downPoint.x), | 146 | var dx = Math.abs(point.x - this.downPoint.x), |
147 | dy = Math.abs(point.y - this.downPoint.y); | 147 | dy = Math.abs(point.y - this.downPoint.y); |
148 | 148 | ||
149 | if ((dx >= 4) || (dy >= 4)) | 149 | if ((dx >= 10) || (dy >= 10)) |
150 | { | 150 | { |
151 | // Drawing the Marquee | 151 | // Drawing the Marquee |
152 | if(this.options.selectedElement==="zoomInTool") | 152 | if(this.options.selectedElement==="zoomInTool") |