ol 9.2.5-dev.1721672404402 → 9.2.5-dev.1721820010521

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": "9.2.5-dev.1721672404402",
3
+ "version": "9.2.5-dev.1721820010521",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -31,7 +31,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
31
31
  * See {@link module :ol/geom/Polygon~Polygon#getInteriorPoint} for a way to get a cluster
32
32
  * calculation point for polygons.
33
33
  */
34
- geometryFunction?: ((arg0: FeatureType) => (Point)) | undefined;
34
+ geometryFunction?: ((arg0: FeatureType) => (Point | null)) | undefined;
35
35
  /**
36
36
  * Function that takes the cluster's center {@link module :ol/geom/Point~Point} and an array
37
37
  * of {@link module :ol/Feature~Feature} included in this cluster. Must return a
@@ -66,7 +66,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
66
66
  * By default no minimum distance is guaranteed. This config can be used to avoid
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
- * @property {function(FeatureType):(Point)} [geometryFunction]
69
+ * @property {function(FeatureType):(Point|null)} [geometryFunction]
70
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
@@ -142,7 +142,7 @@ declare class Cluster<FeatureType extends import("../Feature.js").FeatureLike> e
142
142
  * @return {Point} Cluster calculation point.
143
143
  * @protected
144
144
  */
145
- protected geometryFunction: (arg0: FeatureType) => (Point);
145
+ protected geometryFunction: (arg0: FeatureType) => (Point | null);
146
146
  /**
147
147
  * @type {function(Point, Array<FeatureType>):Feature}
148
148
  * @private
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.d.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;IAED;;;;OAIG;IACH,kBAHW,YAAY,CAAC,WAAW,CAAC,GAAC,IAAI,QAYxC;IAYD;;;;OAIG;IACH,yBAHW,MAAM,eACN,MAAM,QAahB;IAED;;OAEG;IACH,0BAkCC;IAED;;;;;OAKG;IACH,kCALW,KAAK,CAAC,WAAW,CAAC,UAClB,OAAO,cAAc,EAAE,MAAM,GAC5B,OAAO,CA2BlB;CACF;kBAxUiB,kBAAkB;oBADhB,eAAe;yBAEV,aAAa"}
package/source/Cluster.js CHANGED
@@ -27,7 +27,7 @@ import {getUid} from '../util.js';
27
27
  * By default no minimum distance is guaranteed. This config can be used to avoid
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
- * @property {function(FeatureType):(Point)} [geometryFunction]
30
+ * @property {function(FeatureType):(Point|null)} [geometryFunction]
31
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
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.1721672404402';
36
+ export const VERSION = '9.2.5-dev.1721820010521';