@loaders.gl/3d-tiles 3.2.9 → 3.2.10

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.
package/dist/dist.min.js CHANGED
@@ -11186,7 +11186,7 @@
11186
11186
  metallicFactor: 1,
11187
11187
  roughnessFactor: 1
11188
11188
  };
11189
- const textureId = material.values?.tex || material.values?.texture2d_0;
11189
+ const textureId = material.values?.tex || material.values?.texture2d_0 || material.values?.diffuseTex;
11190
11190
  const textureIndex = json.textures.findIndex((texture) => texture.id === textureId);
11191
11191
  if (textureIndex !== -1) {
11192
11192
  material.pbrMetallicRoughness.baseColorTexture = { index: textureIndex };
@@ -11729,7 +11729,7 @@
11729
11729
  async function loadImage(gltf, image, index, options, context) {
11730
11730
  const { fetch: fetch2, parse: parse5 } = context;
11731
11731
  let arrayBuffer;
11732
- if (image.uri) {
11732
+ if (image.uri && !image.hasOwnProperty("bufferView")) {
11733
11733
  const uri = resolveUrl(image.uri, options);
11734
11734
  const response = await fetch2(uri);
11735
11735
  arrayBuffer = await response.arrayBuffer();
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VERSION = void 0;
7
- var VERSION = typeof "3.2.9" !== 'undefined' ? "3.2.9" : 'latest';
7
+ var VERSION = typeof "3.2.10" !== 'undefined' ? "3.2.10" : 'latest';
8
8
  exports.VERSION = VERSION;
9
9
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/utils/version.ts"],"names":["VERSION"],"mappings":";;;;;;AAGO,IAAMA,OAAO,GAAG,mBAAuB,WAAvB,aAAmD,QAAnE","sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"file":"version.js"}
1
+ {"version":3,"sources":["../../../../src/lib/utils/version.ts"],"names":["VERSION"],"mappings":";;;;;;AAGO,IAAMA,OAAO,GAAG,oBAAuB,WAAvB,cAAmD,QAAnE","sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"file":"version.js"}
@@ -1,2 +1,2 @@
1
- export const VERSION = typeof "3.2.9" !== 'undefined' ? "3.2.9" : 'latest';
1
+ export const VERSION = typeof "3.2.10" !== 'undefined' ? "3.2.10" : 'latest';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/lib/utils/version.ts"],"names":["VERSION"],"mappings":"AAGA,OAAO,MAAMA,OAAO,GAAG,mBAAuB,WAAvB,aAAmD,QAAnE","sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"file":"version.js"}
1
+ {"version":3,"sources":["../../../../src/lib/utils/version.ts"],"names":["VERSION"],"mappings":"AAGA,OAAO,MAAMA,OAAO,GAAG,oBAAuB,WAAvB,cAAmD,QAAnE","sourcesContent":["// Version constant cannot be imported, it needs to correspond to the build version of **this** module.\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nexport const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n"],"file":"version.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/3d-tiles",
3
- "version": "3.2.9",
3
+ "version": "3.2.10",
4
4
  "description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -34,16 +34,16 @@
34
34
  "build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
35
35
  },
36
36
  "dependencies": {
37
- "@loaders.gl/draco": "3.2.9",
38
- "@loaders.gl/gltf": "3.2.9",
39
- "@loaders.gl/loader-utils": "3.2.9",
40
- "@loaders.gl/math": "3.2.9",
41
- "@loaders.gl/tiles": "3.2.9",
37
+ "@loaders.gl/draco": "3.2.10",
38
+ "@loaders.gl/gltf": "3.2.10",
39
+ "@loaders.gl/loader-utils": "3.2.10",
40
+ "@loaders.gl/math": "3.2.10",
41
+ "@loaders.gl/tiles": "3.2.10",
42
42
  "@math.gl/core": "^3.5.1",
43
43
  "@math.gl/geospatial": "^3.5.1"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@loaders.gl/core": "^3.2.0"
47
47
  },
48
- "gitHead": "9369776dfbe8535bf9c3b4fd4786476107418117"
48
+ "gitHead": "a08e4da422069e4f8f477e91410701e9b171a122"
49
49
  }