@mint-ui/map 0.3.1-beta → 0.3.2-beta

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.
@@ -15,4 +15,4 @@ export interface ClusterStatus {
15
15
  max: number;
16
16
  }
17
17
  export declare type ClusterSizeCalculator = (info: ClusterInfo, status: ClusterStatus) => number;
18
- export declare const getClusterInfo: (basePixelSize: number, mapBounds: Bounds, mapWidth: number, mapHeight: number, itemList: Position[], sizeFunction?: ClusterSizeCalculator) => (ClusterInfo[] | Bounds[])[];
18
+ export declare const getClusterInfo: (basePixelSize: number, mapBounds: Bounds, mapWidth: number, mapHeight: number, itemList: Position[], sizeFunction?: ClusterSizeCalculator) => ClusterInfo[];
@@ -11,7 +11,6 @@ var getClusterInfo = function (basePixelSize, mapBounds, mapWidth, mapHeight, it
11
11
  var colCount = Number((mapHeight / basePixelSize).toFixed(0)) || 1;
12
12
  var boundsLineSizeX = Number(((mapBounds.ne.lng - mapBounds.nw.lng) / rowCount).toFixed(7));
13
13
  var boundsLineSizeY = Number(((mapBounds.nw.lat - mapBounds.se.lat) / colCount).toFixed(7));
14
- var boundsList = [];
15
14
  var boundsPos = [];
16
15
  var tempX1, tempY1, tempX2, tempY2;
17
16
 
@@ -35,7 +34,6 @@ var getClusterInfo = function (basePixelSize, mapBounds, mapWidth, mapHeight, it
35
34
  itemList: includedList,
36
35
  size: basePixelSize
37
36
  });
38
- boundsList.push(thisBounds);
39
37
  }
40
38
  }
41
39
 
@@ -122,7 +120,7 @@ var getClusterInfo = function (basePixelSize, mapBounds, mapWidth, mapHeight, it
122
120
  center.size = sizeFunction(center, status);
123
121
  }
124
122
 
125
- return [centerList, boundsList];
123
+ return centerList;
126
124
  };
127
125
 
128
126
  var calculateAverage = function (nums) {
package/dist/index.es.js CHANGED
@@ -2174,7 +2174,6 @@ var getClusterInfo = function (basePixelSize, mapBounds, mapWidth, mapHeight, it
2174
2174
  var colCount = Number((mapHeight / basePixelSize).toFixed(0)) || 1;
2175
2175
  var boundsLineSizeX = Number(((mapBounds.ne.lng - mapBounds.nw.lng) / rowCount).toFixed(7));
2176
2176
  var boundsLineSizeY = Number(((mapBounds.nw.lat - mapBounds.se.lat) / colCount).toFixed(7));
2177
- var boundsList = [];
2178
2177
  var boundsPos = [];
2179
2178
  var tempX1, tempY1, tempX2, tempY2;
2180
2179
 
@@ -2198,7 +2197,6 @@ var getClusterInfo = function (basePixelSize, mapBounds, mapWidth, mapHeight, it
2198
2197
  itemList: includedList,
2199
2198
  size: basePixelSize
2200
2199
  });
2201
- boundsList.push(thisBounds);
2202
2200
  }
2203
2201
  }
2204
2202
 
@@ -2285,7 +2283,7 @@ var getClusterInfo = function (basePixelSize, mapBounds, mapWidth, mapHeight, it
2285
2283
  center.size = sizeFunction(center, status);
2286
2284
  }
2287
2285
 
2288
- return [centerList, boundsList];
2286
+ return centerList;
2289
2287
  };
2290
2288
 
2291
2289
  var calculateAverage = function (nums) {
package/dist/index.umd.js CHANGED
@@ -2179,7 +2179,6 @@
2179
2179
  var colCount = Number((mapHeight / basePixelSize).toFixed(0)) || 1;
2180
2180
  var boundsLineSizeX = Number(((mapBounds.ne.lng - mapBounds.nw.lng) / rowCount).toFixed(7));
2181
2181
  var boundsLineSizeY = Number(((mapBounds.nw.lat - mapBounds.se.lat) / colCount).toFixed(7));
2182
- var boundsList = [];
2183
2182
  var boundsPos = [];
2184
2183
  var tempX1, tempY1, tempX2, tempY2;
2185
2184
 
@@ -2203,7 +2202,6 @@
2203
2202
  itemList: includedList,
2204
2203
  size: basePixelSize
2205
2204
  });
2206
- boundsList.push(thisBounds);
2207
2205
  }
2208
2206
  }
2209
2207
 
@@ -2290,7 +2288,7 @@
2290
2288
  center.size = sizeFunction(center, status);
2291
2289
  }
2292
2290
 
2293
- return [centerList, boundsList];
2291
+ return centerList;
2294
2292
  };
2295
2293
 
2296
2294
  var calculateAverage = function (nums) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mint-ui/map",
3
- "version": "0.3.1-beta",
3
+ "version": "0.3.2-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "browser": "./dist/index.umd.js",