diff --git a/src/ui/Component.js b/src/ui/Component.js index b712ef9d..e94068e5 100644 --- a/src/ui/Component.js +++ b/src/ui/Component.js @@ -14,6 +14,10 @@ * All rights reserved. */ + /** + * @name Component + * @class + */ var Component = this.Component = Base.extend(Callback, /** @lends Component# */{ _events: [ 'onChange', 'onClick' ], diff --git a/src/ui/KeyEvent.js b/src/ui/KeyEvent.js index 563d0a46..3f43d72e 100644 --- a/src/ui/KeyEvent.js +++ b/src/ui/KeyEvent.js @@ -17,10 +17,10 @@ /** * @name KeyEvent * - * @class KeyEvent The KeyEvent object is received by the {@link Tool}'s - * keyboard handlers {@link Tool#onKeyDown}, {@link Tool#onKeyUp}, - * The KeyEvent object is the only parameter passed to these functions - * and contains information about the keyboard event. + * @class The KeyEvent object is received by the {@link Tool}'s keyboard + * handlers {@link Tool#onKeyDown}, {@link Tool#onKeyUp}. The KeyEvent object is + * the only parameter passed to these functions and contains information about + * the keyboard event. * * @extends Event */ diff --git a/src/ui/MouseEvent.js b/src/ui/MouseEvent.js index a108f28a..0d49e265 100644 --- a/src/ui/MouseEvent.js +++ b/src/ui/MouseEvent.js @@ -17,8 +17,8 @@ /** * @name MouseEvent * - * @class MouseEvent The MouseEvent object is received by the {@link Item}'s - * mouse event handlers {@link Item#onMouseDown}, {@link Item#onMouseDrag}, + * @class The MouseEvent object is received by the {@link Item}'s mouse event + * handlers {@link Item#onMouseDown}, {@link Item#onMouseDrag}, * {@link Item#onMouseMove}, {@link Item#onMouseUp}, {@link Item#onClick}, * {@link Item#onDoubleClick}, {@link Item#onMouseEnter} and * {@link Item#onMouseLeave}. The MouseEvent object is the only parameter passed diff --git a/src/ui/Palette.js b/src/ui/Palette.js index 7ab0b1d9..42113df0 100644 --- a/src/ui/Palette.js +++ b/src/ui/Palette.js @@ -14,6 +14,10 @@ * All rights reserved. */ + /** + * @name Palette + * @class + */ var Palette = this.Palette = Base.extend(Callback, /** @lends Palette# */{ _events: [ 'onChange' ], @@ -63,6 +67,10 @@ var Palette = this.Palette = Base.extend(Callback, /** @lends Palette# */{ paper.palettes.push(this); }, + /** + * Resets the values of the components to their + * {@link Component#defaultValue}. + */ reset: function() { for (var i in this._components) this._components[i].reset(); diff --git a/src/ui/View.js b/src/ui/View.js index a9522a82..168c1a12 100644 --- a/src/ui/View.js +++ b/src/ui/View.js @@ -17,7 +17,7 @@ /** * @name View * - * @class The View object wraps an html element and handles drawing and user + * @class The View object wraps an HTML element and handles drawing and user * interaction through mouse and keyboard for it. It offer means to scroll the * view, find the currently visible bounds in project coordinates, or the * center, both useful for constructing artwork that should appear centered on