# gdxjs-texture-packer

> A little utility to pack a texture atlas at runtime. Written in typescript, used for gdxjs.

Latest version **0.1.2** (published 2022-12-03) · 0 weekly downloads

## Install

```sh
npm install gdxjs-texture-packer
pnpm add gdxjs-texture-packer
yarn add gdxjs-texture-packer
bun add gdxjs-texture-packer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2022-12-03 |
| First published | 2022-12-03 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | implicit-invocation |

## Links

- npm: https://www.npmjs.com/package/gdxjs-texture-packer
- npm.io page: https://npm.io/package/gdxjs-texture-packer

## Dependencies (3)

- [gdxjs](https://npm.io/package/gdxjs.md) ^1.1.86
- [buffer](https://npm.io/package/buffer.md) ^6.0.3
- [maxrects-packer](https://npm.io/package/maxrects-packer.md) ^2.7.3

## Recent versions

- 0.1.2 (latest) — 2022-12-03
- 0.1.1 — 2022-12-03
- 0.1.0 — 2022-12-03

## README

# gdxjs-texture-packer

A little utility to pack a texture atlas at runtime. Written in typescript, used for gdxjs.

## Installation

    $ npm install gdxjs-texture-packer

## Usage

```Javascript
import { packRuntimeAtlas } from "./gdxjs-texture-packer";

...

const regionsToPack: TextureRegion[] = [];

regionsToPack.push(...originalAtlas.findRegions('name_of_regions_1'));
regionsToPack.push(...originalAtlas.findRegions('name_of_regions_2'));

const runtimeAtlas = packRuntimeAtlas(gl, regionsToPack);
```

---
_Source: https://npm.io/package/gdxjs-texture-packer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
