From 63ee08b263a93c7813f6ce6734c31d3bc0b053d9 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Mon, 13 Jan 2025 18:07:35 +0900 Subject: [PATCH] loadPercent -> loadProgress --- README.md | 16 ++++++++-------- src/base/TilesRendererBase.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 03c0628c5..c96255010 100644 --- a/README.md +++ b/README.md @@ -392,14 +392,6 @@ If true then the `raycast` functions of the loaded tile objects are overriden to If you would like to manage raycasting against tiles yourself this behavior can be disabled if needed by setting `optizeRaycast` to false. -### .preprocessURL - -```js -preprocessURL = null : ( uri : string | URL ) => string | URL; -``` - -Function to preprocess the url for each individual tile geometry or child tile set to be loaded. If null then the url is used directly. - ### .lruCache ```js @@ -446,6 +438,14 @@ manager : LoadingManager The manager used when loading tile geometry. +### .loadProgress + +```js +readOnly loadProgress : Number +``` + +Returns the total load progress between `[0, 1]`. Progress is measured since the last set of loading tiles completed. + ### .constructor ```js diff --git a/src/base/TilesRendererBase.js b/src/base/TilesRendererBase.js index 9ed11336b..5500b0e6a 100644 --- a/src/base/TilesRendererBase.js +++ b/src/base/TilesRendererBase.js @@ -87,7 +87,7 @@ export class TilesRendererBase { } - get loadPercent() { + get loadProgress() { const stats = this.stats; const loading = stats.downloading + stats.parsing;