maxrects-packer icon indicating copy to clipboard operation
maxrects-packer copied to clipboard

A max rectangle 2d bin packer npm-module for packing glyphs or images into multiple sprite-sheet/atlas

Results 11 maxrects-packer issues
Sort by recently updated
recently updated
newest added

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4. Changelog Sourced from async's changelog. v2.6.4 Fix potential prototype pollution exploit (#1828) Commits c6bdaca Version 2.6.4 8870da9 Update built files 4df6754 update changelog 8f7f903...

dependencies

This repro will completely hang the library until it crashes: ``` const maxRectsPacker = new MaxRectsPacker(512, 512, { padding: 1, // exclusiveTag: false, }); const rects2 = [ { width:...

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

The main example has this invalid object in the input: `{width: 2000, height: 2000, name: "oversized background", {frameWidth: 500, frameHeight: 500}},`

Wondering if there's a way to do this? don't want to spend time digging into the source code if not needed, but if this isn't possible I'll implement it myself-...

It appears that the [`addArray`](https://github.com/soimy/maxrects-packer/blob/master/src/maxrects-packer.ts#L152) function only accepts types extended from [`IRectangle`](https://github.com/soimy/maxrects-packer/blob/master/src/geom/Rectangle.ts#L1-L7). This appears to be an issue because `IRectangle` includes values that should not be set during addition of...

enhancement

Hi, i found two edge cases where the library is not placing the rects as intended. ## Unrotated rect will not fit, rotated will fit but it moves to a...

This solves the bugs in #55 What have i done: - added fit or not fit check in extra test on rotated node to check for its better choice -...

Hi, here is my version on how it should work. This PR tackles #51 It currently allows only the width dimension. What have i done: - found a bug when...

`toJSON()` method shall be implemented. Related disscussion: #52

enhancement