mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 22:01:58 -05:00
Prebuilt module for commit 0ae232e4ab
This commit is contained in:
parent
d61c9501ae
commit
fb3d92b97a
5 changed files with 43 additions and 22 deletions
13
dist/docs/assets/js/paper.js
vendored
13
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Tue Feb 9 16:52:55 2016 +0100
|
* Date: Tue Feb 9 17:02:03 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -3589,11 +3589,12 @@ new function() {
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
|
|
||||||
_hitTestChildren: function(point, options) {
|
_hitTestChildren: function(point, options, _exclude) {
|
||||||
var children = this._children;
|
var children = this._children;
|
||||||
if (children) {
|
if (children) {
|
||||||
for (var i = children.length - 1; i >= 0; i--) {
|
for (var i = children.length - 1; i >= 0; i--) {
|
||||||
var res = children[i]._hitTest(point, options);
|
var child = children[i];
|
||||||
|
var res = child !== _exclude && child._hitTest(point, options);
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -4347,6 +4348,12 @@ var Group = Item.extend({
|
||||||
child.setClipMask(clipped);
|
child.setClipMask(clipped);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_hitTestChildren: function _hitTestChildren(point, options) {
|
||||||
|
var clipItem = this._getClipItem();
|
||||||
|
return (!clipItem || clipItem.contains(point))
|
||||||
|
&& _hitTestChildren.base.call(this, point, options, clipItem);
|
||||||
|
},
|
||||||
|
|
||||||
_draw: function(ctx, param) {
|
_draw: function(ctx, param) {
|
||||||
var clip = param.clip,
|
var clip = param.clip,
|
||||||
clipItem = !clip && this._getClipItem();
|
clipItem = !clip && this._getClipItem();
|
||||||
|
|
13
dist/paper-core.js
vendored
13
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Tue Feb 9 16:52:55 2016 +0100
|
* Date: Tue Feb 9 17:02:03 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -3589,11 +3589,12 @@ new function() {
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
|
|
||||||
_hitTestChildren: function(point, options) {
|
_hitTestChildren: function(point, options, _exclude) {
|
||||||
var children = this._children;
|
var children = this._children;
|
||||||
if (children) {
|
if (children) {
|
||||||
for (var i = children.length - 1; i >= 0; i--) {
|
for (var i = children.length - 1; i >= 0; i--) {
|
||||||
var res = children[i]._hitTest(point, options);
|
var child = children[i];
|
||||||
|
var res = child !== _exclude && child._hitTest(point, options);
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -4347,6 +4348,12 @@ var Group = Item.extend({
|
||||||
child.setClipMask(clipped);
|
child.setClipMask(clipped);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_hitTestChildren: function _hitTestChildren(point, options) {
|
||||||
|
var clipItem = this._getClipItem();
|
||||||
|
return (!clipItem || clipItem.contains(point))
|
||||||
|
&& _hitTestChildren.base.call(this, point, options, clipItem);
|
||||||
|
},
|
||||||
|
|
||||||
_draw: function(ctx, param) {
|
_draw: function(ctx, param) {
|
||||||
var clip = param.clip,
|
var clip = param.clip,
|
||||||
clipItem = !clip && this._getClipItem();
|
clipItem = !clip && this._getClipItem();
|
||||||
|
|
12
dist/paper-core.min.js
vendored
12
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
13
dist/paper-full.js
vendored
13
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Date: Tue Feb 9 16:52:55 2016 +0100
|
* Date: Tue Feb 9 17:02:03 2016 +0100
|
||||||
*
|
*
|
||||||
***
|
***
|
||||||
*
|
*
|
||||||
|
@ -3589,11 +3589,12 @@ new function() {
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
|
|
||||||
_hitTestChildren: function(point, options) {
|
_hitTestChildren: function(point, options, _exclude) {
|
||||||
var children = this._children;
|
var children = this._children;
|
||||||
if (children) {
|
if (children) {
|
||||||
for (var i = children.length - 1; i >= 0; i--) {
|
for (var i = children.length - 1; i >= 0; i--) {
|
||||||
var res = children[i]._hitTest(point, options);
|
var child = children[i];
|
||||||
|
var res = child !== _exclude && child._hitTest(point, options);
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -4347,6 +4348,12 @@ var Group = Item.extend({
|
||||||
child.setClipMask(clipped);
|
child.setClipMask(clipped);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_hitTestChildren: function _hitTestChildren(point, options) {
|
||||||
|
var clipItem = this._getClipItem();
|
||||||
|
return (!clipItem || clipItem.contains(point))
|
||||||
|
&& _hitTestChildren.base.call(this, point, options, clipItem);
|
||||||
|
},
|
||||||
|
|
||||||
_draw: function(ctx, param) {
|
_draw: function(ctx, param) {
|
||||||
var clip = param.clip,
|
var clip = param.clip,
|
||||||
clipItem = !clip && this._getClipItem();
|
clipItem = !clip && this._getClipItem();
|
||||||
|
|
14
dist/paper-full.min.js
vendored
14
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue