ol 10.2.2-dev.1729024622781 → 10.2.2-dev.1729036924104

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "10.2.2-dev.1729024622781",
3
+ "version": "10.2.2-dev.1729036924104",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -10,7 +10,12 @@
10
10
  * @return {TileRepresentationLookup} A new tile representation lookup.
11
11
  */
12
12
  export function newTileRepresentationLookup(): TileRepresentationLookup;
13
- export function getCacheKey(source: any, tileCoord: any): string;
13
+ /**
14
+ * @param {import("../../source/Tile.js").default} source The source.
15
+ * @param {import('../../tilecoord.js').TileCoord} tileCoord The tile coordinate.
16
+ * @return {string} The cache key.
17
+ */
18
+ export function getCacheKey(source: import("../../source/Tile.js").default, tileCoord: import("../../tilecoord.js").TileCoord): string;
14
19
  export namespace Uniforms {
15
20
  let TILE_TRANSFORM: string;
16
21
  let TRANSITION_ALPHA: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TileLayerBase.d.ts","sourceRoot":"","sources":["TileLayerBase.js"],"names":[],"mappings":"AAkDA;;GAEG;AACH;;;;GAIG;AAEH;;GAEG;AACH,+CAFY,wBAAwB,CAInC;AA0DD,iEAEC;;;;;;;;;;;;;;yCAzEY,OAAO,uCAAuC,EAAE,OAAO,CAAC,OAAO,eAAe,EAAE,OAAO,CAAC;;;;;aAIvF,GAAG,CAAC,MAAM,CAAC;;;;wBACX;YAAO,MAAM,GAAE,GAAG,CAAC,0BAA0B,CAAC;KAAC;;;;;;;;;;;;;;;;;;;4BA+EhD,mDAAyC;AATtD;;;;;;GAMG;AAEH;;GAEG;AAEH;;;;;;;GAOG;AACH,yCAL6B,SAAS,SAAxB,aAAc,EACmB,QAAQ,SAA1C,OAAQ,eAAe,EAAE,OAAQ,EACmC,kBAAkB,SAAtF,OAAQ,u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123
+ /**
124
+ * @param {import("../../source/Tile.js").default} source The source.
125
+ * @param {import('../../tilecoord.js').TileCoord} tileCoord The tile coordinate.
126
+ * @return {string} The cache key.
127
+ */
123
128
  export function getCacheKey(source, tileCoord) {
124
- return `${source.getKey()},${getTileCoordKey(tileCoord)}`;
129
+ return `${source.getKey()},${source.getRevision()},${getTileCoordKey(tileCoord)}`;
125
130
  }
126
131
 
127
132
  /**
@@ -0,0 +1,503 @@
1
+ /**
2
+ * @param {string} token The access token to parse.
3
+ * @return {AccessTokenClaims} The parsed token claims.
4
+ */
5
+ export function parseTokenClaims(token: string): AccessTokenClaims;
6
+ /**
7
+ * Gets a CRS identifier accepted by Sentinel Hub.
8
+ * See https://docs.sentinel-hub.com/api/latest/api/process/crs/.
9
+ *
10
+ * @param {import("../proj/Projection.js").default} projection The projection.
11
+ * @return {string} The projection identifier accepted by Sentinel Hub.
12
+ */
13
+ export function getProjectionIdentifier(projection: import("../proj/Projection.js").default): string;
14
+ /**
15
+ * This is intended to work with named functions, anonymous functions, arrow functions, and object methods.
16
+ * Due to how the Evalscript is executed, these are serialized as function expressions using `var`.
17
+ *
18
+ * @param {string} name The name of the function.
19
+ * @param {Function|undefined} func The function to serialize.
20
+ * @return {string} The serialized function.
21
+ */
22
+ export function serializeFunction(name: string, func: Function | undefined): string;
23
+ export default SentinelHub;
24
+ export type AuthConfig = {
25
+ /**
26
+ * The URL to get the authentication token.
27
+ */
28
+ tokenUrl?: string | undefined;
29
+ /**
30
+ * The client ID.
31
+ */
32
+ clientId: string;
33
+ /**
34
+ * The client secret.
35
+ */
36
+ clientSecret: string;
37
+ };
38
+ export type AccessTokenClaims = {
39
+ /**
40
+ * The expiration time of the token (in seconds).
41
+ */
42
+ exp: number;
43
+ };
44
+ export type Evalscript = {
45
+ /**
46
+ * The setup function.
47
+ */
48
+ setup: Setup;
49
+ /**
50
+ * The function to transform input samples into output values.
51
+ */
52
+ evaluatePixel: EvaluatePixel;
53
+ /**
54
+ * Optional function to adjust the output bands.
55
+ */
56
+ updateOutput?: UpdateOutput | undefined;
57
+ /**
58
+ * Optional function to update the output metadata.
59
+ */
60
+ updateOutputMetadata?: UpdateOutputMetadata | undefined;
61
+ /**
62
+ * Optional function called before processing.
63
+ */
64
+ preProcessScenes?: Collections | undefined;
65
+ /**
66
+ * The Evalscript version.
67
+ */
68
+ version?: string | undefined;
69
+ };
70
+ export type Setup = () => SetupResult;
71
+ export type EvaluatePixel = (arg0: Sample | Array<Sample>, arg1: Scenes, arg2: InputMetadata, arg3: CustomData, arg4: OutputMetadata) => OutputValues | Array<number> | void;
72
+ export type UpdateOutput = (arg0: {
73
+ [x: string]: UpdatedOutputDescription;
74
+ }) => void;
75
+ export type UpdateOutputMetadata = (arg0: Scenes, arg1: InputMetadata, arg2: OutputMetadata) => void;
76
+ export type SetupResult = {
77
+ /**
78
+ * Description of the input data.
79
+ */
80
+ input: Array<string> | Array<InputDescription>;
81
+ /**
82
+ * Description of the output data.
83
+ */
84
+ output: OutputDescription | Array<OutputDescription>;
85
+ /**
86
+ * Control how samples from input scenes are composed.
87
+ */
88
+ mosaicking?: "SIMPLE" | "ORBIT" | "TILE" | undefined;
89
+ };
90
+ export type InputDescription = {
91
+ /**
92
+ * Input band identifiers.
93
+ */
94
+ bands: Array<string>;
95
+ /**
96
+ * Input band units.
97
+ */
98
+ units?: string | string[] | undefined;
99
+ /**
100
+ * Properties to include in the input metadata.
101
+ */
102
+ metadata?: string[] | undefined;
103
+ };
104
+ export type OutputDescription = {
105
+ /**
106
+ * Output identifier.
107
+ */
108
+ id?: string | undefined;
109
+ /**
110
+ * Number of output bands.
111
+ */
112
+ bands: number;
113
+ /**
114
+ * Output sample type.
115
+ */
116
+ sampleType?: SampleType | undefined;
117
+ /**
118
+ * Output nodata value.
119
+ */
120
+ nodataValue?: number | undefined;
121
+ };
122
+ export type UpdatedOutputDescription = {
123
+ /**
124
+ * Number of output bands.
125
+ */
126
+ bands: number;
127
+ };
128
+ export type SampleType = "INT8" | "UINT8" | "INT16" | "UINT16" | "FLOAT32" | "AUTO";
129
+ export type Sample = {
130
+ [x: string]: number;
131
+ };
132
+ export type Collections = {
133
+ /**
134
+ * For 'ORBIT' mosaicking, this will be the start of the search interval.
135
+ */
136
+ from?: string | undefined;
137
+ /**
138
+ * For 'ORBIT' mosaicking, this will be the end of the search interval.
139
+ */
140
+ to?: string | undefined;
141
+ /**
142
+ * The scenes in the collection.
143
+ */
144
+ scenes: Scenes;
145
+ };
146
+ export type Scenes = {
147
+ /**
148
+ * Information about scenes included in the tile when 'mosaicking' is 'ORBIT'.
149
+ */
150
+ orbit?: Orbit[] | undefined;
151
+ /**
152
+ * Information about scenes included in the tile when 'mosaicking' is 'TILE'.
153
+ */
154
+ tiles?: Tile[] | undefined;
155
+ };
156
+ export type Orbit = {
157
+ /**
158
+ * The earliest date for all scenes included in the tile.
159
+ */
160
+ dateFrom: string;
161
+ /**
162
+ * The latest date for scenes included in the tile.
163
+ */
164
+ dateTo: string;
165
+ /**
166
+ * Metadata for each tile.
167
+ */
168
+ tiles: any[];
169
+ };
170
+ export type Tile = {
171
+ /**
172
+ * The date of scene used in the tile.
173
+ */
174
+ date: string;
175
+ /**
176
+ * The estimated percentage of pixels obscured by clouds in the scene.
177
+ */
178
+ cloudCoverage: number;
179
+ /**
180
+ * The path to the data in storage.
181
+ */
182
+ dataPath: string;
183
+ /**
184
+ * The internal identifier for the scene.
185
+ */
186
+ shId: number;
187
+ };
188
+ export type InputMetadata = {
189
+ /**
190
+ * The version of the service used for processing.
191
+ */
192
+ serviceVersion: string;
193
+ /**
194
+ * The factor used to convert digital number (DN) values to reflectance.
195
+ */
196
+ normalizationFactor: number;
197
+ };
198
+ export type CustomData = {
199
+ [x: string]: unknown;
200
+ };
201
+ export type OutputMetadata = {
202
+ /**
203
+ * Arbitrary user data.
204
+ */
205
+ userData: any;
206
+ };
207
+ export type OutputValues = {
208
+ [x: string]: Array<number>;
209
+ };
210
+ export type ProcessRequest = {
211
+ /**
212
+ * Input data configuration.
213
+ */
214
+ input: ProcessRequestInput;
215
+ /**
216
+ * The Evalscript used for processing.
217
+ */
218
+ evalscript: string;
219
+ /**
220
+ * The output configuration.
221
+ */
222
+ output?: ProcessRequestOutput | undefined;
223
+ };
224
+ export type ProcessRequestInput = {
225
+ /**
226
+ * The bounding box of the input data.
227
+ */
228
+ bounds: ProcessRequestInputBounds;
229
+ /**
230
+ * The intput data.
231
+ */
232
+ data: Array<ProcessRequestInputDataItem>;
233
+ };
234
+ export type ProcessRequestInputDataItem = {
235
+ /**
236
+ * The type of the input data.
237
+ */
238
+ type?: string | undefined;
239
+ /**
240
+ * The identifier of the input data.
241
+ */
242
+ id?: string | undefined;
243
+ /**
244
+ * The filter to apply to the input data.
245
+ */
246
+ dataFilter?: DataFilter | undefined;
247
+ /**
248
+ * The processing to apply to the input data.
249
+ */
250
+ processing?: {
251
+ [x: string]: unknown;
252
+ } | undefined;
253
+ };
254
+ export type DataFilter = {
255
+ /**
256
+ * The data time range.
257
+ */
258
+ timeRange?: TimeRange | undefined;
259
+ /**
260
+ * The maximum cloud coverage (0-100).
261
+ */
262
+ maxCloudCoverage?: number | undefined;
263
+ };
264
+ export type TimeRange = {
265
+ /**
266
+ * The start time (inclusive).
267
+ */
268
+ from?: string | undefined;
269
+ /**
270
+ * The end time (inclusive).
271
+ */
272
+ to?: string | undefined;
273
+ };
274
+ export type ProcessRequestInputBounds = {
275
+ /**
276
+ * The bounding box of the input data.
277
+ */
278
+ bbox?: number[] | undefined;
279
+ /**
280
+ * The properties of the bounding box.
281
+ */
282
+ properties?: ProcessRequestInputBoundsProperties | undefined;
283
+ /**
284
+ * The geometry of the bounding box.
285
+ */
286
+ geometry?: import("geojson").Geometry | undefined;
287
+ };
288
+ export type ProcessRequestInputBoundsProperties = {
289
+ /**
290
+ * The coordinate reference system of the bounding box.
291
+ */
292
+ crs: string;
293
+ };
294
+ export type ProcessRequestOutput = {
295
+ /**
296
+ * Image width in pixels.
297
+ */
298
+ width?: number | undefined;
299
+ /**
300
+ * Image height in pixels.
301
+ */
302
+ height?: number | undefined;
303
+ /**
304
+ * Spatial resolution in the x direction.
305
+ */
306
+ resx?: number | undefined;
307
+ /**
308
+ * Spatial resolution in the y direction.
309
+ */
310
+ resy?: number | undefined;
311
+ /**
312
+ * Response configuration.
313
+ */
314
+ responses?: ProcessRequestOutputResponse[] | undefined;
315
+ };
316
+ export type ProcessRequestOutputResponse = {
317
+ /**
318
+ * Identifier used to connect results to outputs from the setup.
319
+ */
320
+ identifier?: string | undefined;
321
+ /**
322
+ * Response format.
323
+ */
324
+ format?: ProcessRequestOutputFormat | undefined;
325
+ };
326
+ export type ProcessRequestOutputFormat = {
327
+ /**
328
+ * The output format type.
329
+ */
330
+ type?: string | undefined;
331
+ };
332
+ export type Options = {
333
+ /**
334
+ * The authentication configuration with `clientId` and `clientSecret` or an access token.
335
+ * See [Sentinel Hub authentication](https://docs.sentinel-hub.com/api/latest/api/overview/authentication/)
336
+ * for details. If not provided in the constructor, the source will not be rendered until {@link module :ol/source/SentinelHub~SentinelHub#setAuth}is called.
337
+ */
338
+ auth?: string | AuthConfig | undefined;
339
+ /**
340
+ * The input data configuration. If not provided in the constructor,
341
+ * the source will not be rendered until {@link module :ol/source/SentinelHub~SentinelHub#setData} is called.
342
+ */
343
+ data?: ProcessRequestInputDataItem[] | undefined;
344
+ /**
345
+ * The process applied to the input data. If not provided in the constructor,
346
+ * the source will not be rendered until {@link module :ol/source/SentinelHub~SentinelHub#setEvalscript} is called. See the
347
+ * `setEvalscript` documentation for details on the restrictions when passing process functions.
348
+ */
349
+ evalscript?: string | Evalscript | undefined;
350
+ /**
351
+ * The pixel width and height of the source tiles.
352
+ */
353
+ tileSize?: number | import("../size.js").Size | undefined;
354
+ /**
355
+ * The Sentinel Hub Processing API URL.
356
+ */
357
+ url?: string | undefined;
358
+ /**
359
+ * Projection. Default is the view projection.
360
+ */
361
+ projection?: import("../proj.js").ProjectionLike;
362
+ /**
363
+ * Allow the attributions to be collapsed.
364
+ */
365
+ attributionsCollapsible?: boolean | undefined;
366
+ /**
367
+ * Use interpolated values when resampling. By default,
368
+ * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
369
+ */
370
+ interpolate?: boolean | undefined;
371
+ /**
372
+ * Wrap the world horizontally.
373
+ */
374
+ wrapX?: boolean | undefined;
375
+ /**
376
+ * Duration of the opacity transition for rendering.
377
+ * To disable the opacity transition, pass `transition: 0`.
378
+ */
379
+ transition?: number | undefined;
380
+ };
381
+ /**
382
+ * @typedef {Object} Options
383
+ * @property {AuthConfig|string} [auth] The authentication configuration with `clientId` and `clientSecret` or an access token.
384
+ * See [Sentinel Hub authentication](https://docs.sentinel-hub.com/api/latest/api/overview/authentication/)
385
+ * for details. If not provided in the constructor, the source will not be rendered until {@link module:ol/source/SentinelHub~SentinelHub#setAuth}
386
+ * is called.
387
+ * @property {Array<ProcessRequestInputDataItem>} [data] The input data configuration. If not provided in the constructor,
388
+ * the source will not be rendered until {@link module:ol/source/SentinelHub~SentinelHub#setData} is called.
389
+ * @property {Evalscript|string} [evalscript] The process applied to the input data. If not provided in the constructor,
390
+ * the source will not be rendered until {@link module:ol/source/SentinelHub~SentinelHub#setEvalscript} is called. See the
391
+ * `setEvalscript` documentation for details on the restrictions when passing process functions.
392
+ * @property {number|import("../size.js").Size} [tileSize=[512, 512]] The pixel width and height of the source tiles.
393
+ * @property {string} [url='https://services.sentinel-hub.com/api/v1/process'] The Sentinel Hub Processing API URL.
394
+ * @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
395
+ * @property {boolean} [attributionsCollapsible=true] Allow the attributions to be collapsed.
396
+ * @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
397
+ * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
398
+ * @property {boolean} [wrapX=true] Wrap the world horizontally.
399
+ * @property {number} [transition] Duration of the opacity transition for rendering.
400
+ * To disable the opacity transition, pass `transition: 0`.
401
+ */
402
+ /**
403
+ * @classdesc
404
+ * A tile source that generates tiles using the Sentinel Hub [Processing API](https://docs.sentinel-hub.com/api/latest/api/process/).
405
+ * All of the constructor options are optional, however the source will not be ready for rendering until the `auth`, `data`,
406
+ * and `evalscript` properties are provided. These can be set after construction with the {@link module:ol/source/SentinelHub~SentinelHub#setAuth},
407
+ * {@link module:ol/source/SentinelHub~SentinelHub#setData}, and {@link module:ol/source/SentinelHub~SentinelHub#setEvalscript}
408
+ * methods.
409
+ *
410
+ * If there are errors while configuring the source or fetching an access token, the `change` event will be fired and the
411
+ * source state will be set to `error`. See the {@link module:ol/source/SentinelHub~SentinelHub#getError} method for
412
+ * details on handling these errors.
413
+ * @api
414
+ */
415
+ declare class SentinelHub extends DataTileSource<import("../DataTile.js").default> {
416
+ /**
417
+ * @param {Options} [options] Sentinel Hub options.
418
+ */
419
+ constructor(options?: Options | undefined);
420
+ /**
421
+ * @type {Error|null}
422
+ */
423
+ error_: Error | null;
424
+ /**
425
+ * @type {string}
426
+ * @private
427
+ */
428
+ private evalscript_;
429
+ /**
430
+ * @type {Array<ProcessRequestInputDataItem>|null}
431
+ * @private
432
+ */
433
+ private inputData_;
434
+ /**
435
+ * @type {string}
436
+ * @private
437
+ */
438
+ private processUrl_;
439
+ /**
440
+ * @type {string}
441
+ * @private
442
+ */
443
+ private token_;
444
+ /**
445
+ * @type {ReturnType<typeof setTimeout>}
446
+ * @private
447
+ */
448
+ private tokenRenewalId_;
449
+ /**
450
+ * Set the authentication configuration for the source (if not provided in the constructor).
451
+ * If an object with `clientId` and `clientSecret` is provided, an access token will be fetched
452
+ * and used with processing requests. Alternatively, an access token can be supplied directly.
453
+ *
454
+ * @param {AuthConfig|string} auth The auth config or access token.
455
+ * @api
456
+ */
457
+ setAuth(auth: AuthConfig | string): Promise<void>;
458
+ /**
459
+ * Set or update the input data used.
460
+ *
461
+ * @param {Array<ProcessRequestInputDataItem>} data The input data configuration.
462
+ * @api
463
+ */
464
+ setData(data: Array<ProcessRequestInputDataItem>): void;
465
+ /**
466
+ * Set or update the Evalscript used to process the data. Either a process object or a string
467
+ * Evalscript can be provided. If a process object is provided, it will be serialized to produce the
468
+ * Evalscript string. Because these functions will be serialized and executed by the Processing API,
469
+ * they cannot refer to other variables or functions that are not provided by the Processing API
470
+ * context.
471
+ *
472
+ * @param {Evalscript|string} evalscript The process to apply to the input data.
473
+ * @api
474
+ */
475
+ setEvalscript(evalscript: Evalscript | string): void;
476
+ fireWhenReady_(): void;
477
+ /**
478
+ * @param {number} z The z tile index.
479
+ * @param {number} x The x tile index.
480
+ * @param {number} y The y tile index.
481
+ * @param {number} attempt The attempt number (starting with 1). Incremented with retries.
482
+ * @return {Promise<import('../DataTile.js').Data>} The composed tile data.
483
+ * @private
484
+ */
485
+ private loadTile_;
486
+ /**
487
+ * When the source state is `error`, use this function to get more information about the error.
488
+ * To debug a faulty configuration, you may want to use a listener like this:
489
+ * ```js
490
+ * source.on('change', () => {
491
+ * if (source.getState() === 'error') {
492
+ * console.error(source.getError());
493
+ * }
494
+ * });
495
+ * ```
496
+ *
497
+ * @return {Error|null} A source loading error.
498
+ * @api
499
+ */
500
+ getError(): Error | null;
501
+ }
502
+ import DataTileSource from './DataTile.js';
503
+ //# sourceMappingURL=SentinelHub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SentinelHub.d.ts","sourceRoot":"","sources":["SentinelHub.js"],"names":[],"mappings":"AA6RA;;;GAGG;AACH,wCAHW,MAAM,GACL,iBAAiB,CAiB5B;AAED;;;;;;GAMG;AACH,oDAHW,OAAO,uBAAuB,EAAE,OAAO,GACtC,MAAM,CAiBjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,QACN,WAAS,SAAS,GACjB,MAAM,CAgBjB;;;;;;;;;;cApUa,MAAM;;;;kBACN,MAAM;;;;;;SAKN,MAAM;;;;;;WAKN,KAAK;;;;mBACL,aAAa;;;;;;;;;;;;;;;;;;oBAQd,MAAY,WAAW;4BAIvB,CAAS,IAAoB,EAApB,MAAM,GAAC,KAAK,CAA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