0.4.2 • Published 4 years ago

@gltf-transform/prune v0.4.2

Weekly downloads
24
License
MIT
Repository
github
Last release
4 years ago

@gltf-transform/prune

Latest NPM release License

Part of the glTF-Transform project.

Installation

Install:

npm install --save @gltf-transform/prune

Import:

// ES6
import { WebIO } from '@gltf-transform/core';
import { prune } from '@gltf-transform/prune';

// CommonJS
const { WebIO } = require('@gltf-transform/core');
const { prune } = require('@gltf-transform/prune');

// Apply.
const io = new WebIO();
const document = await io.read('/model.glb');
document.transform(prune({accessors: true, textures: false}));
const glb = io.packGLB(document); // → ArrayBuffer

Options

  • accessors: Whether to prune duplicate accessors. Default true.
  • textures: Whether to prune duplicate textures. Default true.
0.4.1

4 years ago

0.4.0

4 years ago

0.4.2

4 years ago

0.4.0-alpha.3

4 years ago

0.4.0-alpha.2

4 years ago

0.4.0-alpha.1

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.1.0

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago