mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Minor code clean-up.
This commit is contained in:
parent
1f03b00f99
commit
aa3f527ca6
1 changed files with 1 additions and 2 deletions
|
@ -365,8 +365,7 @@
|
||||||
for (var i = 0, len = children && children.length; i < len; i++) {
|
for (var i = 0, len = children && children.length; i < len; i++) {
|
||||||
var cCenter = children[i].bounds.center;
|
var cCenter = children[i].bounds.center;
|
||||||
var vec = cCenter.subtract(center);
|
var vec = cCenter.subtract(center);
|
||||||
vec = (vec.isClose([0,0], 0.5))? vec : vec.normalize(distance);
|
children[i].translate(vec.length < 0.5 ? vec : vec.normalize(distance));
|
||||||
children[i].translate(vec);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue