mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-25 16:04:42 +00:00
Merge pull request #2064 from sapics/fix_jsdoc_setangle
Fix doc for setAngle
This commit is contained in:
commit
bb1f234d8e
3 changed files with 4 additions and 13 deletions
|
|
@ -36,6 +36,7 @@ fabric.isTouchSupported = "ontouchstart" in fabric.document.documentElement;
|
|||
fabric.isLikelyNode = typeof Buffer !== 'undefined' &&
|
||||
typeof window === 'undefined';
|
||||
|
||||
/* _FROM_SVG_START_ */
|
||||
/**
|
||||
* Attributes parsed from all SVG elements
|
||||
* @type array
|
||||
|
|
@ -49,6 +50,7 @@ fabric.SHARED_ATTRIBUTES = [
|
|||
"stroke-linejoin", "stroke-miterlimit",
|
||||
"stroke-opacity", "stroke-width"
|
||||
];
|
||||
/* _FROM_SVG_END_ */
|
||||
|
||||
/**
|
||||
* Pixel per Inch as a default value set to 96. Can be changed for more realistic conversion.
|
||||
|
|
|
|||
|
|
@ -451,12 +451,10 @@
|
|||
* @private
|
||||
*/
|
||||
_beforeTransform: function(e, target) {
|
||||
var corner;
|
||||
|
||||
this.stateful && target.saveState();
|
||||
|
||||
// determine if it's a drag or rotate case
|
||||
if ((corner = target._findTargetCorner(this.getPointer(e)))) {
|
||||
if (target._findTargetCorner(this.getPointer(e))) {
|
||||
this.onBeforeScaleRotate(target);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -191,15 +191,6 @@
|
|||
* @return {Number}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Sets object's {@link fabric.Object#angle|angle}
|
||||
* @method setAngle
|
||||
* @memberOf fabric.Object.prototype
|
||||
* @param {Number} value Angle value (in degrees)
|
||||
* @return {fabric.Object} thisArg
|
||||
* @chainable
|
||||
*/
|
||||
|
||||
/**
|
||||
* Retrieves object's {@link fabric.Object#top|top position}
|
||||
* @method getTop
|
||||
|
|
@ -1402,7 +1393,7 @@
|
|||
|
||||
/**
|
||||
* Sets "angle" of an instance
|
||||
* @param {Number} angle Angle value
|
||||
* @param {Number} angle Angle value (in degrees)
|
||||
* @return {fabric.Object} thisArg
|
||||
* @chainable
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue