mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-30 01:54:44 +00:00
Build distribution
This commit is contained in:
parent
4cb7819c32
commit
7df7e41225
3 changed files with 10 additions and 20 deletions
26
dist/all.js
vendored
26
dist/all.js
vendored
|
|
@ -14762,24 +14762,6 @@ fabric.util.object.extend(fabric.Object.prototype, /** @lends fabric.Object.prot
|
|||
this.top = (minY + height / 2) || 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if point is contained within the group
|
||||
* @param {fabric.Point} point point with `x` and `y` properties
|
||||
* @return {Boolean} true if point is contained within group
|
||||
*/
|
||||
containsPoint: function(point) {
|
||||
|
||||
var halfWidth = this.get('width') / 2,
|
||||
halfHeight = this.get('height') / 2,
|
||||
centerX = this.get('left'),
|
||||
centerY = this.get('top');
|
||||
|
||||
return centerX - halfWidth < point.x &&
|
||||
centerX + halfWidth > point.x &&
|
||||
centerY - halfHeight < point.y &&
|
||||
centerY + halfHeight > point.y;
|
||||
},
|
||||
|
||||
/* _TO_SVG_START_ */
|
||||
/**
|
||||
* Returns svg representation of an instance
|
||||
|
|
@ -17087,6 +17069,14 @@ fabric.Image.filters.Pixelate.fromObject = function(object) {
|
|||
this._initDimensions();
|
||||
this.setCoords();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns complexity of an instance
|
||||
* @return {Number} complexity
|
||||
*/
|
||||
complexity: function() {
|
||||
return 1;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
4
dist/all.min.js
vendored
4
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
Loading…
Reference in a new issue