aboutsummaryrefslogtreecommitdiff
path: root/js/tools/OvalTool.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-26 10:41:20 -0700
committerNivesh Rajbhandari2012-06-26 10:41:20 -0700
commit2f0a29c2cc9fd399e392abfd6770caffb99fdbb5 (patch)
tree7634b0ae2dffd95ac0e7539665ac017167e0a17b /js/tools/OvalTool.js
parent60692e2e429d3265113c89fc53ed80ccd6bbcc2e (diff)
downloadninja-2f0a29c2cc9fd399e392abfd6770caffb99fdbb5.tar.gz
Support pre-flighting of gradients for shape tools - rect, line, oval, brush and pen. Note that WebGL shapes are not supported yet.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools/OvalTool.js')
-rwxr-xr-xjs/tools/OvalTool.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/tools/OvalTool.js b/js/tools/OvalTool.js
index ce812398..33bf763d 100755
--- a/js/tools/OvalTool.js
+++ b/js/tools/OvalTool.js
@@ -94,6 +94,9 @@ exports.OvalTool = Montage.create(ShapeTool, {
94 // TODO - update the shape's info only. shapeModel will likely need an array of shapes. 94 // TODO - update the shape's info only. shapeModel will likely need an array of shapes.
95 } 95 }
96 96
97 // TODO - This needs to be moved into geom obj's init routine instead of here
98 this.setColor(this.options.stroke, this.options.fill, canvas, "ovalTool");
99
97 if(canvas.elementModel.isShape) 100 if(canvas.elementModel.isShape)
98 { 101 {
99 this.application.ninja.selectionController.selectElement(canvas); 102 this.application.ninja.selectionController.selectElement(canvas);