@loaders.gl/draco 4.4.0-alpha.13 → 4.4.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  globalThis._loadersgl_.version = NPM_TAG;
12
12
  warningIssued = true;
13
13
  } else {
14
- globalThis._loadersgl_.version = "4.4.0-alpha.13";
14
+ globalThis._loadersgl_.version = "4.4.0-alpha.14";
15
15
  }
16
16
  }
17
17
  return globalThis._loadersgl_.version;
@@ -678,7 +678,7 @@
678
678
  }
679
679
 
680
680
  // src/lib/utils/version.ts
681
- var VERSION2 = true ? "4.4.0-alpha.13" : "latest";
681
+ var VERSION2 = true ? "4.4.0-alpha.14" : "latest";
682
682
 
683
683
  // src/draco-writer.ts
684
684
  var DEFAULT_DRACO_WRITER_OPTIONS = {
package/dist/index.cjs CHANGED
@@ -469,7 +469,7 @@ function getEntries(container) {
469
469
  }
470
470
 
471
471
  // dist/lib/utils/version.js
472
- var VERSION = true ? "4.4.0-alpha.13" : "latest";
472
+ var VERSION = true ? "4.4.0-alpha.14" : "latest";
473
473
 
474
474
  // dist/draco-writer.js
475
475
  var DEFAULT_DRACO_WRITER_OPTIONS = {
@@ -10,7 +10,10 @@ export declare const DRACO_EXTERNAL_LIBRARIES: {
10
10
  ENCODER: string;
11
11
  };
12
12
  export declare const DRACO_EXTERNAL_LIBRARY_URLS: {
13
- [x: string]: string;
13
+ [DRACO_EXTERNAL_LIBRARIES.DECODER]: string;
14
+ [DRACO_EXTERNAL_LIBRARIES.DECODER_WASM]: string;
15
+ [DRACO_EXTERNAL_LIBRARIES.FALLBACK_DECODER]: string;
16
+ [DRACO_EXTERNAL_LIBRARIES.ENCODER]: string;
14
17
  };
15
18
  export declare function loadDracoDecoderModule(options: LoadLibraryOptions | undefined, type: 'wasm' | 'js'): Promise<any>;
16
19
  export declare function loadDracoEncoderModule(options: LoadLibraryOptions): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"draco-module-loader.d.ts","sourceRoot":"","sources":["../../src/lib/draco-module-loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,kBAAkB,EAAC,MAAM,0BAA0B,CAAC;AAOzF,eAAO,MAAM,wBAAwB;IACnC,2DAA2D;;IAE3D,4DAA4D;;IAE5D,2FAA2F;;IAE3F,oBAAoB;;CAErB,CAAC;AAEF,eAAO,MAAM,2BAA2B;;CAKvC,CAAC;AAKF,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,kBAAkB,YAAK,EAChC,IAAI,EAAE,MAAM,GAAG,IAAI,gBAcpB;AAED,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,kBAAkB,gBAavE"}
1
+ {"version":3,"file":"draco-module-loader.d.ts","sourceRoot":"","sources":["../../src/lib/draco-module-loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,kBAAkB,EAAC,MAAM,0BAA0B,CAAC;AAOzF,eAAO,MAAM,wBAAwB;IACnC,2DAA2D;;IAE3D,4DAA4D;;IAE5D,2FAA2F;;IAE3F,oBAAoB;;CAErB,CAAC;AAEF,eAAO,MAAM,2BAA2B;IACtC,CAAC,wBAAwB,CAAC,OAAO,CAAC,SAA6D;IAC/F,CAAC,wBAAwB,CAAC,YAAY,CAAC,SAAkE;IACzG,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,SAAsE;IACjH,CAAC,wBAAwB,CAAC,OAAO,CAAC,SAA0H;CAC7J,CAAC;AAKF,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,kBAAkB,YAAK,EAChC,IAAI,EAAE,MAAM,GAAG,IAAI,gBAcpB;AAED,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,kBAAkB,gBAavE"}
@@ -62,12 +62,12 @@ export default class DracoParser {
62
62
  * For meshes, we need indices to define the faces.
63
63
  * @param dracoGeometry
64
64
  */
65
- _getTriangleListIndices(dracoGeometry: Mesh): Uint32Array;
65
+ _getTriangleListIndices(dracoGeometry: Mesh): Uint32Array<ArrayBuffer>;
66
66
  /**
67
67
  * For meshes, we need indices to define the faces.
68
68
  * @param dracoGeometry
69
69
  */
70
- _getTriangleStripIndices(dracoGeometry: Mesh): Int32Array;
70
+ _getTriangleStripIndices(dracoGeometry: Mesh): Int32Array<ArrayBufferLike>;
71
71
  /**
72
72
  *
73
73
  * @param dracoGeometry
@@ -1,5 +1,5 @@
1
1
  // Version constant cannot be imported, it needs to correspond to the build version of **this** module.
2
2
  // __VERSION__ is injected by babel-plugin-version-inline
3
3
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
4
- export const VERSION = typeof "4.4.0-alpha.13" !== 'undefined' ? "4.4.0-alpha.13" : 'latest';
4
+ export const VERSION = typeof "4.4.0-alpha.14" !== 'undefined' ? "4.4.0-alpha.14" : 'latest';
5
5
  //# sourceMappingURL=version.js.map
@@ -1,18 +1,17 @@
1
1
  "use strict";
2
2
  // `@loaders.gl/draco` is an ESM package, so Node.js treats `.js` files as ES modules when executed directly.
3
3
  // The prebuilt Node worker bundle is emitted as CommonJS, so we load it by compiling it as CommonJS.
4
- /* @ts-expect-error TS doesn't like require in an ESM context */
5
4
  const fs = require('node:fs');
6
- /* @ts-expect-error TS doesn't like require in an ESM context */
7
5
  const path = require('node:path');
8
- /* @ts-expect-error TS doesn't like require in an ESM context */
9
6
  const Module = require('node:module');
10
7
  const filename = path.join(__dirname, '../../dist/draco-writer-worker-node.js');
11
8
  const code = fs.readFileSync(filename, 'utf8');
12
9
  const workerModule = new Module(filename);
13
10
  workerModule.filename = filename;
11
+ // @ts-expect-error
14
12
  // eslint-disable-next-line no-underscore-dangle
15
13
  workerModule.paths = Module._nodeModulePaths(path.dirname(filename));
14
+ // @ts-expect-error
16
15
  // eslint-disable-next-line no-underscore-dangle
17
16
  workerModule._compile(code, filename);
18
17
  //# sourceMappingURL=draco-writer-worker-node.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"draco-writer-worker-node.cjs","sourceRoot":"","sources":["../../src/workers/draco-writer-worker-node.cjs"],"names":[],"mappings":";AAAA,6GAA6G;AAC7G,qGAAqG;AACrG,gEAAgE;AAChE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9B,gEAAgE;AAChE,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClC,gEAAgE;AAChE,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAEtC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wCAAwC,CAAC,CAAC;AAChF,MAAM,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE/C,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1C,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACjC,gDAAgD;AAChD,YAAY,CAAC,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrE,gDAAgD;AAChD,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"draco-writer-worker-node.cjs","sourceRoot":"","sources":["../../src/workers/draco-writer-worker-node.cjs"],"names":[],"mappings":";AAAA,6GAA6G;AAC7G,qGAAqG;AACrG,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9B,MAAM,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClC,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAEtC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wCAAwC,CAAC,CAAC;AAChF,MAAM,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE/C,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1C,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACjC,mBAAmB;AACnB,gDAAgD;AAChD,YAAY,CAAC,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrE,mBAAmB;AACnB,gDAAgD;AAChD,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/draco",
3
- "version": "4.4.0-alpha.13",
3
+ "version": "4.4.0-alpha.14",
4
4
  "description": "Framework-independent loader and writer for Draco compressed meshes and point clouds",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -69,10 +69,10 @@
69
69
  "build-writer-worker-node": "esbuild src/workers/draco-writer-worker-node.ts --outfile=dist/draco-writer-worker-node.js --target=node16 --platform=node --bundle --sourcemap --define:__VERSION__=\\\"$npm_package_version\\\""
70
70
  },
71
71
  "dependencies": {
72
- "@loaders.gl/loader-utils": "4.4.0-alpha.13",
73
- "@loaders.gl/schema": "4.4.0-alpha.13",
74
- "@loaders.gl/schema-utils": "4.4.0-alpha.13",
75
- "@loaders.gl/worker-utils": "4.4.0-alpha.13",
72
+ "@loaders.gl/loader-utils": "4.4.0-alpha.14",
73
+ "@loaders.gl/schema": "4.4.0-alpha.14",
74
+ "@loaders.gl/schema-utils": "4.4.0-alpha.14",
75
+ "@loaders.gl/worker-utils": "4.4.0-alpha.14",
76
76
  "draco3d": "1.5.7"
77
77
  },
78
78
  "devDependencies": {
@@ -81,5 +81,5 @@
81
81
  "peerDependencies": {
82
82
  "@loaders.gl/core": "4.4.0-alpha.1"
83
83
  },
84
- "gitHead": "5145c7b32353d00f414b85773caa9064af412434"
84
+ "gitHead": "139714d328ba86acff50738576a663917f76db80"
85
85
  }
@@ -1,10 +1,7 @@
1
1
  // `@loaders.gl/draco` is an ESM package, so Node.js treats `.js` files as ES modules when executed directly.
2
2
  // The prebuilt Node worker bundle is emitted as CommonJS, so we load it by compiling it as CommonJS.
3
- /* @ts-expect-error TS doesn't like require in an ESM context */
4
3
  const fs = require('node:fs');
5
- /* @ts-expect-error TS doesn't like require in an ESM context */
6
4
  const path = require('node:path');
7
- /* @ts-expect-error TS doesn't like require in an ESM context */
8
5
  const Module = require('node:module');
9
6
 
10
7
  const filename = path.join(__dirname, '../../dist/draco-writer-worker-node.js');
@@ -12,7 +9,9 @@ const code = fs.readFileSync(filename, 'utf8');
12
9
 
13
10
  const workerModule = new Module(filename);
14
11
  workerModule.filename = filename;
12
+ // @ts-expect-error
15
13
  // eslint-disable-next-line no-underscore-dangle
16
14
  workerModule.paths = Module._nodeModulePaths(path.dirname(filename));
15
+ // @ts-expect-error
17
16
  // eslint-disable-next-line no-underscore-dangle
18
17
  workerModule._compile(code, filename);