mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-01 16:49:15 -04:00
Use faster Array construction.
This commit is contained in:
parent
49cf3201f8
commit
d3bb68d0e0
3 changed files with 3 additions and 3 deletions
src/path
|
@ -580,7 +580,7 @@ statics: {
|
|||
getBounds: function(v) {
|
||||
var min = v.slice(0, 2), // Start with values of point1
|
||||
max = min.slice(), // clone
|
||||
roots = new Array(2);
|
||||
roots = [0, 0];
|
||||
for (var i = 0; i < 2; i++)
|
||||
Curve._addBounds(v[i], v[i + 2], v[i + 4], v[i + 6],
|
||||
i, 0, min, max, roots);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue