TilesRendererBase.d.ts 872 B

1234567891011121314151617181920212223242526272829303132
  1. import { LRUCache } from '../utilities/LRUCache';
  2. import { PriorityQueue } from '../utilities/PriorityQueue';
  3. export class TilesRendererBase {
  4. readonly rootTileset : Object | null;
  5. readonly root : Object | null;
  6. errorTarget : Number;
  7. errorThreshold : Number;
  8. loadSiblings : Boolean;
  9. displayActiveTiles : Boolean;
  10. maxDepth : Number;
  11. stopAtEmptyTiles : Boolean;
  12. fetchOptions : Object;
  13. /** function to preprocess the url for each individual tile */
  14. onPreprocessURL : (uri: string | URL) => URL | string | null;
  15. lruCache : LRUCache;
  16. parseQueue : PriorityQueue;
  17. downloadQueue : PriorityQueue;
  18. constructor( url : String );
  19. update() : void;
  20. traverse(
  21. beforeCb : ( ( tile : Object, parent : Object, depth : Number ) => Boolean ) | null,
  22. afterCb : ( ( tile : Object, parent : Object, depth : Number ) => Boolean ) | null
  23. ) : void;
  24. dispose() : void;
  25. }