Prebuilt module for commit f46bb433a5e9d367716e028e3d8eff85e46ef612

This commit is contained in:
Paper.js Bot 2018-10-03 16:03:29 +00:00
parent c6295815df
commit 2fcb429ac2
5 changed files with 37 additions and 37 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Oct 3 17:33:24 2018 +0200
* Date: Wed Oct 3 17:57:45 2018 +0200
*
***
*
@ -3219,16 +3219,15 @@ new function() {
getPosition: function(_dontLink) {
var ctor = _dontLink ? Point : LinkedPoint;
if (!this._position) {
this._position = this._getPositionFromBounds();
}
return new ctor(this._position.x, this._position.y, this, 'setPosition');
var position = this._position ||
(this._position = this._getPositionFromBounds());
return new ctor(position.x, position.y, this, 'setPosition');
},
_getPositionFromBounds: function(bounds) {
return this._pivot
? this._matrix._transformPoint(this._pivot)
: (bounds || this.getBounds()).getCenter(true);
? this._matrix._transformPoint(this._pivot)
: (bounds || this.getBounds()).getCenter(true);
},
setPosition: function() {
@ -4331,7 +4330,8 @@ new function() {
}
}
this._bounds = bounds;
var cached = bounds[this._getBoundsCacheKey(this._boundsOptions || {})];
var cached = bounds[this._getBoundsCacheKey(
this._boundsOptions || {})];
if (cached) {
this._position = this._getPositionFromBounds(cached.rect);
}
@ -12162,9 +12162,9 @@ var DomEvent = {
for (var i = 0, l = parts.length; i < l; i++) {
var name = parts[i];
var options = (
el === document
&& (name === 'touchstart' || name === 'touchmove')
) ? { passive: false } : false;
el === document
&& (name === 'touchstart' || name === 'touchmove')
) ? { passive: false } : false;
el.addEventListener(name, func, options);
}
}

22
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Oct 3 17:33:24 2018 +0200
* Date: Wed Oct 3 17:57:45 2018 +0200
*
***
*
@ -3219,16 +3219,15 @@ new function() {
getPosition: function(_dontLink) {
var ctor = _dontLink ? Point : LinkedPoint;
if (!this._position) {
this._position = this._getPositionFromBounds();
}
return new ctor(this._position.x, this._position.y, this, 'setPosition');
var position = this._position ||
(this._position = this._getPositionFromBounds());
return new ctor(position.x, position.y, this, 'setPosition');
},
_getPositionFromBounds: function(bounds) {
return this._pivot
? this._matrix._transformPoint(this._pivot)
: (bounds || this.getBounds()).getCenter(true);
? this._matrix._transformPoint(this._pivot)
: (bounds || this.getBounds()).getCenter(true);
},
setPosition: function() {
@ -4331,7 +4330,8 @@ new function() {
}
}
this._bounds = bounds;
var cached = bounds[this._getBoundsCacheKey(this._boundsOptions || {})];
var cached = bounds[this._getBoundsCacheKey(
this._boundsOptions || {})];
if (cached) {
this._position = this._getPositionFromBounds(cached.rect);
}
@ -12162,9 +12162,9 @@ var DomEvent = {
for (var i = 0, l = parts.length; i < l; i++) {
var name = parts[i];
var options = (
el === document
&& (name === 'touchstart' || name === 'touchmove')
) ? { passive: false } : false;
el === document
&& (name === 'touchstart' || name === 'touchmove')
) ? { passive: false } : false;
el.addEventListener(name, func, options);
}
}

File diff suppressed because one or more lines are too long

22
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Oct 3 17:33:24 2018 +0200
* Date: Wed Oct 3 17:57:45 2018 +0200
*
***
*
@ -3219,16 +3219,15 @@ new function() {
getPosition: function(_dontLink) {
var ctor = _dontLink ? Point : LinkedPoint;
if (!this._position) {
this._position = this._getPositionFromBounds();
}
return new ctor(this._position.x, this._position.y, this, 'setPosition');
var position = this._position ||
(this._position = this._getPositionFromBounds());
return new ctor(position.x, position.y, this, 'setPosition');
},
_getPositionFromBounds: function(bounds) {
return this._pivot
? this._matrix._transformPoint(this._pivot)
: (bounds || this.getBounds()).getCenter(true);
? this._matrix._transformPoint(this._pivot)
: (bounds || this.getBounds()).getCenter(true);
},
setPosition: function() {
@ -4331,7 +4330,8 @@ new function() {
}
}
this._bounds = bounds;
var cached = bounds[this._getBoundsCacheKey(this._boundsOptions || {})];
var cached = bounds[this._getBoundsCacheKey(
this._boundsOptions || {})];
if (cached) {
this._position = this._getPositionFromBounds(cached.rect);
}
@ -12162,9 +12162,9 @@ var DomEvent = {
for (var i = 0, l = parts.length; i < l; i++) {
var name = parts[i];
var options = (
el === document
&& (name === 'touchstart' || name === 'touchmove')
) ? { passive: false } : false;
el === document
&& (name === 'touchstart' || name === 'touchmove')
) ? { passive: false } : false;
el.addEventListener(name, func, options);
}
}

File diff suppressed because one or more lines are too long