aboutsummaryrefslogtreecommitdiff
path: root/js/tools/PenTool.js
Commit message (Collapse)AuthorAge
* jshint cleanup on the tools directoryValerio Virgillito2012-07-24
| | | | Signed-off-by: Valerio Virgillito <valerio@motorola.com>
* BSD LicenseKris Kowal2012-07-09
|
* Remove trailing spacesKris Kowal2012-07-06
|
* Expand tabsKris Kowal2012-07-06
|
* Update copyright boilerplateKris Kowal2012-07-06
|
* Support pre-flighting of gradients for shape tools - rect, line, oval, brush ↵Nivesh Rajbhandari2012-06-26
| | | | | | and pen. Note that WebGL shapes are not supported yet. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
* fix bug #1718 (trying to delete a non-existent canvas)Pushkar Joshi2012-06-13
|
* correct mouse cursor on mousemovePushkar Joshi2012-06-12
|
* allow the addition of anchor points to a closed path (the mouse move cursor ↵Pushkar Joshi2012-06-12
| | | | still needs to be updated)
* Merge branch 'refs/heads/master' into element-model-fixesValerio Virgillito2012-06-06
|\ | | | | | | | | | | | | | | Conflicts: js/document/models/html.js js/document/views/design.js Signed-off-by: Valerio Virgillito <valerio@motorola.com>
| * handle switching between multiple documents for Pen tool by having its own ↵Pushkar Joshi2012-06-05
| | | | | | | | selection change handler
| * change the behavior of what happens when alt is pressed while moving anchor ↵Pushkar Joshi2012-05-31
| | | | | | | | handles (the behavior now matches the design)
| * somewhat working version of the canvas runtime for pen paths (the runtime ↵Pushkar Joshi2012-05-31
| | | | | | | | renders properly if we go through debugger)...also removed calls to getStageElement from pen tool
| * working version of the pen plus subtoolPushkar Joshi2012-05-30
| |
| * working version of Pen minus subtoolPushkar Joshi2012-05-30
| |
| * More consistent local and global mouse coords which solves a bug with the ↵Pushkar Joshi2012-05-29
| | | | | | | | Pen minus subtool not removing 1 anchor paths
| * allow changes in the pen subtool in options to be seen by the pen tool code ↵Pushkar Joshi2012-05-22
| | | | | | | | | | | | (can now select the pen plus, pen minus subtools) AND add keyboard shortcut for brush tool
| * Merge branch 'master' into pentoolPushkar Joshi2012-05-21
| |\
| * | handle anchor point deletion correctly (does not yet fully work for ↵Pushkar Joshi2012-05-11
| | | | | | | | | | | | PEN-MINUS subtool)
| * | code cleanup and starting the subtool functionalityPushkar Joshi2012-05-11
| | |
| * | Merge branch 'master' into pentoolPushkar Joshi2012-05-07
| |\ \
| * | | handle delete more correctly than before (selected subpaths are ↵Pushkar Joshi2012-05-04
| | | | | | | | | | | | | | | | deleted)....this is buggy when the second anchor of a two-anchor subpath is deleted (since the first anchor needs to be converted back into stage world coords)
| * | | flip the action of the alt key when modifying anchor handles (this ↵Pushkar Joshi2012-05-02
| | | | | | | | | | | | | | | | essentially forces the need for a keyboard...must be addressed by a fix later on)
| * | | Fix for 1524 Pen: Unable to add anchor to a closed pathPushkar Joshi2012-04-27
| | | | | | | | | | | | | | | | ---behavior is unchanged, but the realtime feedback for the tool (i.e. mouse cursor) will correctly reflect that a click after closing a path will start a new path, not add to that path
| * | | add event handlers for open, close, and switch document to pen tool, fixes:Pushkar Joshi2012-04-27
| | | | | | | | | | | | | | | | 1532 Pen: Anchor points get carried over to the new document
| * | | Fix for 1525 Pen: "Uncaught RangeError: Maximum call stack size exceeded".Pushkar Joshi2012-04-27
| | | | | | | | | | | | | | | | (check if the second mouse click actually selects the existing first anchor point)
* | | | removing all model creators.Valerio Virgillito2012-06-05
| | | | | | | | | | | | | | | | | | | | | | | | The elementModel is now a getter that will create a new model when needed. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
* | | | Fixed bad reference to stage element in pen tool.Nivesh Rajbhandari2012-05-30
| |_|/ |/| | | | | | | | Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
* | | put color chips in the inkbottle and fill toolJohn Mayhew2012-05-10
| | |
* | | Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into ↵John Mayhew2012-05-07
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WorkingBranch Conflicts: js/components/layout/tools-list.reel/tools-list.html js/components/layout/tools-properties.reel/tools-properties.html js/components/tools-properties/brush-properties.reel/brush-properties.html js/components/tools-properties/fill-properties.reel/fill-properties.html js/components/tools-properties/pen-properties.reel/pen-properties.html js/components/tools-properties/pencil-properties.reel/pencil-properties.html js/components/tools-properties/selection-properties.reel/selection-properties.html js/components/tools-properties/shape-properties.reel/shape-properties.html js/components/tools-properties/tag-properties.reel/tag-properties.html js/components/tools-properties/text-properties.reel/text-properties.html
| * | Refactor creating elements. Removed makeNJElement and separated the model ↵Valerio Virgillito2012-05-03
| |/ | | | | | | | | | | creation Signed-off-by: Valerio Virgillito <valerio@motorola.com>
* / First round of moving color chips into the sub tools. Shape and Pen tool now ↵John Mayhew2012-05-03
|/ | | | have chips in the sub tool bar. Still need to complete adding chips to the Brush tool and finalizing the subtool bar layout to our spec for all of the subtools.
* re-compute and store the center of the subpath in local coordinates upon ↵Pushkar Joshi2012-04-24
| | | | file open
* allow the addition of the pen tool to the timelinePushkar Joshi2012-04-23
|
* get the canvas plane matrix before multiplying it with the translation due ↵Pushkar Joshi2012-04-19
| | | | to shift in center of rotation
* correctly maintain canvas position when drawing subpaths off the XY plane ↵Pushkar Joshi2012-04-19
| | | | (was a bug with starting drawing in those planes)
* for subpaths that have not been initialized with a canvas yet (i.e. no local ↵Pushkar Joshi2012-04-19
| | | | coordinates), use stage world mouse positions to translate the anchor points while dragging
* store the canvas center (in local space) per each subpath, instead of ↵Pushkar Joshi2012-04-19
| | | | tracking it by the pen tool. This fixes the bug where the canvas transform was incorrectly applied when the stroke width was changed
* turn off snapping for the pen tool (with an option to turn it back on if we ↵Pushkar Joshi2012-04-19
| | | | decide to, later)
* fix a bug with closing the subpathPushkar Joshi2012-04-18
|
* re-enable dragging and editing of anchor point handles for bezier path ↵Pushkar Joshi2012-04-18
| | | | editing in 3D
* compute the translation to new center of bounding of the subpath --- this ↵Pushkar Joshi2012-04-18
| | | | preserves the correct transformation applied to the subpath. This is a good snapshot of the polyline drawing in 3D (with some minor bugs).
* allow drawing polylines in YZ and XZ planes as well as XY. In those planes, ↵Pushkar Joshi2012-04-18
| | | | still have bug with shift when the bbox of the path grows (due to missing translation)
* Fairly stable version of polyline drawing code that works for paths on XY, ↵Pushkar Joshi2012-04-17
| | | | | | YZ, XZ planes. Current bugs: if the new point increases the bbox of the canvas, the entire canvas is shifted (due to inconsistency with center of rotation) AND the first two points added to planes other than XY have incorrect local coordinates (due to missing local coordinates)
* took out bad merge line and use different function for converting points ↵Pushkar Joshi2012-04-17
| | | | from local to global coords (the latter should be a temporary change as I will significantly change this)
* Merge branch 'master' into pentoolPushkar Joshi2012-04-17
|\ | | | | | | | | Conflicts: js/tools/PenTool.js
| * -webkit-transform-style needs to be set to preserve-3d for shapes regardless ↵Nivesh Rajbhandari2012-04-05
| | | | | | | | | | | | of whether they are 2d shapes or WebGL shapes. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
| * Removing fill, stroke, fillMaterial and strokeMaterial from the shapeModel ↵Nivesh Rajbhandari2012-04-05
| | | | | | | | | | | | cache because they can easily get out of sync with the actual colors and materials. Instead, we will always query the object for these values. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
| * Merge branch 'refs/heads/ToolFixes' into WebGLMaterialsNivesh Rajbhandari2012-04-04
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: js/document/templates/montage-html/default_html.css js/mediators/element-mediator.js js/panels/properties.reel/properties.js js/tools/BrushTool.js js/tools/LineTool.js js/tools/PenTool.js js/tools/SelectionTool.js js/tools/ShapeTool.js js/tools/TranslateObject3DTool.js Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
| * | WebGL needs to have 3d styles to render.Nivesh Rajbhandari2012-03-22
| | | | | | | | | | | | Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>