ol 10.3.2-dev.1734233466190 → 10.3.2-dev.1734341938465
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/TileQueue.d.ts +10 -9
- package/TileQueue.d.ts.map +1 -1
- package/TileQueue.js +11 -19
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +1 -5
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/util.js +1 -1
package/TileQueue.d.ts
CHANGED
|
@@ -8,11 +8,18 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export function getTilePriority(frameState: import("./Map.js").FrameState, tile: import("./Tile.js").default, tileSourceKey: string, tileCenter: import("./coordinate.js").Coordinate, tileResolution: number): number;
|
|
10
10
|
export default TileQueue;
|
|
11
|
-
export type PriorityFunction = (arg0: import("./Tile.js").default, arg1: string, arg2: import("./
|
|
11
|
+
export type PriorityFunction = (arg0: import("./Tile.js").default, arg1: string, arg2: import("./tilecoord.js").TileCoord, arg3: number) => number;
|
|
12
|
+
export type TileQueueElement = [import("./Tile.js").default, string, import("./tilecoord.js").TileCoord, number];
|
|
12
13
|
/**
|
|
13
|
-
* @typedef {function(import("./Tile.js").default, string, import(
|
|
14
|
+
* @typedef {function(import("./Tile.js").default, string, import('./tilecoord.js').TileCoord, number): number} PriorityFunction
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {[import('./Tile.js').default, string, import('./tilecoord.js').TileCoord, number]} TileQueueElement
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @extends PriorityQueue<TileQueueElement>}
|
|
21
|
+
*/
|
|
22
|
+
declare class TileQueue extends PriorityQueue<TileQueueElement> {
|
|
16
23
|
/**
|
|
17
24
|
* @param {PriorityFunction} tilePriorityFunction Tile priority function.
|
|
18
25
|
* @param {function(): ?} tileChangeCallback Function called on each tile change event.
|
|
@@ -35,12 +42,6 @@ declare class TileQueue extends PriorityQueue<any> {
|
|
|
35
42
|
* @type {!Object<string,boolean>}
|
|
36
43
|
*/
|
|
37
44
|
private tilesLoadingKeys_;
|
|
38
|
-
/**
|
|
39
|
-
* @param {Array} element Element.
|
|
40
|
-
* @return {boolean} The element was added to the queue.
|
|
41
|
-
* @override
|
|
42
|
-
*/
|
|
43
|
-
override enqueue(element: any[]): boolean;
|
|
44
45
|
/**
|
|
45
46
|
* @return {number} Number of tiles loading.
|
|
46
47
|
*/
|
package/TileQueue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileQueue.d.ts","sourceRoot":"","sources":["TileQueue.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TileQueue.d.ts","sourceRoot":"","sources":["TileQueue.js"],"names":[],"mappings":"AA0HA;;;;;;;GAOG;AACH,4CAPW,OAAO,UAAU,EAAE,UAAU,QAC7B,OAAO,WAAW,EAAE,OAAO,iBAC3B,MAAM,cACN,OAAO,iBAAiB,EAAE,UAAU,kBACpC,MAAM,GACL,MAAM,CA8BjB;;+BAtJY,CAAS,IAA2B,EAA3B,OAAO,WAAW,EAAE,OAAO,EAAE,IAAM,EAAN,MAAM,EAAE,IAAkC,EAAlC,OAAO,gBAAgB,EAAE,SAAS,EAAE,IAAM,EAAN,MAAM,KAAG,MAAM;+BAIjG,CAAC,OAAO,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,gBAAgB,EAAE,SAAS,EAAE,MAAM,CAAC;AAL9F;;GAEG;AAEH;;GAEG;AAEH;;GAEG;AACH;IACE;;;OAGG;IACH,kCAHW,gBAAgB,sBAChB,MAAY,OAAC,EA4BvB;IApBC,eAAe;IACf,+BAA8D;IAE9D;;;OAGG;IACH,4BAA6C;IAE7C;;;OAGG;IACH,sBAAsB;IAEtB;;;OAGG;IACH,0BAA2B;IAiB7B;;OAEG;IACH,mBAFY,MAAM,CAIjB;IAED;;;OAGG;IACH,kCAHW,OAAO,mBAAmB,EAAE,OAAO,QAqB7C;IAED;;;OAGG;IACH,+BAHW,MAAM,eACN,MAAM,QAmBhB;CACF;0BAjHiC,4BAA4B"}
|
package/TileQueue.js
CHANGED
|
@@ -6,9 +6,16 @@ import EventType from './events/EventType.js';
|
|
|
6
6
|
import PriorityQueue, {DROP} from './structs/PriorityQueue.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @typedef {function(import("./Tile.js").default, string, import(
|
|
9
|
+
* @typedef {function(import("./Tile.js").default, string, import('./tilecoord.js').TileCoord, number): number} PriorityFunction
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {[import('./Tile.js').default, string, import('./tilecoord.js').TileCoord, number]} TileQueueElement
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @extends PriorityQueue<TileQueueElement>}
|
|
18
|
+
*/
|
|
12
19
|
class TileQueue extends PriorityQueue {
|
|
13
20
|
/**
|
|
14
21
|
* @param {PriorityFunction} tilePriorityFunction Tile priority function.
|
|
@@ -16,20 +23,8 @@ class TileQueue extends PriorityQueue {
|
|
|
16
23
|
*/
|
|
17
24
|
constructor(tilePriorityFunction, tileChangeCallback) {
|
|
18
25
|
super(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* @return {number} Priority.
|
|
22
|
-
*/
|
|
23
|
-
function (element) {
|
|
24
|
-
return tilePriorityFunction.apply(null, element);
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* @param {Array} element Element.
|
|
28
|
-
* @return {string} Key.
|
|
29
|
-
*/
|
|
30
|
-
function (element) {
|
|
31
|
-
return /** @type {import("./Tile.js").default} */ (element[0]).getKey();
|
|
32
|
-
},
|
|
26
|
+
(element) => tilePriorityFunction.apply(null, element),
|
|
27
|
+
(element) => element[0].getKey(),
|
|
33
28
|
);
|
|
34
29
|
|
|
35
30
|
/** @private */
|
|
@@ -55,7 +50,7 @@ class TileQueue extends PriorityQueue {
|
|
|
55
50
|
}
|
|
56
51
|
|
|
57
52
|
/**
|
|
58
|
-
* @param {
|
|
53
|
+
* @param {TileQueueElement} element Element.
|
|
59
54
|
* @return {boolean} The element was added to the queue.
|
|
60
55
|
* @override
|
|
61
56
|
*/
|
|
@@ -110,9 +105,6 @@ class TileQueue extends PriorityQueue {
|
|
|
110
105
|
newLoads < maxNewLoads &&
|
|
111
106
|
this.getCount() > 0
|
|
112
107
|
) {
|
|
113
|
-
/**
|
|
114
|
-
* @type {import("./Tile.js").default}
|
|
115
|
-
*/
|
|
116
108
|
const tile = this.dequeue()[0];
|
|
117
109
|
const tileKey = tile.getKey();
|
|
118
110
|
const state = tile.getState();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreen.d.ts","sourceRoot":"","sources":["FullScreen.js"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"FullScreen.d.ts","sourceRoot":"","sources":["FullScreen.js"],"names":[],"mappings":";;;;kCAgCa,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,GAClF,iBAAuB,GAAC,iBAAiB,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACxF,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpH,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAClF,iBAAuB,GAAC,iBAAiB,GAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANtF;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,sBAFW,OAAO,EAuHjB;IA7GC;;OAEG;IACH,IAFU,qBAAqB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEvD;IAEP;;OAEG;IACH,MAFU,qBAAqB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAErD;IAET;;OAEG;IACH,IAFU,qBAAqB,CAAC,IAAI,CAAC,CAE9B;IAEP;;;OAGG;IACH,cAA8D;IAE9D;;;OAGG;IACH,gBAA6B;IAE7B;;;OAGG;IACH,wBAA4B;IAE5B;;OAEG;IACH,oCAAyE;IAEzE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,2BAA4B;IAE5B;;;OAGG;IACH,yBAGoC;IAEpC;;;OAGG;IACH,2BAGqC;IAIrC;;;OAGG;IACH,mBACoE;IAKpE;;;OAGG;IACH,yBAGiB;IAIjB;;;OAGG;IACH,gBAA+C;IAejD;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,0BA2BC;IAED;;OAEG;IACH,gCAkBC;IAED;;;;OAIG;IACH,sBAQC;IA+BD;;OAEG;IACH,+BAuBC;CACF;oBAtUmB,cAAc"}
|
package/control/FullScreen.js
CHANGED
|
@@ -8,11 +8,7 @@ import EventType from '../events/EventType.js';
|
|
|
8
8
|
import {listen, unlistenByKey} from '../events.js';
|
|
9
9
|
import Control from './Control.js';
|
|
10
10
|
|
|
11
|
-
const events = [
|
|
12
|
-
'fullscreenchange',
|
|
13
|
-
'webkitfullscreenchange',
|
|
14
|
-
'MSFullscreenChange',
|
|
15
|
-
];
|
|
11
|
+
const events = ['fullscreenchange', 'webkitfullscreenchange'];
|
|
16
12
|
|
|
17
13
|
/**
|
|
18
14
|
* @enum {string}
|