aboutsummaryrefslogtreecommitdiff
path: root/js/tools/BrushTool.js
Commit message (Collapse)AuthorAge
* Fix Brush tool not broadcasting elementAdded eventJonathan Duran2012-04-23
| | | | Signed-off-by: Jonathan Duran <jduran@motorola.com>
* -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>
| * Squashed commit of Preparing for the montage undo-manager: Architecture changesValerio Virgillito2012-04-04
| | | | | | | | | | | | | | | | | | Reworked the add and remove elements into 1 function which can take 1 or more elements. Removed the _element from the selection array Many other changes related to those 2 changes Undo/Redo shortcuts are now using montage undo/redo manager. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
| * correctly update the brush stroke canvas size and position when the stroke ↵Pushkar Joshi2012-03-23
| | | | | | | | size is changed (does not yet work when smoothing is applied) AND select the newly created brush stroke by default
| * Almost working version of brush tool that uses only local coordinates to ↵Pushkar Joshi2012-03-23
| | | | | | | | store the brush stroke points. Current version does not yet update the width and height of the brush stroke canvas upon changing the brush stroke through the PI. Also, current version does not obtain 3D position of points properly from the drawing tool base (see BrushTool _getUnsnappedPosition)
| * revert to using the angle without flipping its sign...fixing some minor bugs ↵Pushkar Joshi2012-03-20
| | | | | | | | | | | | and code cleanup GOOD status before doing 3D unprojection step
| * draw the brush stroke in realtimePushkar Joshi2012-03-19
| |
| * update values in the PI from values of the selected brush stroke or pen tool ↵Pushkar Joshi2012-03-15
| | | | | | | | path
| * PI for pen and brush strokesPushkar Joshi2012-03-14
| |
| * Add a smoothing amount parameter, and hide options based on checkboxesPushkar Joshi2012-03-13
| |
* | WebGL needs to have 3d styles to render.Nivesh Rajbhandari2012-03-22
|/ | | | Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
* bug fixes for spline interpolationPushkar Joshi2012-03-12
| | | | | | | AND Laplacian smoothing for denoising AND code cleanup (removing blocks of commented code)
* brush stroke options for calligraphic brush stylePushkar Joshi2012-03-08
|
* implement stroke hardness such that it is percentage of the stroke width ↵Pushkar Joshi2012-03-07
| | | | | | | that's fully the color of the brush AND add a smoothing flag for the brush options
* Merge branch 'master' into brushtoolPushkar Joshi2012-03-06
|\
| * Squashed commit of preload-fix into MasterValerio Virgillito2012-03-06
| | | | | | | | | | | | | | - Requiring all the previously pre-loaded files - RDGE, Codemirror and gl-matrix are not included via a script tag. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
* | Catmull-Rom spline sampling for the brush stroke, and options for stroke ↵Pushkar Joshi2012-03-02
| | | | | | | | size, stroke hardness and both stroke colors (left and right --- temporarily using the stroke and fill colors respectively)
* | first attempt at rendering the brush stroke as a collection of polylines ↵Pushkar Joshi2012-03-01
|/ | | | (number of polylines equals the stroke width)
* changed the registration point of the brush tool icon andPushkar Joshi2012-02-29
| | | | added a temporary check to prevent extremely long brush strokes
* resample the brush stroke so we don't have gaps if the path is drawn rapidly,Pushkar Joshi2012-02-29
| | | | | | | and, allow to change the stroke color, and, more efficient stroke rendering by drawing translated radial gradients (instead of creating new gradients for each stroke sample)
* Merge branch 'pentool' into brushtoolPushkar Joshi2012-02-24
|\ | | | | | | | | | | Conflicts: imports/codemirror/mode/scheme/scheme.js js/tools/BrushTool.js
| * Adding a data-RDGE-id attribute to each canvas to save/load canvas dataValerio Virgillito2012-02-16
| | | | | | | | Signed-off-by: Valerio Virgillito <valerio@motorola.com>
| * Merged old FileIOJose Antonio Marquez2012-01-27
| |
* | first phase of simple resampling to prevent tiny segmentsPushkar Joshi2012-02-09
|/
* First commit of Ninja to ninja-internalPierre Frisch2012-01-27
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>