diff options
Diffstat (limited to 'js/tools')
-rw-r--r-- | js/tools/PenTool.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js index 6aa5f3ab..cb2ea85a 100644 --- a/js/tools/PenTool.js +++ b/js/tools/PenTool.js | |||
@@ -378,7 +378,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
378 | if (this._penCanvas!==null) { | 378 | if (this._penCanvas!==null) { |
379 | //obtain the 2D translation of the canvas due to the Selection tool...assuming this is called in Configure | 379 | //obtain the 2D translation of the canvas due to the Selection tool...assuming this is called in Configure |
380 | var penCanvasLeft = parseInt(ElementMediator.getProperty(this._penCanvas, "left"));//parseFloat(DocumentControllerModule.DocumentController.GetElementStyle(this._penCanvas, "left")); | 380 | var penCanvasLeft = parseInt(ElementMediator.getProperty(this._penCanvas, "left"));//parseFloat(DocumentControllerModule.DocumentController.GetElementStyle(this._penCanvas, "left")); |
381 | var penCanvasTop = parseFloat(ElementMediator.getProperty(this._penCanvas, "top"));//parseFloat(DocumentControllerModule.DocumentController.GetElementStyle(this._penCanvas, "top")); | 381 | var penCanvasTop = parseInt(ElementMediator.getProperty(this._penCanvas, "top"));//parseFloat(DocumentControllerModule.DocumentController.GetElementStyle(this._penCanvas, "top")); |
382 | var penCanvasWidth = parseInt(ElementMediator.getProperty(this._penCanvas, "width"));//this._penCanvas.width; | 382 | var penCanvasWidth = parseInt(ElementMediator.getProperty(this._penCanvas, "width"));//this._penCanvas.width; |
383 | var penCanvasHeight = parseInt(ElementMediator.getProperty(this._penCanvas, "height"));//this._penCanvas.height; | 383 | var penCanvasHeight = parseInt(ElementMediator.getProperty(this._penCanvas, "height"));//this._penCanvas.height; |
384 | var penCanvasOldX = penCanvasLeft + 0.5 * penCanvasWidth; | 384 | var penCanvasOldX = penCanvasLeft + 0.5 * penCanvasWidth; |
@@ -390,7 +390,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
390 | //update the canvasX and canvasY parameters for this subpath and also translate the subpath points (since they're stored in stage world space) | 390 | //update the canvasX and canvasY parameters for this subpath and also translate the subpath points (since they're stored in stage world space) |
391 | this._selectedSubpath.setCanvasX(translateCanvasX + this._selectedSubpath.getCanvasX()); | 391 | this._selectedSubpath.setCanvasX(translateCanvasX + this._selectedSubpath.getCanvasX()); |
392 | this._selectedSubpath.setCanvasY(translateCanvasY + this._selectedSubpath.getCanvasY()); | 392 | this._selectedSubpath.setCanvasY(translateCanvasY + this._selectedSubpath.getCanvasY()); |
393 | this._selectedSubpath.translate(translateCanvasX, translateCanvasY, 0); | 393 | this._selectedSubpath.translateAnchors(translateCanvasX, translateCanvasY, 0); |
394 | this._selectedSubpath.createSamples(); //updates the bounding box | 394 | this._selectedSubpath.createSamples(); //updates the bounding box |
395 | } | 395 | } |
396 | } | 396 | } |