ol 9.2.5-dev.1718183112915 → 9.2.5-dev.1718470218102

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.
Files changed (46) hide show
  1. package/Tile.d.ts +4 -4
  2. package/Tile.js +2 -2
  3. package/VectorTile.d.ts +1 -1
  4. package/VectorTile.js +1 -1
  5. package/dist/ol.js +1 -1
  6. package/dist/ol.js.map +1 -1
  7. package/events/condition.d.ts +2 -2
  8. package/events/condition.js +1 -1
  9. package/featureloader.d.ts +2 -2
  10. package/featureloader.js +1 -1
  11. package/interaction/DragBox.d.ts +2 -2
  12. package/interaction/DragBox.js +2 -2
  13. package/interaction/DragPan.d.ts +2 -2
  14. package/interaction/DragPan.js +1 -1
  15. package/interaction/DragRotate.d.ts +3 -3
  16. package/interaction/DragRotate.js +2 -2
  17. package/interaction/DragRotateAndZoom.d.ts +2 -2
  18. package/interaction/DragRotateAndZoom.js +1 -1
  19. package/interaction/DragZoom.d.ts +3 -3
  20. package/interaction/DragZoom.js +2 -2
  21. package/interaction/Draw.d.ts +3 -3
  22. package/interaction/Draw.js +3 -3
  23. package/interaction/Extent.d.ts +1 -1
  24. package/interaction/Extent.js +1 -1
  25. package/interaction/KeyboardPan.d.ts +2 -2
  26. package/interaction/KeyboardPan.js +1 -1
  27. package/interaction/KeyboardZoom.d.ts +2 -2
  28. package/interaction/KeyboardZoom.js +1 -1
  29. package/interaction/Modify.d.ts +6 -6
  30. package/interaction/Modify.js +3 -3
  31. package/interaction/MouseWheelZoom.d.ts +2 -2
  32. package/interaction/MouseWheelZoom.js +1 -1
  33. package/interaction/Select.d.ts +12 -12
  34. package/interaction/Select.js +6 -6
  35. package/interaction/Translate.d.ts +8 -8
  36. package/interaction/Translate.js +4 -4
  37. package/package.json +1 -1
  38. package/source/Cluster.d.ts +2 -2
  39. package/source/Cluster.js +1 -1
  40. package/source/Vector.d.ts +2 -2
  41. package/source/Vector.js +2 -2
  42. package/style/Fill.d.ts +1 -1
  43. package/style/Fill.js +1 -1
  44. package/style/Style.d.ts +4 -4
  45. package/style/Style.js +2 -2
  46. package/util.js +1 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
