tweaked docs

This commit is contained in:
Eric Rowell
2013-03-26 01:09:21 -07:00
parent 793e43b0db
commit 5340ced25d
2 changed files with 14 additions and 13 deletions

View File

@@ -25,15 +25,22 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/**
* @namespace
*/
var Kinetic = {};
(function() {
Kinetic.version = '{{version}}';
// namespaces without constructors
/**
* @namespace
*/
Kinetic.Filters = {};
Kinetic.DD = {};
// global namespace
/**
* @namespace
*/
Kinetic.Global = {
stages: [],
idCounter: 0,
@@ -41,6 +48,11 @@ var Kinetic = {};
names: {},
//shapes hash. rgb keys and shape values
shapes: {},
/**
* @method isDragging returns whether or not drag and drop
* is currently active
* @methodOf Kinetic.Global
*/
isDragging: function() {
var dd = Kinetic.DD;
return (!dd || dd.isDragging);

View File

@@ -32,20 +32,9 @@
context.closePath();
canvas.fillStroke(this);
},
/**
* set angle in degrees
* @name setAngleDeg
* @methodOf Kinetic.Wedge.prototype
* @param {Number} deg
*/
setAngleDeg: function(deg) {
this.setAngle(Kinetic.Type._degToRad(deg));
},
/**
* set angle in degrees
* @name getAngleDeg
* @methodOf Kinetic.Wedge.prototype
*/
getAngleDeg: function() {
return Kinetic.Type._radToDeg(this.getAngle());
}