mirror of
https://github.com/konvajs/konva.git
synced 2025-12-04 19:08:24 +08:00
updated jsdocs
This commit is contained in:
25
dist/kinetic-core.js
vendored
25
dist/kinetic-core.js
vendored
@@ -3659,28 +3659,21 @@ Kinetic.Polygon = function(config) {
|
|||||||
// call super constructor
|
// call super constructor
|
||||||
Kinetic.Shape.apply(this, [config]);
|
Kinetic.Shape.apply(this, [config]);
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
* Polygon methods
|
|
||||||
*/
|
|
||||||
Kinetic.Polygon.prototype = {
|
|
||||||
/**
|
|
||||||
* set points array
|
|
||||||
* @param {Array} points can be an array of point objects or an array
|
|
||||||
* of Numbers. e.g. [{x:1,y:2},{x:3,y:4}] or [1,2,3,4]
|
|
||||||
*/
|
|
||||||
setPoints: function(points) {
|
|
||||||
this.setAttrs({
|
|
||||||
points: points
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// extend Shape
|
// extend Shape
|
||||||
Kinetic.GlobalObject.extend(Kinetic.Polygon, Kinetic.Shape);
|
Kinetic.GlobalObject.extend(Kinetic.Polygon, Kinetic.Shape);
|
||||||
|
|
||||||
// add setters and getters
|
// add setters and getters
|
||||||
|
Kinetic.GlobalObject.addSetters(Kinetic.Polygon, ['points']);
|
||||||
Kinetic.GlobalObject.addGetters(Kinetic.Polygon, ['points']);
|
Kinetic.GlobalObject.addGetters(Kinetic.Polygon, ['points']);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set points array
|
||||||
|
* @name setPoints
|
||||||
|
* @methodOf Kinetic.Polygon.prototype
|
||||||
|
* @param {Array} points can be an array of point objects or an array
|
||||||
|
* of Numbers. e.g. [{x:1,y:2},{x:3,y:4}] or [1,2,3,4]
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get points array
|
* get points array
|
||||||
* @name getPoints
|
* @name getPoints
|
||||||
|
|||||||
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -27,28 +27,21 @@ Kinetic.Polygon = function(config) {
|
|||||||
// call super constructor
|
// call super constructor
|
||||||
Kinetic.Shape.apply(this, [config]);
|
Kinetic.Shape.apply(this, [config]);
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
* Polygon methods
|
|
||||||
*/
|
|
||||||
Kinetic.Polygon.prototype = {
|
|
||||||
/**
|
|
||||||
* set points array
|
|
||||||
* @param {Array} points can be an array of point objects or an array
|
|
||||||
* of Numbers. e.g. [{x:1,y:2},{x:3,y:4}] or [1,2,3,4]
|
|
||||||
*/
|
|
||||||
setPoints: function(points) {
|
|
||||||
this.setAttrs({
|
|
||||||
points: points
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// extend Shape
|
// extend Shape
|
||||||
Kinetic.GlobalObject.extend(Kinetic.Polygon, Kinetic.Shape);
|
Kinetic.GlobalObject.extend(Kinetic.Polygon, Kinetic.Shape);
|
||||||
|
|
||||||
// add setters and getters
|
// add setters and getters
|
||||||
|
Kinetic.GlobalObject.addSetters(Kinetic.Polygon, ['points']);
|
||||||
Kinetic.GlobalObject.addGetters(Kinetic.Polygon, ['points']);
|
Kinetic.GlobalObject.addGetters(Kinetic.Polygon, ['points']);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set points array
|
||||||
|
* @name setPoints
|
||||||
|
* @methodOf Kinetic.Polygon.prototype
|
||||||
|
* @param {Array} points can be an array of point objects or an array
|
||||||
|
* of Numbers. e.g. [{x:1,y:2},{x:3,y:4}] or [1,2,3,4]
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get points array
|
* get points array
|
||||||
* @name getPoints
|
* @name getPoints
|
||||||
|
|||||||
Reference in New Issue
Block a user