Skip to content

Commit

Permalink
Add "loadPercent"
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jan 13, 2025
1 parent 85cf97c commit efde634
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/base/TilesRendererBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,12 @@ export class TilesRendererBase {

}

set loadSiblings( v ) {
get loadPercent() {

console.warn( 'TilesRenderer: "loadSiblings" option has been removed.' );

}

set stopAtEmptyTiles( v ) {

console.warn( 'TilesRenderer: "stopAtEmptyTiles" option has been removed.' );
const stats = this.stats;
const loading = stats.downloading + stats.parsing;
const total = stats.inCacheSinceLoad;
return total === 0 ? 1.0 : 1.0 - loading / total;

}

Expand Down

0 comments on commit efde634

Please sign in to comment.