Prebuilt module for commit 0ae232e4ab

This commit is contained in:
Paper.js Bot 2016-02-09 16:07:01 +00:00
parent d61c9501ae
commit fb3d92b97a
5 changed files with 43 additions and 22 deletions

View file

@ -9,7 +9,7 @@
*
* 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;
},
_hitTestChildren: function(point, options) {
_hitTestChildren: function(point, options, _exclude) {
var children = this._children;
if (children) {
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)
return res;
}
@ -4347,6 +4348,12 @@ var Group = Item.extend({
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) {
var clip = param.clip,
clipItem = !clip && this._getClipItem();

13
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* 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;
},
_hitTestChildren: function(point, options) {
_hitTestChildren: function(point, options, _exclude) {
var children = this._children;
if (children) {
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)
return res;
}
@ -4347,6 +4348,12 @@ var Group = Item.extend({
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) {
var clip = param.clip,
clipItem = !clip && this._getClipItem();

File diff suppressed because one or more lines are too long

13
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* 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;
},
_hitTestChildren: function(point, options) {
_hitTestChildren: function(point, options, _exclude) {
var children = this._children;
if (children) {
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)
return res;
}
@ -4347,6 +4348,12 @@ var Group = Item.extend({
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) {
var clip = param.clip,
clipItem = !clip && this._getClipItem();

File diff suppressed because one or more lines are too long