Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let MaxRectsPackerEngine = require("maxrects-packer").MaxRectsPacker;
let PACKING_LOGIC = require("maxrects-packer").PACKING_LOGIC;
let Packer = require("./Packer");
const METHOD = {
Smart: "Smart",
SmartArea: "SmartArea",
Square: "Square",
SquareArea: "SquareArea",
SmartSquare: "SmartSquare",
SmartSquareArea: "SmartSquareArea"
};
class MaxRectsPacker extends Packer {
constructor(width, height, allowRotate=false) {
super();