@mint-ui/map 0.5.9-beta → 0.5.10-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.
@@ -62,9 +62,7 @@ function PolygonMarker(_a) {
62
62
  if (zoomLevel.current !== newZoomLevel) {
63
63
  zoomLevel.current = newZoomLevel;
64
64
  renderPolygonBase();
65
- setTimeout(function () {
66
- setMapVisible(true);
67
- });
65
+ setMapVisible(true);
68
66
  }
69
67
  }, []);
70
68
  var zoomLevel = React.useRef(controller.getZoomLevel());
@@ -112,8 +112,8 @@ function SVGPolygon(_a) {
112
112
 
113
113
  React.useEffect(function () {
114
114
  var info = getPolygonInfo(path);
115
- setWidth(info.containerWidth);
116
- setHeight(info.containerHeight);
115
+ setWidth(Math.round(info.containerWidth));
116
+ setHeight(Math.round(info.containerHeight));
117
117
  setD(getD(tslib.__assign(tslib.__assign({}, info), {
118
118
  path: path,
119
119
  innerPath: innerPath,
package/dist/index.es.js CHANGED
@@ -3847,8 +3847,8 @@ function SVGPolygon(_a) {
3847
3847
 
3848
3848
  useEffect(function () {
3849
3849
  var info = getPolygonInfo(path);
3850
- setWidth(info.containerWidth);
3851
- setHeight(info.containerHeight);
3850
+ setWidth(Math.round(info.containerWidth));
3851
+ setHeight(Math.round(info.containerHeight));
3852
3852
  setD(getD(__assign(__assign({}, info), {
3853
3853
  path: path,
3854
3854
  innerPath: innerPath,
@@ -4493,9 +4493,7 @@ function PolygonMarker(_a) {
4493
4493
  if (zoomLevel.current !== newZoomLevel) {
4494
4494
  zoomLevel.current = newZoomLevel;
4495
4495
  renderPolygonBase();
4496
- setTimeout(function () {
4497
- setMapVisible(true);
4498
- });
4496
+ setMapVisible(true);
4499
4497
  }
4500
4498
  }, []);
4501
4499
  var zoomLevel = useRef(controller.getZoomLevel());
package/dist/index.umd.js CHANGED
@@ -3851,8 +3851,8 @@
3851
3851
 
3852
3852
  React.useEffect(function () {
3853
3853
  var info = getPolygonInfo(path);
3854
- setWidth(info.containerWidth);
3855
- setHeight(info.containerHeight);
3854
+ setWidth(Math.round(info.containerWidth));
3855
+ setHeight(Math.round(info.containerHeight));
3856
3856
  setD(getD(tslib.__assign(tslib.__assign({}, info), {
3857
3857
  path: path,
3858
3858
  innerPath: innerPath,
@@ -4497,9 +4497,7 @@
4497
4497
  if (zoomLevel.current !== newZoomLevel) {
4498
4498
  zoomLevel.current = newZoomLevel;
4499
4499
  renderPolygonBase();
4500
- setTimeout(function () {
4501
- setMapVisible(true);
4502
- });
4500
+ setMapVisible(true);
4503
4501
  }
4504
4502
  }, []);
4505
4503
  var zoomLevel = React.useRef(controller.getZoomLevel());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mint-ui/map",
3
- "version": "0.5.9-beta",
3
+ "version": "0.5.10-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "browser": "./dist/index.umd.js",