mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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.
|
||||
*
|
||||
* 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
13
dist/paper-core.js
vendored
|
@ -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();
|
||||
|
|
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.
|
||||
*
|
||||
* 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();
|
||||
|
|
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