MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/snap.cafsinfotech.in/node_modules/potpack/index.d.ts
declare module "potpack" {
  export interface PotpackBox {
    w: number;
    h: number;
    /**
     * X coordinate in the resulting container.
     */
    x?: number;
    /**
     * Y coordinate in the resulting container.
     */
    y?: number;
  }

  interface PotpackStats {
    /**
     * Width of the resulting container.
     */
    w: number;
    /**
     * Height of the resulting container.
     */
    h: number;
    /**
     * The space utilization value (0 to 1). Higher is better.
     */
    fill: number;
  }

  /**
   * Packs 2D rectangles into a near-square container.
   *
   * Mutates the {@link boxes} array: it's sorted by height,
   * and box objects are augmented with `x`, `y` coordinates.
   */
  const potpack: (boxes: PotpackBox[]) => PotpackStats;

  export default potpack;
}