trigger solid layer on large projections. add flat call stack limit fallback method
This commit is contained in:
parent
018f752829
commit
67bdbf9125
3 changed files with 28 additions and 1 deletions
|
|
@ -9,7 +9,16 @@ let AP = {};
|
|||
|
||||
if (!AP.flat) {
|
||||
AP.flat = function() {
|
||||
return [].concat.apply([], this);
|
||||
try {
|
||||
return [].concat.apply([], this);
|
||||
} catch (e) {
|
||||
// console.log({flat_error: e});
|
||||
let out = [];
|
||||
for (let e of this.slice()) {
|
||||
out.push(...e);
|
||||
}
|
||||
return out;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue