update global docs

This commit is contained in:
Лаврёнов Антон 2014-04-14 09:49:10 +08:00
parent 6f26aa2558
commit 71dd7c6abe
2 changed files with 29 additions and 1 deletions

View File

@ -51,8 +51,36 @@ var Kinetic = {};
enableTrace: false,
traceArrMax: 100,
dblClickWindow: 400,
/**
* Global pixel ratio configuration. KineticJS automatically detect pixel ratio of current device.
* But you may override such property, if you want to use your value.
* @property
* @default undefined
* @memberof Kinetic
* @example
* Kinetic.pixelRatio = 1;
*/
pixelRatio: undefined,
/**
* Drag distance property. If you start to drag a node you may want to wait until pointer is moved to some distance from start point,
* only then start dragging.
* @property
* @default 0
* @memberof Kinetic
* @example
* Kinetic.dragDistance = 10;
*/
dragDistance : 0,
/**
* Use degree values for angle properties. You may set this property to false if you want to use radiant values.
* @property
* @default true
* @memberof Kinetic
* @example
* node.rotation(45); // 45 degrees
* Kinetic.angleDeg = false;
* node.rotation(Math.PI / 2); // PI/2 radian
*/
angleDeg: true,
// user agent

View File

@ -27,7 +27,7 @@
* brighten the pixels and negative values darken them.
* @name brightness
* @method
* @memberof Kinetic.Image.prototype
* @memberof Kinetic.Node.prototype
* @param {Number} brightness value between -1 and 1
* @returns {Number}
*/