mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +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
|
* 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);
|
||||||
|
@@ -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());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user