Skip to content

Commit

Permalink
Website updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Dec 17, 2024
1 parent 4ea5969 commit b860570
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 24 deletions.
4 changes: 2 additions & 2 deletions dist/en/main/apidoc/module-ol_source_wms.html
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/wms.js">source/wms.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/wms.js#L204">line 204</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/wms.js#L201">line 201</a>
</div>

</div>
Expand Down Expand Up @@ -930,7 +930,7 @@ <h4 class="name">

<div class="tag-source">
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/wms.js">source/wms.js</a>,
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/wms.js#L254">line 254</a>
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/source/wms.js#L251">line 251</a>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/examples/common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/examples/mapguide-untiled.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/en/main/ol/Image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export type Loader = (arg0: import("./extent.js").Extent, arg1: number, arg2: nu
* Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.
* The function returns a promise for an {@link import ("./Image.js").ImageObject image object}.
*/
export type ImageObjectPromiseLoader = (arg0: import("./extent.js").Extent, arg1: number, arg2: number, arg3: ((arg0: HTMLImageElement, arg1: string) => void) | undefined) => import("./DataTile.js").ImageLike | ImageObject | Promise<import("./DataTile.js").ImageLike | ImageObject>;
export type ImageObjectPromiseLoader = (arg0: import("./extent.js").Extent, arg1: number, arg2: number, arg3: ((arg0: HTMLImageElement, arg1: string) => void) | undefined) => Promise<import("./DataTile.js").ImageLike | ImageObject>;
/**
* A function that takes an {@link module:ol/Image~ImageWrapper} for the image and a
* `{string}` for the src as arguments. It is supposed to make it so the
Expand Down Expand Up @@ -122,17 +122,17 @@ export type ImageObjectPromiseLoader = (arg0: import("./extent.js").Extent, arg1
* Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.
* The function returns a promise for an {@link import("./Image.js").ImageObject image object}.
*
* @typedef {function(import("./extent.js").Extent, number, number, (function(HTMLImageElement, string): void)=): import("./DataTile.js").ImageLike|ImageObject|Promise<import("./DataTile.js").ImageLike|ImageObject>} ImageObjectPromiseLoader
* @typedef {function(import("./extent.js").Extent, number, number, (function(HTMLImageElement, string): void)=): Promise<import("./DataTile.js").ImageLike|ImageObject>} ImageObjectPromiseLoader
*/
declare class ImageWrapper extends EventTarget {
/**
* @param {import("./extent.js").Extent} extent Extent.
* @param {number|Array<number>|undefined} resolution Resolution. If provided as array, x and y
* resolution will be assumed.
* @param {number} pixelRatio Pixel ratio.
* @param {import("./ImageState.js").default|import("./Image.js").Loader} stateOrLoader State.
* @param {import("./ImageState.js").default|Loader} stateOrLoader State.
*/
constructor(extent: import("./extent.js").Extent, resolution: number | Array<number> | undefined, pixelRatio: number, stateOrLoader: any | import("./Image.js").Loader);
constructor(extent: import("./extent.js").Extent, resolution: number | Array<number> | undefined, pixelRatio: number, stateOrLoader: any | Loader);
/**
* @protected
* @type {import("./extent.js").Extent}
Expand Down Expand Up @@ -160,9 +160,9 @@ declare class ImageWrapper extends EventTarget {
private image_;
/**
* @protected
* @type {import("./Image.js").Loader}
* @type {Loader|null}
*/
protected loader: import("./Image.js").Loader;
protected loader: Loader | null;
/**
* @protected
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/Image.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/en/main/ol/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import {CREATE_IMAGE_BITMAP, IMAGE_DECODE} from './has.js';
* Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments.
* The function returns a promise for an {@link import("./Image.js").ImageObject image object}.
*
* @typedef {function(import("./extent.js").Extent, number, number, (function(HTMLImageElement, string): void)=): import("./DataTile.js").ImageLike|ImageObject|Promise<import("./DataTile.js").ImageLike|ImageObject>} ImageObjectPromiseLoader
* @typedef {function(import("./extent.js").Extent, number, number, (function(HTMLImageElement, string): void)=): Promise<import("./DataTile.js").ImageLike|ImageObject>} ImageObjectPromiseLoader
*/

class ImageWrapper extends EventTarget {
Expand All @@ -62,7 +62,7 @@ class ImageWrapper extends EventTarget {
* @param {number|Array<number>|undefined} resolution Resolution. If provided as array, x and y
* resolution will be assumed.
* @param {number} pixelRatio Pixel ratio.
* @param {import("./ImageState.js").default|import("./Image.js").Loader} stateOrLoader State.
* @param {import("./ImageState.js").default|Loader} stateOrLoader State.
*/
constructor(extent, resolution, pixelRatio, stateOrLoader) {
super();
Expand Down Expand Up @@ -100,7 +100,7 @@ class ImageWrapper extends EventTarget {

/**
* @protected
* @type {import("./Image.js").Loader}
* @type {Loader|null}
*/
this.loader = typeof stateOrLoader === 'function' ? stateOrLoader : null;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/dist/ol.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/en/main/ol/source/arcgisRest.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/en/main/ol/source/arcgisRest.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export function createLoader(options) {
const ratio = options.ratio ?? 1.5;
const crossOrigin = options.crossOrigin ?? null;

/** @type {import('../Image.js').ImageObjectPromiseLoader} */
return function (extent, resolution, pixelRatio) {
pixelRatio = options.hidpi ? pixelRatio : 1;

Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/source/mapguide.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/en/main/ol/source/mapguide.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export function createLoader(options) {
const ratio = options.ratio ?? 1;
const crossOrigin = options.crossOrigin ?? null;

/** @type {import('../Image.js').ImageObjectPromiseLoader} */
return function (extent, resolution, pixelRatio) {
const image = new Image();
image.crossOrigin = crossOrigin;
Expand Down
2 changes: 1 addition & 1 deletion dist/en/main/ol/source/wms.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions dist/en/main/ol/source/wms.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ export function createLoader(options) {
const load = options.load || decode;
const crossOrigin = options.crossOrigin ?? null;

/**
* @type {import("../Image.js").Loader}
*/
return (extent, resolution, pixelRatio) => {
extent = getRequestExtent(extent, resolution, pixelRatio, ratio);
if (pixelRatio != 1 && (!hidpi || options.serverType === undefined)) {
Expand Down

0 comments on commit b860570

Please sign in to comment.