Skip to content

Commit

Permalink
Merge pull request #12 from enyojs/ENYO-1526-rs
Browse files Browse the repository at this point in the history
ENYO-1526 Convert inline docs to modules

Reviewed-By: Ryan Duffy (ryan.duffy@lge.com)
Integrated-By: Ryan Duffy (ryan.duffy@lge.com)
  • Loading branch information
ryanjduffy committed May 19, 2015
2 parents 030ce20 + baae909 commit 50eab13
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 8 deletions.
9 changes: 8 additions & 1 deletion lib/Canvas.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.Canvas} kind.
* @module canvas/Canvas
*/

var
kind = require('enyo/kind');

Expand All @@ -14,8 +19,10 @@ var
* canvas.
*
* @ui
* @namespace enyo
* @class enyo.Canvas
* @extends enyo.Control
* @definedby module:canvas/Canvas
* @public
*/
module.exports = kind(
Expand Down Expand Up @@ -135,4 +142,4 @@ module.exports = kind(
this.renderChildren(ctx);
}
}
});
});
9 changes: 8 additions & 1 deletion lib/CanvasControl.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.canvas.CanvasControl} kind.
* @module canvas/CanvasControl
*/

var
kind = require('enyo/kind'),
utils = require('enyo/utils');
Expand Down Expand Up @@ -25,8 +30,10 @@ var
* your drawing code.
*
*
* @namespace enyo.canvas
* @class enyo.canvas.Control
* @extends enyo.UiComponent
* @definedby module:canvas/CanvasControl
* @public
*/
var CanvasControl = module.exports = kind(
Expand Down Expand Up @@ -112,4 +119,4 @@ var CanvasControl = module.exports = kind(
}
});

CanvasControl.prototype.defaultKind = CanvasControl;
CanvasControl.prototype.defaultKind = CanvasControl;
9 changes: 8 additions & 1 deletion lib/Circle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.canvas.Circle} kind.
* @module canvas/Circle
*/

var
kind = require('enyo/kind');

Expand All @@ -9,8 +14,10 @@ var
* the parameters specified by the [bounds]{@link enyo.canvas.Control#bounds}
* property on {@link enyo.canvas.Control}.
*
* @namespace enyo.canvas
* @class enyo.canvas.Circle
* @extends enyo.canvas.Shape
* @definedby module:canvas/Circle
* @public
*/
module.exports = kind(
Expand All @@ -34,4 +41,4 @@ module.exports = kind(
ctx.arc(this.bounds.l, this.bounds.t, this.bounds.w, 0, Math.PI*2);
this.draw(ctx);
}
});
});
9 changes: 8 additions & 1 deletion lib/Image.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.canvas.Image} kind.
* @module canvas/Image
*/

var
kind = require('enyo/kind');

Expand All @@ -9,8 +14,10 @@ var
* to fit the rectangle specified by the [bounds]{@link enyo.canvas.Image#bounds}
* property.
*
* @namespace enyo.canvas
* @class enyo.canvas.Image
* @extends enyo.canvas.Control
* @definedby module:canvas/Image
* @public
*/
module.exports = kind(
Expand Down Expand Up @@ -65,4 +72,4 @@ module.exports = kind(
renderSelf: function (ctx) {
ctx.drawImage(this.image, this.bounds.l, this.bounds.t);
}
});
});
9 changes: 8 additions & 1 deletion lib/Line.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.canvas.Line} kind.
* @module canvas/Line
*/

var
kind = require('enyo/kind');

Expand All @@ -23,8 +28,10 @@ var
* the parameters specified by the [bounds]{@link enyo.canvas.Line#bounds}
* property.
*
* @namespace enyo.canvas
* @class enyo.canvas.Line
* @extends enyo.canvas.Shape
* @definedby module:canvas/Line
* @public
*/
module.exports = kind(
Expand Down Expand Up @@ -70,4 +77,4 @@ module.exports = kind(
ctx.restore();
}

});
});
9 changes: 8 additions & 1 deletion lib/Rectangle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.canvas.Rectangle} kind.
* @module canvas/Rectangle
*/

var
kind = require('enyo/kind');

Expand All @@ -9,8 +14,10 @@ var
* fitting the parameters specified by the [bounds]{@link enyo.canvas.Control#bounds}
* property.
*
* @namespace enyo.canvas
* @class enyo.canvas.Rectangle
* @extends enyo.canvas.Shape
* @definedby module:canvas/Rectangle
* @public
*/
module.exports = kind(
Expand Down Expand Up @@ -65,4 +72,4 @@ module.exports = kind(
outline: function (ctx) {
ctx.strokeRect(this.bounds.l, this.bounds.t, this.bounds.w, this.bounds.h);
}
});
});
9 changes: 8 additions & 1 deletion lib/Shape.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.canvas.Shape} kind.
* @module canvas/Shape
*/

var
kind = require('enyo/kind');

Expand All @@ -15,8 +20,10 @@ var
* [fill()]{@link enyo.canvas.Shape#fill} method or the
* [outline()]{@link enyo.canvas.Shape#outline} method, respectively.
*
* @namespace enyo.canvas
* @class enyo.canvas.Shape
* @extends enyo.canvas.Control
* @definedby module:canvas/Shape
* @public
*/
module.exports = kind(
Expand Down Expand Up @@ -89,4 +96,4 @@ module.exports = kind(
this.outline(context);
}
}
});
});
9 changes: 8 additions & 1 deletion lib/Text.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Contains the declaration for the {@link enyo.canvas.Text} kind.
* @module canvas/Text
*/

var
kind = require('enyo/kind');

Expand All @@ -7,8 +12,10 @@ var
/**
* {@link enyo.canvas.Text} is a canvas control that draws a text string.
*
* @namespace enyo.canvas
* @class enyo.canvas.Text
* @extends enyo.canvas.Shape
* @definedby module:canvas/Text
* @public
*/
module.exports = kind(
Expand Down Expand Up @@ -80,4 +87,4 @@ module.exports = kind(
outline: function (ctx) {
ctx.strokeText(this.text, this.bounds.l, this.bounds.t);
}
});
});

0 comments on commit 50eab13

Please sign in to comment.