- * A function that takes an {@link module:ol/Feature~Feature} or
3
- * {@link module:ol/render/Feature~RenderFeature} and an
2
+ * A function that takes a {@link module:ol/Feature~Feature} or
3
+ * {@link module:ol/render/Feature~RenderFeature} and a
4
4
  * {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
5
5
  * translated or `false` otherwise.
6
6
  * @typedef {function(Feature, import("../layer/Layer.js").default<import("../source/Source").default>):boolean} FilterFunction
@@ -8,7 +8,7 @@
8
8
  /**
9
9
  * @typedef {Object} Options
10
10
  * @property {import("../events/condition.js").Condition} [condition] A function that
11
- * takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
11
+ * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
12
12
  * boolean to indicate whether that event should be handled.
13
13
  * Default is {@link module:ol/events/condition.always}.
14
14
  * @property {Collection<Feature>} [features] Features contained in this collection will be able to be translated together.
@@ -19,7 +19,7 @@
19
19
  * absent, all visible layers will be considered translatable.
20
20
  * Not used if `features` is provided.
21
21
  * @property {FilterFunction} [filter] A function
22
- * that takes an {@link module:ol/Feature~Feature} and an
22
+ * that takes a {@link module:ol/Feature~Feature} and an
23
23
  * {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
24
24
  * translated or `false` otherwise. Not used if `features` is provided.
25
25
  * @property {number} [hitTolerance=0] Hit-detection tolerance. Pixels inside the radius around the given position
@@ -68,8 +68,8 @@ export class TranslateEvent extends Event {
68
68
  }
69
69
  export default Translate;
70
70
  /**
71
- * A function that takes an {@link module :ol/Feature~Feature} or
72
- * {@link module :ol/render/Feature~RenderFeature} and an
71
+ * A function that takes a {@link module :ol/Feature~Feature} or
72
+ * {@link module :ol/render/Feature~RenderFeature} and a
73
73
  * {@link module :ol/layer/Layer~Layer} and returns `true` if the feature may be
74
74
  * translated or `false` otherwise.
75
75
  */
@@ -77,7 +77,7 @@ export type FilterFunction = (arg0: Feature, arg1: import("../layer/Layer.js").d
77
77
  export type Options = {
78
78
  /**
79
79
  * A function that
80
- * takes an {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
80
+ * takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
81
81
  * boolean to indicate whether that event should be handled.
82
82
  * Default is {@link module :ol/events/condition.always}.
83
83
  */
@@ -97,7 +97,7 @@ export type Options = {
97
97
  layers?: import("../layer/Layer.js").default<import("../source/Source").default, import("../renderer/Layer.js").default<any>>[] | ((arg0: import("../layer/Layer.js").default<import("../source/Source").default>) => boolean) | undefined;
98
98
  /**
99
99
  * A function
100
- * that takes an {@link module :ol/Feature~Feature} and an
100
+ * that takes a {@link module :ol/Feature~Feature} and an
101
101
  * {@link module :ol/layer/Layer~Layer} and returns `true` if the feature may be
102
102
  * translated or `false` otherwise. Not used if `features` is provided.
103
103
  */
@@ -35,8 +35,8 @@ const TranslateEventType = {
35
35
  };
36
36
 
37
37
  /**
38
- * A function that takes an {@link module:ol/Feature~Feature} or
39
- * {@link module:ol/render/Feature~RenderFeature} and an
38
+ * A function that takes a {@link module:ol/Feature~Feature} or
39
+ * {@link module:ol/render/Feature~RenderFeature} and a
40
40
  * {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
41
41
  * translated or `false` otherwise.
42
42
  * @typedef {function(Feature, import("../layer/Layer.js").default<import("../source/Source").default>):boolean} FilterFunction
@@ -45,7 +45,7 @@ const TranslateEventType = {
45
45
  /**
46
46
  * @typedef {Object} Options
47
47
  * @property {import("../events/condition.js").Condition} [condition] A function that
48
- * takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
48
+ * takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
49
49
  * boolean to indicate whether that event should be handled.
50
50
  * Default is {@link module:ol/events/condition.always}.
51
51
  * @property {Collection<Feature>} [features] Features contained in this collection will be able to be translated together.
@@ -56,7 +56,7 @@ const TranslateEventType = {
56
56
  * absent, all visible layers will be considered translatable.
57
57
  * Not used if `features` is provided.
58
58
  * @property {FilterFunction} [filter] A function
59
- * that takes an {@link module:ol/Feature~Feature} and an
59
+ * that takes a {@link module:ol/Feature~Feature} and an
60
60
  * {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
61
61
  * translated or `false` otherwise. Not used if `features` is provided.
62
62
  * @property {number} [hitTolerance=0] Hit-detection tolerance. Pixels inside the radius around the given position
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "9.2.5-dev.1718183112915",
3
+ "version": "9.2.5-dev.1718470218102",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -18,7 +18,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
18
18
  */
19
19
  minDistance?: number | undefined;
20
20
  /**
21
- * Function that takes an {@link module :ol/Feature~Feature} as argument and returns an
21
+ * Function that takes a {@link module :ol/Feature~Feature} as argument and returns a
22
22
  * {@link module :ol/geom/Point~Point} as cluster calculation point for the feature. When a
23
23
  * feature should not be considered for clustering, the function should return
24
24
  * `null`. The default, which works when the underlying source contains point
@@ -67,7 +67,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
67
67
  * overlapping icons. As a tradoff, the cluster feature's position will no longer be
68
68
  * the center of all its features.
69
69
  * @property {function(FeatureType):(Point)} [geometryFunction]
70
- * Function that takes an {@link module:ol/Feature~Feature} as argument and returns an
70
+ * Function that takes a {@link module:ol/Feature~Feature} as argument and returns a
71
71
  * {@link module:ol/geom/Point~Point} as cluster calculation point for the feature. When a
72
72
  * feature should not be considered for clustering, the function should return
73
73
  * `null`. The default, which works when the underlying source contains point
package/source/Cluster.js CHANGED
@@ -28,7 +28,7 @@ import {getUid} from '../util.js';
28
28
  * overlapping icons. As a tradoff, the cluster feature's position will no longer be
29
29
  * the center of all its features.
30
30
  * @property {function(FeatureType):(Point)} [geometryFunction]
31
- * Function that takes an {@link module:ol/Feature~Feature} as argument and returns an
31
+ * Function that takes a {@link module:ol/Feature~Feature} as argument and returns a
32
32
  * {@link module:ol/geom/Point~Point} as cluster calculation point for the feature. When a
33
33
  * feature should not be considered for clustering, the function should return
34
34
  * `null`. The default, which works when the underlying source contains point
@@ -365,7 +365,7 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
365
365
  * instead. A feature will not be added to the source if feature with
366
366
  * the same id is already there. The reason for this behavior is to avoid
367
367
  * feature duplication when using bbox or tile loading strategies.
368
- * Note: this also applies if an {@link module:ol/Collection~Collection} is used for features,
368
+ * Note: this also applies if a {@link module:ol/Collection~Collection} is used for features,
369
369
  * meaning that if a feature with a duplicate id is added in the collection, it will
370
370
  * be removed from it right away.
371
371
  * @param {FeatureType} feature Feature to add.
@@ -483,7 +483,7 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
483
483
  /**
484
484
  * Get the features collection associated with this source. Will be `null`
485
485
  * unless the source was configured with `useSpatialIndex` set to `false`, or
486
- * with an {@link module:ol/Collection~Collection} as `features`.
486
+ * with a {@link module:ol/Collection~Collection} as `features`.
487
487
  * @return {Collection<FeatureType>|null} The collection of features.
488
488
  * @api
489
489
  */
package/source/Vector.js CHANGED
@@ -328,7 +328,7 @@ class VectorSource extends Source {
328
328
  * instead. A feature will not be added to the source if feature with
329
329
  * the same id is already there. The reason for this behavior is to avoid
330
330
  * feature duplication when using bbox or tile loading strategies.
331
- * Note: this also applies if an {@link module:ol/Collection~Collection} is used for features,
331
+ * Note: this also applies if a {@link module:ol/Collection~Collection} is used for features,
332
332
  * meaning that if a feature with a duplicate id is added in the collection, it will
333
333
  * be removed from it right away.
334
334
  * @param {FeatureType} feature Feature to add.
@@ -706,7 +706,7 @@ class VectorSource extends Source {
706
706
  /**
707
707
  * Get the features collection associated with this source. Will be `null`
708
708
  * unless the source was configured with `useSpatialIndex` set to `false`, or
709
- * with an {@link module:ol/Collection~Collection} as `features`.
709
+ * with a {@link module:ol/Collection~Collection} as `features`.
710
710
  * @return {Collection<FeatureType>|null} The collection of features.
711
711
  * @api
712
712
  */
package/style/Fill.d.ts CHANGED
@@ -38,7 +38,7 @@ declare class Fill {
38
38
  */
39
39
  private color_;
40
40
  /**
41
- * Clones the style. The color is not cloned if it is an {@link module:ol/colorlike~ColorLike}.
41
+ * Clones the style. The color is not cloned if it is a {@link module:ol/colorlike~ColorLike}.
42
42
  * @return {Fill} The cloned style.
43
43
  * @api
44
44
  */
package/style/Fill.js CHANGED
@@ -43,7 +43,7 @@ class Fill {
43
43
  }
44
44
 
45
45
  /**
46
- * Clones the style. The color is not cloned if it is an {@link module:ol/colorlike~ColorLike}.
46
+ * Clones the style. The color is not cloned if it is a {@link module:ol/colorlike~ColorLike}.
47
47
  * @return {Fill} The cloned style.
48
48
  * @api
49
49
  */
package/style/Style.d.ts CHANGED
@@ -28,7 +28,7 @@ export default Style;
28
28
  */
29
29
  export type DeclutterMode = "declutter" | "obstacle" | "none";
30
30
  /**
31
- * A function that takes an {@link module :ol/Feature~Feature} and a `{number}`
31
+ * A function that takes a {@link module :ol/Feature~Feature} and a `{number}`
32
32
  * representing the view's resolution. The function should return a
33
33
  * {@link module :ol/style/Style~Style} or an array of them. This way e.g. a
34
34
  * vector layer can be styled. If the function returns `undefined`, the
@@ -40,7 +40,7 @@ export type StyleFunction = (arg0: import("../Feature.js").FeatureLike, arg1: nu
40
40
  */
41
41
  export type StyleLike = Style | Array<Style> | StyleFunction;
42
42
  /**
43
- * A function that takes an {@link module :ol/Feature~Feature} as argument and returns an
43
+ * A function that takes a {@link module :ol/Feature~Feature} as argument and returns an
44
44
  * {@link module :ol/geom/Geometry~Geometry} that will be rendered and styled for the feature.
45
45
  */
46
46
  export type GeometryFunction = (arg0: import("../Feature.js").FeatureLike) => (import("../geom/Geometry.js").default | import("../render/Feature.js").default | undefined);
@@ -98,7 +98,7 @@ export type Options = {
98
98
  * @typedef {"declutter"|"obstacle"|"none"} DeclutterMode
99
99
  */
100
100
  /**
101
- * A function that takes an {@link module:ol/Feature~Feature} and a `{number}`
101
+ * A function that takes a {@link module:ol/Feature~Feature} and a `{number}`
102
102
  * representing the view's resolution. The function should return a
103
103
  * {@link module:ol/style/Style~Style} or an array of them. This way e.g. a
104
104
  * vector layer can be styled. If the function returns `undefined`, the
@@ -111,7 +111,7 @@ export type Options = {
111
111
  * @typedef {Style|Array<Style>|StyleFunction} StyleLike
112
112
  */
113
113
  /**
114
- * A function that takes an {@link module:ol/Feature~Feature} as argument and returns an
114
+ * A function that takes a {@link module:ol/Feature~Feature} as argument and returns an
115
115
  * {@link module:ol/geom/Geometry~Geometry} that will be rendered and styled for the feature.
116
116
  *
117
117
  * @typedef {function(import("../Feature.js").FeatureLike):
package/style/Style.js CHANGED
@@ -18,7 +18,7 @@ import {assert} from '../asserts.js';
18
18
  */
19
19
 
20
20
  /**
21
- * A function that takes an {@link module:ol/Feature~Feature} and a `{number}`
21
+ * A function that takes a {@link module:ol/Feature~Feature} and a `{number}`
22
22
  * representing the view's resolution. The function should return a
23
23
  * {@link module:ol/style/Style~Style} or an array of them. This way e.g. a
24
24
  * vector layer can be styled. If the function returns `undefined`, the
@@ -33,7 +33,7 @@ import {assert} from '../asserts.js';
33
33
  */
34
34
 
35
35
  /**
36
- * A function that takes an {@link module:ol/Feature~Feature} as argument and returns an
36
+ * A function that takes a {@link module:ol/Feature~Feature} as argument and returns an
37
37
  * {@link module:ol/geom/Geometry~Geometry} that will be rendered and styled for the feature.
38
38
  *
39
39
  * @typedef {function(import("../Feature.js").FeatureLike):
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '9.2.5-dev.1718183112915';
36
+ export const VERSION = '9.2.5-dev.1718470218102';