npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lens-collada-exporter

v1.0.0

Published

Collada / DAE Format exporter for THREE js geometry ***customized for 3d lens.

Readme

This package is deprecated

This exporter is included and updated as a part of the THREE js project and is no longer maintained in this repository.

collada-exporter-js

npm version lgtm code quality

Collada / DAE Format exporter for THREE js geometry. The format is described here.

This exporter is included in the THREE.js examples folder here.

Use

var geometry, mesh;
// ...create geometry to export...

var exporter = new THREE.ColladaExporter();

// Form the file content based on the mesh
// and geometry within
var { data, textures } = exporter.parse(mesh);

// save the files!
const zip = new JSZip();
zip.file( 'myCollada.dae', data.data );
data.textures.forEach( tex => zip.file( `${ t.directory }${ tex.name }.${ tex.ext }`, tex.data ) );

ColladaExporter.parse(object, onDone, options)

Converts the provided object tree into a collada file and associated textures. Returns the following object:

{
	// Collada file content
	data: "",

	// List of referenced texures
	textures: [{

		// File directory, name, and extension of the texture data
		directory: "",
		name: "",
		ext: "",

		// The texture data and original texture object
		data: [],
		original: <THREE.Texture>
	}, ...]
}

object

The object to export as a Collada file.

onDone

An optional callback for when the model has completed being processed. The same data is returned from the function.

options

options.version

The Collada file version to export. 1.4.1 and 1.5.0 are the only valid values.

Defaults to 1.4.1.

options.author

The author to include in the header. Excluded if null.

Defaults to null.

options.textureDirectory

The directory relative to the dae file that the textures should be saved to.

Defaults to '', or next to the Collada file.

ColladaArchiveExporter.parse(object, onDone, options)

Writes the processed dae, textures, and manifest.xml file to a zip format to align with the zae Collada format. Requires the ColladaExporter and JSZip.

Limitations

  • Can only export model geometry, materials, and textures. Animations, skinning, joints, kinematics and other features are not included (issue).
  • Only phong (default), lambert, and constant material tags are supported.
  • Only diffuse, specular, and emission maps are supported for export.
  • Diffuse maps cannot be exported with a tint color (per the spec).
  • MeshLab has problems importing attributes with shared index offsets (issue).