@loaders.gl/3d-tiles 4.2.0-alpha.5 → 4.2.0-alpha.6
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/3d-tiles-archive/3d-tiles-archive-archive.js +2 -0
- package/dist/3d-tiles-archive-loader.js +1 -1
- package/dist/dist.dev.js +7059 -5581
- package/dist/dist.min.js +1 -1
- package/dist/index.cjs +18 -5
- package/dist/index.cjs.map +2 -2
- package/dist/lib/classes/helpers/tile-3d-accessor-utils.d.ts +1 -1
- package/dist/lib/classes/tile-3d-batch-table.d.ts +1 -1
- package/dist/lib/classes/tile-3d-batch-table.js +9 -0
- package/dist/lib/classes/tile-3d-feature-table.js +4 -2
- package/dist/lib/parsers/helpers/parse-3d-implicit-tiles.js +1 -1
- package/dist/lib/utils/version.js +1 -1
- package/package.json +14 -10
- package/src/lib/parsers/helpers/parse-3d-implicit-tiles.ts +1 -1
|
@@ -21,7 +21,7 @@ export default class Tile3DBatchTableParser {
|
|
|
21
21
|
_setBinaryProperty(binaryProperty: any, index: any, value: any): void;
|
|
22
22
|
_initializeBinaryProperties(): Record<string, any> | null;
|
|
23
23
|
_initializeBinaryProperty(name: any, property: any): {
|
|
24
|
-
typedArray: import("@math.gl/
|
|
24
|
+
typedArray: import("@math.gl/core").TypedArray;
|
|
25
25
|
componentCount: any;
|
|
26
26
|
unpack: any;
|
|
27
27
|
pack: any;
|
|
@@ -18,6 +18,15 @@ const IGNORED_PROPERTY_FIELDS = {
|
|
|
18
18
|
};
|
|
19
19
|
// The size of this array equals the maximum instance count among all loaded tiles, which has the potential to be large.
|
|
20
20
|
export default class Tile3DBatchTableParser {
|
|
21
|
+
json;
|
|
22
|
+
binary;
|
|
23
|
+
featureCount;
|
|
24
|
+
_extensions;
|
|
25
|
+
// Copy all top-level property fields from the json object, ignoring special fields
|
|
26
|
+
_properties;
|
|
27
|
+
_binaryProperties;
|
|
28
|
+
// TODO: hierarchy support is only partially implemented and not tested
|
|
29
|
+
_hierarchy;
|
|
21
30
|
constructor(json, binary, featureCount, options = {}) {
|
|
22
31
|
assert(featureCount >= 0);
|
|
23
32
|
this.json = json || {};
|
|
@@ -7,9 +7,11 @@ import { GL, GLType } from '@loaders.gl/math';
|
|
|
7
7
|
// Reference:
|
|
8
8
|
// https://github.com/AnalyticalGraphicsInc/cesium/blob/1de96d087f0b17575eb1a3f736407b348c765d59/Source/Scene/Cesium3DTileFeatureTable.js
|
|
9
9
|
export default class Tile3DFeatureTable {
|
|
10
|
+
json;
|
|
11
|
+
buffer;
|
|
12
|
+
featuresLength = 0;
|
|
13
|
+
_cachedTypedArrays = {};
|
|
10
14
|
constructor(featureTableJson, featureTableBinary) {
|
|
11
|
-
this.featuresLength = 0;
|
|
12
|
-
this._cachedTypedArrays = {};
|
|
13
15
|
this.json = featureTableJson;
|
|
14
16
|
this.buffer = featureTableBinary;
|
|
15
17
|
}
|
|
@@ -250,7 +250,7 @@ function calculateBoundingVolumeForChildTile(level, rootBoundingVolume, childCoo
|
|
|
250
250
|
if (rootBoundingVolume.box) {
|
|
251
251
|
return rootBoundingVolume;
|
|
252
252
|
}
|
|
253
|
-
throw new Error(`Unsupported bounding volume type ${rootBoundingVolume}`);
|
|
253
|
+
throw new Error(`Unsupported bounding volume type ${JSON.stringify(rootBoundingVolume)}`);
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* Do binary concatenation
|
|
@@ -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-alpha.
|
|
4
|
+
export const VERSION = typeof "4.2.0-alpha.5" !== 'undefined' ? "4.2.0-alpha.5" : 'latest';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/3d-tiles",
|
|
3
|
-
"version": "4.2.0-alpha.
|
|
3
|
+
"version": "4.2.0-alpha.6",
|
|
4
4
|
"description": "3D Tiles, an open standard for streaming massive heterogeneous 3D geospatial datasets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -46,19 +46,23 @@
|
|
|
46
46
|
"build-bundle-dev": "ocular-bundle ./bundle.ts --env=dev --output=dist/dist.dev.js"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@loaders.gl/
|
|
50
|
-
"@loaders.gl/
|
|
51
|
-
"@loaders.gl/
|
|
52
|
-
"@loaders.gl/
|
|
53
|
-
"@loaders.gl/
|
|
54
|
-
"@loaders.gl/
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
49
|
+
"@loaders.gl/compression": "4.2.0-alpha.6",
|
|
50
|
+
"@loaders.gl/crypto": "4.2.0-alpha.6",
|
|
51
|
+
"@loaders.gl/draco": "4.2.0-alpha.6",
|
|
52
|
+
"@loaders.gl/gltf": "4.2.0-alpha.6",
|
|
53
|
+
"@loaders.gl/images": "4.2.0-alpha.6",
|
|
54
|
+
"@loaders.gl/loader-utils": "4.2.0-alpha.6",
|
|
55
|
+
"@loaders.gl/math": "4.2.0-alpha.6",
|
|
56
|
+
"@loaders.gl/tiles": "4.2.0-alpha.6",
|
|
57
|
+
"@loaders.gl/zip": "4.2.0-alpha.6",
|
|
58
|
+
"@math.gl/core": "^4.0.1",
|
|
59
|
+
"@math.gl/culling": "^4.0.1",
|
|
60
|
+
"@math.gl/geospatial": "^4.0.1",
|
|
57
61
|
"@probe.gl/log": "^4.0.4",
|
|
58
62
|
"long": "^5.2.1"
|
|
59
63
|
},
|
|
60
64
|
"peerDependencies": {
|
|
61
65
|
"@loaders.gl/core": "^4.0.0"
|
|
62
66
|
},
|
|
63
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "37bd8ca71763529f18727ee4bf29dd176aa914ca"
|
|
64
68
|
}
|
|
@@ -384,7 +384,7 @@ function calculateBoundingVolumeForChildTile(
|
|
|
384
384
|
return rootBoundingVolume;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
throw new Error(`Unsupported bounding volume type ${rootBoundingVolume}`);
|
|
387
|
+
throw new Error(`Unsupported bounding volume type ${JSON.stringify(rootBoundingVolume)}`);
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
/**
|