mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
parent
08d75a48ff
commit
f95d6ab310
1 changed files with 4 additions and 3 deletions
|
@ -1963,12 +1963,13 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
|||
// method can be used for Project#layers as well in Project.
|
||||
_getItems: function _getItems(children, match, matrix, param,
|
||||
firstOnly) {
|
||||
if (!param && typeof match === 'object') {
|
||||
if (!param) {
|
||||
// Set up a couple of "side-car" values for the recursive calls
|
||||
// of _getItems below, mainly related to the handling of
|
||||
// inside / overlapping:
|
||||
var overlapping = match.overlapping,
|
||||
inside = match.inside,
|
||||
var obj = typeof match === 'object' && match || {},
|
||||
overlapping = obj.overlapping,
|
||||
inside = obj.inside,
|
||||
// If overlapping is set, we also perform the inside check:
|
||||
bounds = overlapping || inside,
|
||||
rect = bounds && Rectangle.read([bounds]);
|
||||
|
|
Loading…
Reference in a new issue