mirage2d 1.2.56 → 1.2.57

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.
@@ -1,13 +1,20 @@
1
1
  import ImageTile from "ol/ImageTile";
2
2
  export declare class TileLoadManager {
3
- private readonly TIMEOUT;
3
+ private static instance;
4
4
  private readonly MAX_CONCURRENT;
5
+ private readonly TIMEOUT;
6
+ private readonly MAX_RETRY;
5
7
  private currentLoads;
6
8
  private loadQueue;
7
9
  private destroyed;
8
10
  private readonly MAX_QUEUE_LENGTH;
11
+ private activeControllers;
12
+ private constructor();
13
+ static getInstance(): TileLoadManager;
9
14
  createLoadFunction(): (tile: ImageTile, src: string) => void;
10
15
  private enqueueLoad;
16
+ private executeWithRetry;
17
+ private executeWithCount;
11
18
  private processQueue;
12
19
  private executeLoad;
13
20
  private handleTimeout;
@@ -25,19 +25,21 @@ export declare class TileXyzLayer extends baseTileLayer {
25
25
  private loadingCount;
26
26
  private totalTilesLoaded;
27
27
  private isHandlingEvents;
28
- private TIMEOUT_MS;
29
28
  private tileLoadManager;
30
29
  /**
31
30
  * TileXyzLayer
32
31
  * @param {string} [layerid='TileXyzLayer'] 默认图层id
33
32
  * @param {ITileLayerOption} [Options] Options 配置项
34
33
  */
34
+ private boundHandleTileLoadStart;
35
+ private boundHandleTileLoadEnd;
36
+ private boundHandleTileLoadError;
35
37
  constructor(layerid: string, Options: ITileLayerOption);
36
38
  private initializeProjection;
37
39
  private initializeSource;
38
- private createCorrectSkipTileLoadFunction;
39
40
  private initializeLayer;
40
41
  private setupEventHandlers;
42
+ private removeEventHandlers;
41
43
  private handleTileLoadStart;
42
44
  private handleTileLoadEnd;
43
45
  /**
@@ -46,4 +48,5 @@ export declare class TileXyzLayer extends baseTileLayer {
46
48
  private handleAllTilesLoaded;
47
49
  private handleTileLoadError;
48
50
  private setupGCJ02Projection;
51
+ destroy(): void;
49
52
  }