@loaders.gl/3d-tiles 4.0.0-beta.4 → 4.0.0-beta.5

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.
Files changed (2) hide show
  1. package/dist/dist.dev.js +0 -54
  2. package/package.json +8 -8
package/dist/dist.dev.js CHANGED
@@ -13066,7 +13066,6 @@ var __exports__ = (() => {
13066
13066
  var EXT_structural_metadata_exports = {};
13067
13067
  __export(EXT_structural_metadata_exports, {
13068
13068
  decode: () => decode2,
13069
- getPropertyTableFromExtStructuralMetadata: () => getPropertyTableFromExtStructuralMetadata,
13070
13069
  name: () => name2
13071
13070
  });
13072
13071
  var EXT_STRUCTURAL_METADATA_NAME = "EXT_structural_metadata";
@@ -13075,26 +13074,6 @@ var __exports__ = (() => {
13075
13074
  const scenegraph = new GLTFScenegraph(gltfData);
13076
13075
  decodeExtStructuralMetadata(scenegraph, options);
13077
13076
  }
13078
- function getPropertyTableFromExtStructuralMetadata(extension, metadataClass) {
13079
- if (extension.propertyTables) {
13080
- const firstPropertyTable = extension?.propertyTables[0];
13081
- const propertyTableWithData = {};
13082
- for (const propertyName in firstPropertyTable.properties) {
13083
- propertyTableWithData[propertyName] = firstPropertyTable.properties[propertyName].data;
13084
- }
13085
- return propertyTableWithData;
13086
- }
13087
- if (extension.propertyTextures) {
13088
- const firstPropertyTexture = extension?.propertyTextures[0];
13089
- const propertyTableWithData = {};
13090
- for (const propertyName in firstPropertyTexture.properties) {
13091
- propertyTableWithData[propertyName] = firstPropertyTexture.properties[propertyName].data;
13092
- }
13093
- return propertyTableWithData;
13094
- }
13095
- console.warn("Cannot get property table from EXT_structural_metadata extension. There is neither propertyTables, nor propertyTextures in the extension.");
13096
- return null;
13097
- }
13098
13077
  function decodeExtStructuralMetadata(scenegraph, options) {
13099
13078
  if (!options.gltf?.loadBuffers) {
13100
13079
  return;
@@ -13363,7 +13342,6 @@ var __exports__ = (() => {
13363
13342
  var EXT_feature_metadata_exports = {};
13364
13343
  __export(EXT_feature_metadata_exports, {
13365
13344
  decode: () => decode3,
13366
- getPropertyTableFromExtFeatureMetadata: () => getPropertyTableFromExtFeatureMetadata,
13367
13345
  name: () => name3
13368
13346
  });
13369
13347
  var EXT_FEATURE_METADATA_NAME = "EXT_feature_metadata";
@@ -13372,38 +13350,6 @@ var __exports__ = (() => {
13372
13350
  const scenegraph = new GLTFScenegraph(gltfData);
13373
13351
  decodeExtFeatureMetadata(scenegraph, options);
13374
13352
  }
13375
- function getPropertyTableFromExtFeatureMetadata(extension, metadataClass) {
13376
- if (extension.featureTables) {
13377
- const firstFeatureTableName = Object.keys(extension.featureTables)?.[0];
13378
- if (firstFeatureTableName) {
13379
- const featureTable = extension.featureTables[firstFeatureTableName];
13380
- const propertyTable = {};
13381
- for (const propertyName in featureTable.properties) {
13382
- propertyTable[propertyName] = featureTable.properties[propertyName].data;
13383
- }
13384
- return propertyTable;
13385
- }
13386
- }
13387
- if (extension.featureTextures) {
13388
- let featureTexture;
13389
- for (const textureKey in extension.featureTextures) {
13390
- const texture = extension.featureTextures[textureKey];
13391
- if (texture.class === metadataClass) {
13392
- featureTexture = textureKey;
13393
- }
13394
- }
13395
- if (typeof featureTexture === "string") {
13396
- const featureTable = extension.featureTextures[featureTexture];
13397
- const propertyTable = {};
13398
- for (const propertyName in featureTable.properties) {
13399
- propertyTable[propertyName] = featureTable.properties[propertyName].data;
13400
- }
13401
- return propertyTable;
13402
- }
13403
- }
13404
- console.warn("Cannot get property table from EXT_feature_metadata extension. There is neither featureTables, nor featureTextures in the extension.");
13405
- return null;
13406
- }
13407
13353
  function decodeExtFeatureMetadata(scenegraph, options) {
13408
13354
  if (!options.gltf?.loadBuffers) {
13409
13355
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/3d-tiles",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0-beta.5",
4
4
  "description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,12 +42,12 @@
42
42
  "build-bundle": "ocular-bundle ./src/index.ts"
43
43
  },
44
44
  "dependencies": {
45
- "@loaders.gl/draco": "4.0.0-beta.4",
46
- "@loaders.gl/gltf": "4.0.0-beta.4",
47
- "@loaders.gl/loader-utils": "4.0.0-beta.4",
48
- "@loaders.gl/math": "4.0.0-beta.4",
49
- "@loaders.gl/tiles": "4.0.0-beta.4",
50
- "@loaders.gl/zip": "4.0.0-beta.4",
45
+ "@loaders.gl/draco": "4.0.0-beta.5",
46
+ "@loaders.gl/gltf": "4.0.0-beta.5",
47
+ "@loaders.gl/loader-utils": "4.0.0-beta.5",
48
+ "@loaders.gl/math": "4.0.0-beta.5",
49
+ "@loaders.gl/tiles": "4.0.0-beta.5",
50
+ "@loaders.gl/zip": "4.0.0-beta.5",
51
51
  "@math.gl/core": "^4.0.0",
52
52
  "@math.gl/geospatial": "^4.0.0",
53
53
  "@probe.gl/log": "^4.0.4",
@@ -56,5 +56,5 @@
56
56
  "peerDependencies": {
57
57
  "@loaders.gl/core": "4.0.0-beta.3"
58
58
  },
59
- "gitHead": "848c20b474532d301f2c3f8d4e1fb9bf262b86d4"
59
+ "gitHead": "a6f5a0d1a316cc22396e5a4d480c14329d1ef146"
60
60
  }