@creooxag/cxconverter
TypeScript icon, indicating that this package has built-in type declarations

0.0.3-alpha • Public • Published

Code explanation

Conversion

The conversion is done by:

const { gltf, metaData } = await ifc2gltf(data);

which extracts gltf together with metaData.

Importing of wasm

Using local wasm file

By default, wasm file from npm-package is used. For particular wasm file path, use the syntax prvided with following example:

const { gltf, metaData } = await ifc2gltf(dataString, "./../dist/");

Using remote wasm file

You can import wasm file dynamically from CDN, using the following syntax:

const { gltf, metaData } = await ifc2gltf(dataString, "remote");

Readme

Keywords

none

Package Sidebar

Install

npm i @creooxag/cxconverter

Weekly Downloads

1,028

Version

0.0.3-alpha

License

none

Unpacked Size

4.1 MB

Total Files

10

Last publish

Collaborators

  • creooxag