@angular/google-maps 19.2.0-next.4 → 19.2.0

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/index.d.ts CHANGED
@@ -68,25 +68,15 @@ export declare type AriaLabelFn = (text: string) => string;
68
68
  */
69
69
  export declare type Calculator = (markers: google.maps.Marker[], clusterIconStylesCount: number) => ClusterIconInfo;
70
70
 
71
- export declare class Cluster {
71
+ export declare interface Cluster {
72
72
  marker?: Marker;
73
73
  readonly markers?: Marker[];
74
- protected _position: google.maps.LatLng;
75
- constructor({ markers, position }: ClusterOptions);
76
- get bounds(): google.maps.LatLngBounds | undefined;
77
- get position(): google.maps.LatLng;
78
- /**
79
- * Get the count of **visible** markers.
80
- */
81
- get count(): number;
82
- /**
83
- * Add a marker to the cluster.
84
- */
74
+ bounds?: google.maps.LatLngBounds;
75
+ position: google.maps.LatLng;
76
+ count: number;
85
77
  push(marker: Marker): void;
86
- /**
87
- * Cleanup references and remove marker from map.
88
- */
89
78
  delete(): void;
79
+ new (options: ClusterOptions): Cluster;
90
80
  }
91
81
 
92
82
  /**
@@ -144,11 +134,11 @@ export declare interface ClusterOptions {
144
134
  markers?: Marker[];
145
135
  }
146
136
 
147
- export declare class ClusterStats {
148
- readonly markers: {
137
+ export declare interface ClusterStats {
138
+ markers: {
149
139
  sum: number;
150
140
  };
151
- readonly clusters: {
141
+ clusters: {
152
142
  count: number;
153
143
  markers: {
154
144
  mean: number;
@@ -157,7 +147,7 @@ export declare class ClusterStats {
157
147
  max: number;
158
148
  };
159
149
  };
160
- constructor(markers: Marker[], clusters: Cluster[]);
150
+ new (markers: Marker[], clusters: Cluster[]): ClusterStats;
161
151
  }
162
152
 
163
153
  /** Arbitrary default height for the map element */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/google-maps",
3
- "version": "19.2.0-next.4",
3
+ "version": "19.2.0",
4
4
  "description": "Angular Google Maps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "tslib": "^2.3.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "@angular/core": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
25
- "@angular/common": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
24
+ "@angular/core": "^19.0.0 || ^20.0.0",
25
+ "@angular/common": "^19.0.0 || ^20.0.0",
26
26
  "rxjs": "^6.5.3 || ^7.4.0"
27
27
  },
28
28
  "sideEffects": false,