@jdultra/threedtiles 13.0.33 → 13.1.1
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/splats/SplatsMesh.d.ts +1 -1
- package/dist/threedtiles.cjs.js +8 -8
- package/dist/threedtiles.cjs.js.map +1 -1
- package/dist/threedtiles.es.js +982 -947
- package/dist/threedtiles.es.js.map +1 -1
- package/dist/threedtiles.umd.js +8 -8
- package/dist/threedtiles.umd.js.map +1 -1
- package/dist/tileset/TileLoader.d.ts +7 -0
- package/package.json +4 -4
|
@@ -23,6 +23,7 @@ export class TileLoader {
|
|
|
23
23
|
* @param {sring} [options.proxy = undefined] - An optional proxy that tile requests will be directed too as POST requests with the actual tile url in the body of the request.
|
|
24
24
|
* @param {KTX2Loader} [options.ktx2Loader = undefined] - A KTX2Loader (three/addons)
|
|
25
25
|
* @param {DRACOLoader} [options.dracoLoader = undefined] - A DRACOLoader (three/addons)
|
|
26
|
+
* @param {number} [options.timeout = 5000] - number of milliseconds to keep tiles in cache before clearing
|
|
26
27
|
*/
|
|
27
28
|
constructor(options?: {
|
|
28
29
|
renderer?: any;
|
|
@@ -32,7 +33,9 @@ export class TileLoader {
|
|
|
32
33
|
proxy?: any;
|
|
33
34
|
ktx2Loader?: any;
|
|
34
35
|
dracoLoader?: any;
|
|
36
|
+
timeout?: number | undefined;
|
|
35
37
|
} | undefined);
|
|
38
|
+
timeout: number;
|
|
36
39
|
renderer: any;
|
|
37
40
|
zUpToYUpMatrix: THREE.Matrix4;
|
|
38
41
|
maxCachedItems: number;
|
|
@@ -41,7 +44,9 @@ export class TileLoader {
|
|
|
41
44
|
pointsCallback: Function | undefined;
|
|
42
45
|
gltfLoader: any;
|
|
43
46
|
hasDracoLoader: boolean | undefined;
|
|
47
|
+
dracoLoader: any;
|
|
44
48
|
hasKTX2Loader: boolean | undefined;
|
|
49
|
+
ktx2loader: any;
|
|
45
50
|
hasMeshOptDecoder: boolean;
|
|
46
51
|
b3dmDecoder: B3DMDecoder;
|
|
47
52
|
splatsDecoder: SplatsDecoder;
|
|
@@ -87,7 +92,9 @@ export class TileLoader {
|
|
|
87
92
|
* @param {string|Number} tileIdentifier the tile ID
|
|
88
93
|
*/
|
|
89
94
|
invalidate(path: string, tileIdentifier: string | number): void;
|
|
95
|
+
dispose(): void;
|
|
90
96
|
_checkSize(): void;
|
|
97
|
+
_disposeEntryContent(entry: any): void;
|
|
91
98
|
}
|
|
92
99
|
import * as THREE from 'three';
|
|
93
100
|
import { B3DMDecoder } from "../decoder/B3DMDecoder";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jdultra/threedtiles",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.1",
|
|
4
4
|
"author": "Emeric Beaufays",
|
|
5
5
|
"description": "An OGC 3DTiles viewer for Three.js",
|
|
6
6
|
"main": "dist/threedtiles.cjs.js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"test": "vitest run"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"three": "^0.
|
|
31
|
+
"three": "^0.173.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@haragei/dag": "^1.1.0",
|
|
35
35
|
"data-structure-typed": "^1.53.5",
|
|
36
|
-
"meshoptimizer": "^0.
|
|
36
|
+
"meshoptimizer": "^0.22.0",
|
|
37
37
|
"path-browserify": "^1.0.1",
|
|
38
38
|
"uuid": "^8.3.2"
|
|
39
39
|
},
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
44
44
|
"@rollup/plugin-inject": "^5.0.5",
|
|
45
45
|
"@rollup/plugin-terser": "^0.4.4",
|
|
46
|
-
"@types/three": "^0.
|
|
46
|
+
"@types/three": "^0.173.0",
|
|
47
47
|
"install": "^0.13.0",
|
|
48
48
|
"jsdom": "^25.0.1",
|
|
49
49
|
"typescript": "^5.6.3",
|