@jdultra/threedtiles 13.1.9 → 13.2.0
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 +8 -4
- package/dist/splats/SplatsMeshQuality.d.ts +61 -0
- package/dist/splats/SplatsMeshScreenSpace.d.ts +61 -0
- package/dist/splats/SplatsMeshWorldSpeed.d.ts +61 -0
- package/dist/threedtiles.cjs.js +171 -107
- package/dist/threedtiles.cjs.js.map +1 -1
- package/dist/threedtiles.es.js +6806 -2726
- package/dist/threedtiles.es.js.map +1 -1
- package/dist/threedtiles.umd.js +171 -107
- package/dist/threedtiles.umd.js.map +1 -1
- package/dist/tileset/OGC3DTile.d.ts +7 -2
- package/package.json +14 -13
|
@@ -11,8 +11,8 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
11
11
|
* @param {Number} [properties.geometricErrorMultiplier = 1] - the geometric error of the parent. 1.0 by default corresponds to a maxScreenSpaceError of 16
|
|
12
12
|
* @param {Boolean} [properties.loadOutsideView = false] - if truthy, tiles otside the camera frustum will be loaded with the least possible amount of detail
|
|
13
13
|
* @param {TileLoader} [properties.tileLoader = undefined] - A tile loader that can be shared among tilesets in order to share a common cache.
|
|
14
|
-
* @param {Function} [properties.meshCallback = undefined] - A callback function that will be called on every mesh
|
|
15
|
-
* @param {Function} [properties.pointsCallback = undefined] - A callback function that will be called on every points
|
|
14
|
+
* @param {Function} [properties.meshCallback = undefined] - A callback function that will be called on every mesh (if TileLoader is provided, this function will be overridden by the tileLoader's own callback)
|
|
15
|
+
* @param {Function} [properties.pointsCallback = undefined] - A callback function that will be called on every points (if TileLoader is provided, this function will be overridden by the tileLoader's own callback)
|
|
16
16
|
* @param {Function} [properties.onLoadCallback = undefined] - A callback function that will be called when the root tile has been loaded
|
|
17
17
|
* @param {OcclusionCullingService} [properties.occlusionCullingService = undefined] - A service that handles occlusion culling
|
|
18
18
|
* @param {Boolean} [properties.centerModel = false] - If true, the tileset will be centered on 0,0,0 and in the case of georeferenced tilesets that use the "region" bounding volume, it will also be rotated so that the up axis matched the world y axis.
|
|
@@ -38,6 +38,7 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
38
38
|
* - "IMMEDIATE" skips intermediate LODs. tiles are missing until loaded when moving to a new area
|
|
39
39
|
* @param {String} [properties.drawBoundingVolume = false] - optional draws the bounding volume (may cause flickering)
|
|
40
40
|
* @param {String} [properties.splatsFragmentShader = undefined] - optional pass a custom fragment shader for rendering splats
|
|
41
|
+
* @param {number} [properties.splatsQuality = 1.0] - optional pass a visual quality for splats between 0 and 1. Lower quality improves performance at the cost of visual approximations.
|
|
41
42
|
*/
|
|
42
43
|
constructor(properties?: {
|
|
43
44
|
url?: string | undefined;
|
|
@@ -69,8 +70,10 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
69
70
|
loadingStrategy?: string | undefined;
|
|
70
71
|
drawBoundingVolume?: string | undefined;
|
|
71
72
|
splatsFragmentShader?: string | undefined;
|
|
73
|
+
splatsQuality?: number | undefined;
|
|
72
74
|
});
|
|
73
75
|
splatsMesh: any;
|
|
76
|
+
splatsQuality: number;
|
|
74
77
|
contentURL: any[];
|
|
75
78
|
rendererSize: THREE.Vector2;
|
|
76
79
|
loadingStrategy: string;
|
|
@@ -202,6 +205,8 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
202
205
|
*/
|
|
203
206
|
setDistanceBias(distanceBias: number): void;
|
|
204
207
|
_transformWGS84ToCartesian(lon: any, lat: any, h: any, sfct: any): void;
|
|
208
|
+
hideCopyright(): void;
|
|
209
|
+
showCopyright(): void;
|
|
205
210
|
}
|
|
206
211
|
/**
|
|
207
212
|
* @returns a list of vendors that are required by copyright to be displayed in the app.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jdultra/threedtiles",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"author": "Emeric Beaufays",
|
|
5
5
|
"description": "An OGC 3DTiles viewer for Three.js",
|
|
6
6
|
"main": "dist/threedtiles.cjs.js",
|
|
@@ -28,30 +28,31 @@
|
|
|
28
28
|
"test": "vitest run"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"three": "^0.
|
|
31
|
+
"three": "^0.176.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@haragei/dag": "^1.1.0",
|
|
35
35
|
"data-structure-typed": "^2.0.3",
|
|
36
|
-
"
|
|
36
|
+
"mathjs": "^14.4.0",
|
|
37
|
+
"meshoptimizer": "^0.23.0",
|
|
37
38
|
"path-browserify": "^1.0.1",
|
|
38
39
|
"uuid": "^11.1.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
42
42
|
"@laynezh/vite-plugin-lib-assets": "^1.1.0",
|
|
43
43
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
44
44
|
"@rollup/plugin-inject": "^5.0.5",
|
|
45
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
45
46
|
"@rollup/plugin-terser": "^0.4.4",
|
|
46
|
-
"@types/three": "^0.
|
|
47
|
-
"install": "^0.13.0",
|
|
48
|
-
"jsdom": "^26.0.0",
|
|
49
|
-
"typescript": "^5.8.2",
|
|
50
|
-
"vite": "^6.2.1",
|
|
51
|
-
"vite-plugin-static-copy": "^2.3.0",
|
|
52
|
-
"vitest": "^3.0.8",
|
|
47
|
+
"@types/three": "^0.176.0",
|
|
53
48
|
"buffer": "^6.0.3",
|
|
49
|
+
"install": "^0.13.0",
|
|
50
|
+
"jsdom": "^26.1.0",
|
|
54
51
|
"process": "^0.11.10",
|
|
55
|
-
"rollup-plugin-polyfill-node": "^0.13.0"
|
|
52
|
+
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
53
|
+
"typescript": "^5.8.3",
|
|
54
|
+
"vite": "^6.3.5",
|
|
55
|
+
"vite-plugin-static-copy": "^2.3.1",
|
|
56
|
+
"vitest": "^3.1.3"
|
|
56
57
|
}
|
|
57
|
-
}
|
|
58
|
+
}
|