mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 09:50:05 +08:00
tweaked docs
This commit is contained in:
@@ -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);
|
||||
|
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user