@jdultra/threedtiles 11.0.0 → 11.1.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/README.md +115 -0
- package/dist/index.html +1 -1
- package/dist/threedtiles.min.js +1 -1
- package/dist/threedtiles.min.js.map +1 -1
- package/dist/tileset/OGC3DTile.d.ts +11 -2
- package/dist/tileset/TileLoader.d.ts +4 -0
- package/package.json +1 -1
|
@@ -168,11 +168,20 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
168
168
|
* @param {Number} geometricErrorMultiplier set the LOD multiplier for the entire tileset
|
|
169
169
|
*/
|
|
170
170
|
setGeometricErrorMultiplier(geometricErrorMultiplier: number): void;
|
|
171
|
+
/**
|
|
172
|
+
* Set the Distance Bias for the tileset.
|
|
173
|
+
* the {@param distanceBias} can be a number between 0 and infinity.
|
|
174
|
+
* A {@param distanceBias} is applied as an exponent to camera-to-tile distance.
|
|
175
|
+
* the {@link geometricErrorMultiplier} should be used to balance out the amount of detail loaded
|
|
176
|
+
*
|
|
177
|
+
* @param {Number} distanceBias set the distance bias for the entire tileset
|
|
178
|
+
*/
|
|
179
|
+
setDistanceBias(distanceBias: number): void;
|
|
171
180
|
_transformWGS84ToCartesian(lon: any, lat: any, h: any, sfct: any): void;
|
|
172
181
|
}
|
|
173
182
|
/**
|
|
174
|
-
* @returns a list of vendors that
|
|
183
|
+
* @returns a list of vendors that are required by copyright to be displayed in the app.
|
|
175
184
|
*/
|
|
176
|
-
export function getOGC3DTilesCopyrightInfo(): string;
|
|
185
|
+
export function getOGC3DTilesCopyrightInfo(): string[];
|
|
177
186
|
import * as THREE from 'three';
|
|
178
187
|
import { TileLoader } from "./TileLoader";
|
|
@@ -75,6 +75,10 @@ export class TileLoader {
|
|
|
75
75
|
* @param {Number} geometricError
|
|
76
76
|
*/
|
|
77
77
|
get(abortController: AbortController, tileIdentifier: string | number, path: string, callback: Function, distanceFunction: Function, getSiblings: Function, level: number, sceneZupToYup: boolean, meshZupToYup: boolean, geometricError: number): void;
|
|
78
|
+
/**
|
|
79
|
+
* Invalidates all the unused cached tiles.
|
|
80
|
+
*/
|
|
81
|
+
clear(): void;
|
|
78
82
|
/**
|
|
79
83
|
* unregisters a tile content for a specific tile, removing it from the cache if no other tile is using the same content.
|
|
80
84
|
* @param {string} path the content path/url
|