ol 8.0.0-dev.1693426971512 → 8.0.0-dev.1693466457745
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/Image.d.ts +4 -2
- package/Image.d.ts.map +1 -1
- package/Image.js +2 -1
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/source/Image.d.ts +5 -0
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +17 -10
- package/util.js +1 -1
package/Image.d.ts
CHANGED
|
@@ -66,7 +66,8 @@ export type ImageObject = {
|
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.
|
|
69
|
-
*
|
|
69
|
+
* For images that cover any extent and resolution (static images), the loader function should not accept
|
|
70
|
+
* any arguments. The function returns an {@link import ("./DataTile.js").ImageLike image}, an
|
|
70
71
|
* {@link import ("./Image.js").ImageObject image object}, or a promise for the same.
|
|
71
72
|
* For loaders that generate images, the promise should not resolve until the image is loaded.
|
|
72
73
|
* If the returned image does not match the extent, resolution or pixel ratio passed to the loader,
|
|
@@ -106,7 +107,8 @@ export type ImageObjectPromiseLoader = (arg0: import("./extent.js").Extent, arg1
|
|
|
106
107
|
*/
|
|
107
108
|
/**
|
|
108
109
|
* Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.
|
|
109
|
-
*
|
|
110
|
+
* For images that cover any extent and resolution (static images), the loader function should not accept
|
|
111
|
+
* any arguments. The function returns an {@link import("./DataTile.js").ImageLike image}, an
|
|
110
112
|
* {@link import("./Image.js").ImageObject image object}, or a promise for the same.
|
|
111
113
|
* For loaders that generate images, the promise should not resolve until the image is loaded.
|
|
112
114
|
* If the returned image does not match the extent, resolution or pixel ratio passed to the loader,
|
package/Image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":"
|
|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BAFU,OAAO,aAAa,EAAE,MAAM,CAElB;IAEpB;;;OAGG;IACH,oBAA6B;IAE7B;;;OAGG;IACH,sBAFU,MAAM,GAAC,MAAM,MAAM,CAAC,GAAC,SAAS,CAEZ;IAE5B;;;OAGG;IACH,qBACuE;IAEvE;;;OAGG;IACH,eAAkB;IAElB;;;OAGG;IACH,kBAFU,OAAO,YAAY,EAAE,MAAM,CAEmC;IAG1E;;OAEG;IACH,0BAEC;IAED;;OAEG;IACH,aAFY,OAAO,aAAa,EAAE,MAAM,CAIvC;IAED;;OAEG;IACH,YAFY,OAAO,eAAe,EAAE,SAAS,CAI5C;IAED;;OAEG;IACH,iBAFY,MAAM,CAIjB;IAED;;OAEG;IACH,iBAFY,MAAM,GAAC,MAAM,MAAM,CAAC,CAI/B;IAED;;OAEG;IACH,gBAEC;IAED;;OAEG;IACH,aA0CC;IAED;;OAEG;IACH,gBAFW,OAAO,eAAe,EAAE,SAAS,QAI3C;IAED;;OAEG;IACH,0BAFW,MAAM,GAAC,MAAM,MAAM,CAAC,QAI9B;CACF;wBA9MuB,oBAAoB"}
|
package/Image.js
CHANGED
|
@@ -37,7 +37,8 @@ import {toPromise} from './functions.js';
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.
|
|
40
|
-
*
|
|
40
|
+
* For images that cover any extent and resolution (static images), the loader function should not accept
|
|
41
|
+
* any arguments. The function returns an {@link import("./DataTile.js").ImageLike image}, an
|
|
41
42
|
* {@link import("./Image.js").ImageObject image object}, or a promise for the same.
|
|
42
43
|
* For loaders that generate images, the promise should not resolve until the image is loaded.
|
|
43
44
|
* If the returned image does not match the extent, resolution or pixel ratio passed to the loader,
|