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

View File

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