You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a rect that oversizes the exclusively tagged bin using addArray, It hangs and after some time crashes with RangeError: Maximum call stack size exceeded
constopt={smart: true,pot: false,square: false,allowRotation: false,tag: true,exclusiveTag: false}constpacker=newMaxRectsPacker(1024,1024,0,opt)letinput=[{width: 2000,height: 1000,data: {tag: 'bla'}}];packer.addArray(input);// Never returns / RangeError: Maximum call stack size exceeded
The same happens when the sum of the rects ends up oversized
letinput=[{width: 1000,height: 1000,data: {number:1,tag: 'bla'}},{width: 1000,height: 1000,data: {number:2,tag: 'bla'}}];packer.addArray(input);// Never returns / RangeError: Maximum call stack size exceeded
No big issue, just annoying when trying to reduce the size of the output bins.
Otherwise great stuff 👍
The text was updated successfully, but these errors were encountered:
When adding a rect that oversizes the exclusively tagged bin using addArray, It hangs and after some time crashes with
RangeError: Maximum call stack size exceeded
The same happens when the sum of the rects ends up oversized
No big issue, just annoying when trying to reduce the size of the output bins.
Otherwise great stuff 👍
The text was updated successfully, but these errors were encountered: