Prebuilt module for commit 740c94e367

This commit is contained in:
Paper.js Bot 2016-02-09 15:57:44 +00:00
parent e27cf3a3a0
commit d61c9501ae
5 changed files with 71 additions and 59 deletions

View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Tue Feb 9 16:11:38 2016 +0100 * Date: Tue Feb 9 16:52:55 2016 +0100
* *
*** ***
* *
@ -3576,24 +3576,28 @@ new function() {
} }
} }
if (!res) {
options._viewMatrix = viewMatrix; options._viewMatrix = viewMatrix;
options._strokeMatrix = strokeMatrix; options._strokeMatrix = strokeMatrix;
var children = !res && this._children; res = this._hitTestChildren(point, options)
if (children) { || checkSelf && this._hitTestSelf(point, options)
var opts = this._getChildHitTestOptions(options); || null;
for (var i = children.length - 1; i >= 0 && !res; i--) options._viewMatrix = parentViewMatrix;
res = children[i]._hitTest(point, opts);
} }
if (!res && checkSelf)
res = this._hitTestSelf(point, options);
if (res && res.point) if (res && res.point)
res.point = matrix.transform(res.point); res.point = matrix.transform(res.point);
options._viewMatrix = parentViewMatrix;
return res; return res;
}, },
_getChildHitTestOptions: function(options) { _hitTestChildren: function(point, options) {
return options; var children = this._children;
if (children) {
for (var i = children.length - 1; i >= 0; i--) {
var res = children[i]._hitTest(point, options);
if (res)
return res;
}
}
}, },
_hitTestSelf: function(point, options) { _hitTestSelf: function(point, options) {
@ -9122,10 +9126,10 @@ var CompoundPath = PathItem.extend({
return paths.join(' '); return paths.join(' ');
} }
}, { }, {
_getChildHitTestOptions: function(options) { _hitTestChildren: function _hitTestChildren(point, options) {
return options.class === Path || options.type === 'path' return _hitTestChildren.base.call(this, point,
? options options.class === Path || options.type === 'path' ? options
: new Base(options, { fill: false }); : new Base(options, { fill: false }));
}, },
_draw: function(ctx, param, strokeMatrix) { _draw: function(ctx, param, strokeMatrix) {

34
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Tue Feb 9 16:11:38 2016 +0100 * Date: Tue Feb 9 16:52:55 2016 +0100
* *
*** ***
* *
@ -3576,24 +3576,28 @@ new function() {
} }
} }
if (!res) {
options._viewMatrix = viewMatrix; options._viewMatrix = viewMatrix;
options._strokeMatrix = strokeMatrix; options._strokeMatrix = strokeMatrix;
var children = !res && this._children; res = this._hitTestChildren(point, options)
if (children) { || checkSelf && this._hitTestSelf(point, options)
var opts = this._getChildHitTestOptions(options); || null;
for (var i = children.length - 1; i >= 0 && !res; i--) options._viewMatrix = parentViewMatrix;
res = children[i]._hitTest(point, opts);
} }
if (!res && checkSelf)
res = this._hitTestSelf(point, options);
if (res && res.point) if (res && res.point)
res.point = matrix.transform(res.point); res.point = matrix.transform(res.point);
options._viewMatrix = parentViewMatrix;
return res; return res;
}, },
_getChildHitTestOptions: function(options) { _hitTestChildren: function(point, options) {
return options; var children = this._children;
if (children) {
for (var i = children.length - 1; i >= 0; i--) {
var res = children[i]._hitTest(point, options);
if (res)
return res;
}
}
}, },
_hitTestSelf: function(point, options) { _hitTestSelf: function(point, options) {
@ -9122,10 +9126,10 @@ var CompoundPath = PathItem.extend({
return paths.join(' '); return paths.join(' ');
} }
}, { }, {
_getChildHitTestOptions: function(options) { _hitTestChildren: function _hitTestChildren(point, options) {
return options.class === Path || options.type === 'path' return _hitTestChildren.base.call(this, point,
? options options.class === Path || options.type === 'path' ? options
: new Base(options, { fill: false }); : new Base(options, { fill: false }));
}, },
_draw: function(ctx, param, strokeMatrix) { _draw: function(ctx, param, strokeMatrix) {

File diff suppressed because one or more lines are too long

34
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
* *
* All rights reserved. * All rights reserved.
* *
* Date: Tue Feb 9 16:11:38 2016 +0100 * Date: Tue Feb 9 16:52:55 2016 +0100
* *
*** ***
* *
@ -3576,24 +3576,28 @@ new function() {
} }
} }
if (!res) {
options._viewMatrix = viewMatrix; options._viewMatrix = viewMatrix;
options._strokeMatrix = strokeMatrix; options._strokeMatrix = strokeMatrix;
var children = !res && this._children; res = this._hitTestChildren(point, options)
if (children) { || checkSelf && this._hitTestSelf(point, options)
var opts = this._getChildHitTestOptions(options); || null;
for (var i = children.length - 1; i >= 0 && !res; i--) options._viewMatrix = parentViewMatrix;
res = children[i]._hitTest(point, opts);
} }
if (!res && checkSelf)
res = this._hitTestSelf(point, options);
if (res && res.point) if (res && res.point)
res.point = matrix.transform(res.point); res.point = matrix.transform(res.point);
options._viewMatrix = parentViewMatrix;
return res; return res;
}, },
_getChildHitTestOptions: function(options) { _hitTestChildren: function(point, options) {
return options; var children = this._children;
if (children) {
for (var i = children.length - 1; i >= 0; i--) {
var res = children[i]._hitTest(point, options);
if (res)
return res;
}
}
}, },
_hitTestSelf: function(point, options) { _hitTestSelf: function(point, options) {
@ -9122,10 +9126,10 @@ var CompoundPath = PathItem.extend({
return paths.join(' '); return paths.join(' ');
} }
}, { }, {
_getChildHitTestOptions: function(options) { _hitTestChildren: function _hitTestChildren(point, options) {
return options.class === Path || options.type === 'path' return _hitTestChildren.base.call(this, point,
? options options.class === Path || options.type === 'path' ? options
: new Base(options, { fill: false }); : new Base(options, { fill: false }));
}, },
_draw: function(ctx, param, strokeMatrix) { _draw: function(ctx, param, strokeMatrix) {

File diff suppressed because one or more lines are too long