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.
- package/Tile.d.ts +4 -4
- package/Tile.js +2 -2
- package/VectorTile.d.ts +1 -1
- package/VectorTile.js +1 -1
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/events/condition.d.ts +2 -2
- package/events/condition.js +1 -1
- package/featureloader.d.ts +2 -2
- package/featureloader.js +1 -1
- package/interaction/DragBox.d.ts +2 -2
- package/interaction/DragBox.js +2 -2
- package/interaction/DragPan.d.ts +2 -2
- package/interaction/DragPan.js +1 -1
- package/interaction/DragRotate.d.ts +3 -3
- package/interaction/DragRotate.js +2 -2
- package/interaction/DragRotateAndZoom.d.ts +2 -2
- package/interaction/DragRotateAndZoom.js +1 -1
- package/interaction/DragZoom.d.ts +3 -3
- package/interaction/DragZoom.js +2 -2
- package/interaction/Draw.d.ts +3 -3
- package/interaction/Draw.js +3 -3
- package/interaction/Extent.d.ts +1 -1
- package/interaction/Extent.js +1 -1
- package/interaction/KeyboardPan.d.ts +2 -2
- package/interaction/KeyboardPan.js +1 -1
- package/interaction/KeyboardZoom.d.ts +2 -2
- package/interaction/KeyboardZoom.js +1 -1
- package/interaction/Modify.d.ts +6 -6
- package/interaction/Modify.js +3 -3
- package/interaction/MouseWheelZoom.d.ts +2 -2
- package/interaction/MouseWheelZoom.js +1 -1
- package/interaction/Select.d.ts +12 -12
- package/interaction/Select.js +6 -6
- package/interaction/Translate.d.ts +8 -8
- package/interaction/Translate.js +4 -4
- package/package.json +1 -1
- package/source/Cluster.d.ts +2 -2
- package/source/Cluster.js +1 -1
- package/source/Vector.d.ts +2 -2
- package/source/Vector.js +2 -2
- package/style/Fill.d.ts +1 -1
- package/style/Fill.js +1 -1
- package/style/Style.d.ts +4 -4
- package/style/Style.js +2 -2
- package/util.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A function that takes
|
|
3
|
-
* {@link module:ol/render/Feature~RenderFeature} and
|
|
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
|
|
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
|
|
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
|
|
72
|
-
* {@link module :ol/render/Feature~RenderFeature} and
|
|
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
|
|
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
|
|
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
|
*/
|
package/interaction/Translate.js
CHANGED
|
@@ -35,8 +35,8 @@ const TranslateEventType = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* A function that takes
|
|
39
|
-
* {@link module:ol/render/Feature~RenderFeature} and
|
|
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
|
|
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
|
|
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
package/source/Cluster.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
package/source/Vector.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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