@loaders.gl/3d-tiles 4.3.0-alpha.1 → 4.3.0-alpha.3

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.
@@ -1,4 +1,4 @@
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.2.0" !== 'undefined' ? "4.2.0" : 'latest';
4
+ export const VERSION = typeof "4.3.0-alpha.2" !== 'undefined' ? "4.3.0-alpha.2" : 'latest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/3d-tiles",
3
- "version": "4.3.0-alpha.1",
3
+ "version": "4.3.0-alpha.3",
4
4
  "description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,15 +46,15 @@
46
46
  "build-bundle-dev": "ocular-bundle ./bundle.ts --env=dev --output=dist/dist.dev.js"
47
47
  },
48
48
  "dependencies": {
49
- "@loaders.gl/compression": "4.3.0-alpha.1",
50
- "@loaders.gl/crypto": "4.3.0-alpha.1",
51
- "@loaders.gl/draco": "4.3.0-alpha.1",
52
- "@loaders.gl/gltf": "4.3.0-alpha.1",
53
- "@loaders.gl/images": "4.3.0-alpha.1",
54
- "@loaders.gl/loader-utils": "4.3.0-alpha.1",
55
- "@loaders.gl/math": "4.3.0-alpha.1",
56
- "@loaders.gl/tiles": "4.3.0-alpha.1",
57
- "@loaders.gl/zip": "4.3.0-alpha.1",
49
+ "@loaders.gl/compression": "4.3.0-alpha.3",
50
+ "@loaders.gl/crypto": "4.3.0-alpha.3",
51
+ "@loaders.gl/draco": "4.3.0-alpha.3",
52
+ "@loaders.gl/gltf": "4.3.0-alpha.3",
53
+ "@loaders.gl/images": "4.3.0-alpha.3",
54
+ "@loaders.gl/loader-utils": "4.3.0-alpha.3",
55
+ "@loaders.gl/math": "4.3.0-alpha.3",
56
+ "@loaders.gl/tiles": "4.3.0-alpha.3",
57
+ "@loaders.gl/zip": "4.3.0-alpha.3",
58
58
  "@math.gl/core": "^4.0.1",
59
59
  "@math.gl/culling": "^4.0.1",
60
60
  "@math.gl/geospatial": "^4.0.1",
@@ -64,5 +64,5 @@
64
64
  "peerDependencies": {
65
65
  "@loaders.gl/core": "^4.0.0"
66
66
  },
67
- "gitHead": "568446ea69eb590f0c42d965459b636216cda74e"
67
+ "gitHead": "3213679d79e6ff2814d48fd3337acfa446c74099"
68
68
  }
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  // Copyright vis.gl contributors
4
4
 
5
- import {FileProvider} from '@loaders.gl/loader-utils';
5
+ import {FileProviderInterface} from '@loaders.gl/loader-utils';
6
6
  import {MD5Hash} from '@loaders.gl/crypto';
7
7
  import {DeflateCompression, NoCompression} from '@loaders.gl/compression';
8
8
  import {IndexedArchive, parseZipLocalFileHeader} from '@loaders.gl/zip';
@@ -31,7 +31,11 @@ export class Tiles3DArchive extends IndexedArchive {
31
31
  * @param fileProvider - FileProvider with the whole file
32
32
  * @param hashTable - hash info
33
33
  */
34
- constructor(fileProvider: FileProvider, hashTable?: Record<string, bigint>, fileName?: string) {
34
+ constructor(
35
+ fileProvider: FileProviderInterface,
36
+ hashTable?: Record<string, bigint>,
37
+ fileName?: string
38
+ ) {
35
39
  super(fileProvider, hashTable, fileName);
36
40
  this.hashTable = hashTable;
37
41
  }
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  // Copyright vis.gl contributors
4
4
 
5
- import {FileProvider} from '@loaders.gl/loader-utils';
5
+ import {FileProviderInterface} from '@loaders.gl/loader-utils';
6
6
  import {
7
7
  CD_HEADER_SIGNATURE,
8
8
  makeHashTableFromZipHeaders,
@@ -20,7 +20,7 @@ import {Tiles3DArchive} from './3d-tiles-archive-archive';
20
20
  * @returns 3tz file handler
21
21
  */
22
22
  export const parse3DTilesArchive = async (
23
- fileProvider: FileProvider,
23
+ fileProvider: FileProviderInterface,
24
24
  cb?: (msg: string) => void
25
25
  ): Promise<Tiles3DArchive> => {
26
26
  const hashCDOffset = await searchFromTheEnd(fileProvider, CD_HEADER_SIGNATURE);