Documentation: capitalize 'string' and 'number' types.

This commit is contained in:
Jonathan Puckey 2011-05-27 20:15:15 +02:00
parent 82bc6fc796
commit 8e84c79aa6
18 changed files with 53 additions and 53 deletions

View file

@ -73,14 +73,14 @@ var Point = this.Point = Base.extend({
* The x coordinate of the point
*
* @name Point#x
* @type number
* @type Number
*/
/**
* The y coordinate of the point
*
* @name Point#y
* @type number
* @type Number
*/
set: function(x, y) {
@ -327,7 +327,7 @@ var Point = this.Point = Base.extend({
* ({@code x = 0}, {@code y = 0}) to the point's location.
* Setting the length changes the location but keeps the vector's angle.
*
* @type number
* @type Number
* @bean
*/
getLength: function() {
@ -389,7 +389,7 @@ var Point = this.Point = Base.extend({
* The angle is unsigned, no information about rotational direction is
* given.
*
* @type number
* @type Number
* @bean
*/
getAngle: function(/* point */) {
@ -426,7 +426,7 @@ var Point = this.Point = Base.extend({
* The angle is unsigned, no information about rotational direction is
* given.
*
* @type number
* @type Number
* @bean
*/
getAngleInRadians: function(/* point */) {

View file

@ -79,28 +79,28 @@ var Rectangle = this.Rectangle = Base.extend({
* The x position of the rectangle.
*
* @name Rectangle#x
* @type number
* @type Number
*/
/**
* The y position of the rectangle.
*
* @name Rectangle#y
* @type number
* @type Number
*/
/**
* The width of the rectangle.
*
* @name Rectangle#width
* @type number
* @type Number
*/
/**
* The height of the rectangle.
*
* @name Rectangle#height
* @type number
* @type Number
*/
// DOCS: why does jsdocs document this function, when there are no comments?
@ -155,7 +155,7 @@ var Rectangle = this.Rectangle = Base.extend({
* The position of the left hand side of the rectangle. Note that this
* doesn't move the whole rectangle; the right hand side stays where it was.
*
* @type number
* @type Number
* @bean
*/
getLeft: function() {
@ -172,7 +172,7 @@ var Rectangle = this.Rectangle = Base.extend({
* The top coordinate of the rectangle. Note that this doesn't move the
* whole rectangle: the bottom won't move.
*
* @type number
* @type Number
* @bean
*/
getTop: function() {
@ -189,7 +189,7 @@ var Rectangle = this.Rectangle = Base.extend({
* The position of the right hand side of the rectangle. Note that this
* doesn't move the whole rectangle; the left hand side stays where it was.
*
* @type number
* @type Number
* @bean
*/
getRight: function() {
@ -205,7 +205,7 @@ var Rectangle = this.Rectangle = Base.extend({
* The bottom coordinate of the rectangle. Note that this doesn't move the
* whole rectangle: the top won't move.
*
* @type number
* @type Number
* @bean
*/
getBottom: function() {
@ -220,7 +220,7 @@ var Rectangle = this.Rectangle = Base.extend({
/**
* The center-x coordinate of the rectangle.
*
* @type number
* @type Number
* @bean
* @ignore
*/
@ -236,7 +236,7 @@ var Rectangle = this.Rectangle = Base.extend({
/**
* The center-y coordinate of the rectangle.
*
* @type number
* @type Number
* @bean
* @ignore
*/

View file

@ -75,14 +75,14 @@ var Size = this.Size = Base.extend({
* The width of the size
*
* @name Size#width
* @type number
* @type Number
*/
/**
* The height of the size
*
* @name Size#height
* @type number
* @type Number
*/
set: function(width, height) {

View file

@ -56,7 +56,7 @@ var GradientStop = this.GradientStop = Base.extend({
/**
* The ramp-point of the gradient stop as a value between 0 and 1.
*
* @type number
* @type Number
* @bean
*/
getRampPoint: function() {

View file

@ -51,7 +51,7 @@ var Item = this.Item = Base.extend({
/**
* The unique id of the item.
*
* @type number
* @type Number
* @bean
*/
getId: function() {
@ -69,7 +69,7 @@ var Item = this.Item = Base.extend({
* path.name = 'example';
* project.activeLayer.children['example'].remove();
*
* @type string
* @type String
* @bean
*/
getName: function() {
@ -283,7 +283,7 @@ var Item = this.Item = Base.extend({
* // Change the opacity of the circle to 50%:
* circle.opacity = 0.5;
*
* @type number
* @type Number
* @default 1
*/
opacity: 1,
@ -412,7 +412,7 @@ var Item = this.Item = Base.extend({
/**
* The index of this item within the list of its parent's children.
*
* @type number
* @type Number
* @bean
*/
getIndex: function() {
@ -803,7 +803,7 @@ var Item = this.Item = Base.extend({
*
* @property
* @name Item#strokeWidth
* @type number
* @type Number
*/
// DOCS: Item#strokeCap: describe the different options
@ -819,7 +819,7 @@ var Item = this.Item = Base.extend({
*
* @property
* @name Item#strokeCap
* @type string
* @type String
*/
// DOCS: Item#strokeJoin: describe the different options
@ -828,7 +828,7 @@ var Item = this.Item = Base.extend({
*
* @property
* @name Item#strokeJoin
* @type string
* @type String
*/
/**
@ -836,7 +836,7 @@ var Item = this.Item = Base.extend({
*
* @property
* @name Item#dashOffset
* @type number
* @type Number
*/
/**
@ -861,7 +861,7 @@ var Item = this.Item = Base.extend({
*
* @property
* @name Item#miterLimit
* @type number
* @type Number
*/
/**

View file

@ -180,7 +180,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
*
* @property
* @name PathStyle#strokeWidth
* @type number
* @type Number
*/
// DOCS: PathStyle#strokeCap: describe the different options
@ -196,7 +196,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
*
* @property
* @name PathStyle#strokeCap
* @type string
* @type String
*/
// DOCS: PathStyle#strokeJoin: describe the different options
@ -205,7 +205,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
*
* @property
* @name PathStyle#strokeJoin
* @type string
* @type String
*/
/**
@ -213,7 +213,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
*
* @property
* @name PathStyle#dashOffset
* @type number
* @type Number
*/
/**
@ -238,7 +238,7 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
*
* @property
* @name PathStyle#miterLimit
* @type number
* @type Number
*/
/**

View file

@ -83,7 +83,7 @@ var Raster = this.Raster = Item.extend({
/**
* The width of the raster in pixels.
*
* @type number
* @type Number
* @bean
*/
getWidth: function() {
@ -93,7 +93,7 @@ var Raster = this.Raster = Item.extend({
/**
* The height of the raster in pixels.
*
* @type number
* @type Number
* @bean
*/
getHeight: function() {

View file

@ -146,7 +146,7 @@ var Curve = this.Curve = Base.extend({
/**
* The index of the curve in the {@link Path#curves} array.
*
* @type number
* @type Number
* @bean
*/
getIndex: function() {
@ -211,7 +211,7 @@ var Curve = this.Curve = Base.extend({
/**
* The approximated length of the curve in points.
*
* @type number
* @type Number
* @bean
*/
getLength: function(/* from, to */) {

View file

@ -107,7 +107,7 @@ CurveLocation = Base.extend({
* The length of the path from its beginning up to the location described
* by this object.
*
* @type number
* @type Number
* @bean
*/
getOffset: function() {
@ -119,7 +119,7 @@ CurveLocation = Base.extend({
* The length of the curve from its beginning up to the location described
* by this object.
*
* @type number
* @type Number
* @bean
*/
getCurveOffset: function() {
@ -132,7 +132,7 @@ CurveLocation = Base.extend({
* value between {@code 0} (beginning of the curve) and {@code 1} (end of
* the curve).
*
* @type number
* @type Number
* @bean
*/
getParameter: function() {

View file

@ -542,7 +542,7 @@ var Path = this.Path = PathItem.extend({
/**
* The length of the perimeter of the path.
*
* @type number
* @type Number
* @bean
*/
getLength: function() {

View file

@ -176,7 +176,7 @@ var Segment = this.Segment = Base.extend({
* The index of the segment in the {@link Path#segments} array that the
* segment belongs to.
*
* @type number
* @type Number
* @bean
*/
getIndex: function() {

View file

@ -88,7 +88,7 @@ var Project = this.Project = Base.extend({
/**
* The index of the project in the global projects array.
*
* @type number
* @type Number
* @bean
*/
getIndex: function() {

View file

@ -53,7 +53,7 @@ var CharacterStyle = this.CharacterStyle = PathStyle.extend({
*
* @name CharacterStyle#font
* @default 'sans-serif'
* @type string
* @type String
*/
/**
@ -61,7 +61,7 @@ var CharacterStyle = this.CharacterStyle = PathStyle.extend({
*
* @name CharacterStyle#fontSize
* @default 10
* @type number
* @type Number
*/
statics: {

View file

@ -43,7 +43,7 @@ var TextItem = this.TextItem = Item.extend({
* The text contents of the text item.
*
* @name TextItem#content
* @type string
* @type String
*/
_clone: function(copy) {

View file

@ -70,7 +70,7 @@ var Tool = this.Tool = Base.extend({
* {@link #onMouseDrag} event is called repeatedly after the initial
* {@link #onMouseDown} until the user releases the mouse.
*
* @type number
* @type Number
*/
eventInterval: null,
@ -78,7 +78,7 @@ var Tool = this.Tool = Base.extend({
* The minimum distance the mouse has to drag before firing the onMouseDrag
* event, since the last onMouseDrag event.
*
* @type number
* @type Number
* @bean
*/
getMinDistance: function() {
@ -97,7 +97,7 @@ var Tool = this.Tool = Base.extend({
* The maximum distance the mouse has to drag before firing the onMouseDrag
* event, since the last onMouseDrag event.
*
* @type number
* @type Number
* @bean
*/
getMaxDistance: function() {
@ -114,7 +114,7 @@ var Tool = this.Tool = Base.extend({
// DOCS: document Tool#fixedDistance
/**
* @type number
* @type Number
* @bean
*/
getFixedDistance: function() {

View file

@ -147,7 +147,7 @@ var ToolEvent = this.ToolEvent = Base.extend({
/**
* The number of times the mouse event was fired.
*
* @type number
* @type Number
* @bean
*/
getCount: function() {

View file

@ -47,14 +47,14 @@ var KeyEvent = this.KeyEvent = Event.extend(new function() {
* The string character of the key that caused this key event.
*
* @name KeyEvent#character
* @type string
* @type String
*/
/**
* The key that caused this key event.
*
* @name KeyEvent#key
* @type string
* @type String
*/
/**

View file

@ -172,7 +172,7 @@ var View = this.View = Base.extend({
},
/**
* @type number
* @type Number
* @bean
*/
getZoom: function() {