@mint-ui/map 0.6.2-beta-test1 → 0.6.2-beta-test4

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.
Files changed (66) hide show
  1. package/.eslintrc.js +109 -109
  2. package/LICENSE +21 -21
  3. package/README.md +73 -73
  4. package/dist/components/mint-map/MintMap.d.ts +10 -10
  5. package/dist/components/mint-map/MintMap.js +6 -6
  6. package/dist/components/mint-map/core/MintMapCanvasRenderer.d.ts +4 -4
  7. package/dist/components/mint-map/core/MintMapController.d.ts +66 -66
  8. package/dist/components/mint-map/core/MintMapController.js +9 -9
  9. package/dist/components/mint-map/core/MintMapCore.d.ts +3 -3
  10. package/dist/components/mint-map/core/advanced/MapBuildingProjection.d.ts +15 -15
  11. package/dist/components/mint-map/core/advanced/MapLoadingComponents.d.ts +17 -17
  12. package/dist/components/mint-map/core/advanced/index.d.ts +3 -3
  13. package/dist/components/mint-map/core/advanced/shapes/CircleMarker.d.ts +22 -22
  14. package/dist/components/mint-map/core/advanced/shapes/CircleMarker.js +6 -6
  15. package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.d.ts +28 -28
  16. package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.js +6 -6
  17. package/dist/components/mint-map/core/advanced/shapes/base/SVGCircle.d.ts +8 -8
  18. package/dist/components/mint-map/core/advanced/shapes/base/SVGPolygon.d.ts +12 -12
  19. package/dist/components/mint-map/core/advanced/shapes/base/SVGRect.d.ts +10 -10
  20. package/dist/components/mint-map/core/advanced/shapes/base/index.d.ts +3 -3
  21. package/dist/components/mint-map/core/advanced/shapes/index.d.ts +3 -3
  22. package/dist/components/mint-map/core/hooks/MarkerMovingHook.d.ts +6 -6
  23. package/dist/components/mint-map/core/hooks/index.d.ts +1 -1
  24. package/dist/components/mint-map/core/index.d.ts +8 -8
  25. package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +8 -8
  26. package/dist/components/mint-map/core/provider/index.d.ts +1 -1
  27. package/dist/components/mint-map/core/util/animation.d.ts +16 -16
  28. package/dist/components/mint-map/core/util/cluster.d.ts +18 -18
  29. package/dist/components/mint-map/core/util/geo.d.ts +38 -38
  30. package/dist/components/mint-map/core/util/index.d.ts +7 -7
  31. package/dist/components/mint-map/core/util/log.d.ts +1 -1
  32. package/dist/components/mint-map/core/util/polygon.d.ts +42 -42
  33. package/dist/components/mint-map/core/util/status.d.ts +9 -9
  34. package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
  35. package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.d.ts +27 -27
  36. package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.js +6 -6
  37. package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.d.ts +11 -11
  38. package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +6 -6
  39. package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +18 -18
  40. package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
  41. package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +44 -43
  42. package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +55 -44
  43. package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +12 -12
  44. package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.js +6 -6
  45. package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +12 -12
  46. package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.js +6 -6
  47. package/dist/components/mint-map/core/wrapper/index.d.ts +6 -6
  48. package/dist/components/mint-map/google/GoogleMintMapController.d.ts +51 -51
  49. package/dist/components/mint-map/index.d.ts +5 -5
  50. package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +55 -55
  51. package/dist/components/mint-map/kakao/KakaoMintMapController.js +7 -7
  52. package/dist/components/mint-map/naver/NaverMintMapController.d.ts +53 -53
  53. package/dist/components/mint-map/naver/NaverMintMapController.js +5 -5
  54. package/dist/components/mint-map/types/CommonTypes.d.ts +11 -11
  55. package/dist/components/mint-map/types/MapDrawables.d.ts +118 -118
  56. package/dist/components/mint-map/types/MapDrawables.js +8 -8
  57. package/dist/components/mint-map/types/MapEventTypes.d.ts +44 -44
  58. package/dist/components/mint-map/types/MapTypes.d.ts +60 -60
  59. package/dist/components/mint-map/types/MapTypes.js +13 -13
  60. package/dist/components/mint-map/types/MintMapEvents.d.ts +25 -25
  61. package/dist/components/mint-map/types/MintMapProps.d.ts +101 -101
  62. package/dist/components/mint-map/types/index.d.ts +6 -6
  63. package/dist/index.d.ts +7 -7
  64. package/dist/index.es.js +145 -134
  65. package/dist/index.umd.js +145 -134
  66. package/package.json +77 -77
package/dist/index.umd.js CHANGED
@@ -477,23 +477,23 @@
477
477
  return PolygonCalculator;
478
478
  }();
479
479
 
480
- /**
481
- * 좌표값
482
- * @description 위도/경도, DOM 상의 X/Y 좌표
480
+ /**
481
+ * 좌표값
482
+ * @description 위도/경도, DOM 상의 X/Y 좌표
483
483
  */
484
484
 
485
485
  var Position =
486
486
  /** @class */
487
487
  function () {
488
488
  function Position(lat, lng) {
489
- /**
490
- * 위도
491
- * @description 위도(latitude)
489
+ /**
490
+ * 위도
491
+ * @description 위도(latitude)
492
492
  */
493
493
  this.lat = 0;
494
- /**
495
- * 경도
496
- * @description 경도(longitude)
494
+ /**
495
+ * 경도
496
+ * @description 경도(longitude)
497
497
  */
498
498
 
499
499
  this.lng = 0;
@@ -601,15 +601,15 @@
601
601
 
602
602
  return Bounds;
603
603
  }();
604
- /**
605
- * DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
604
+ /**
605
+ * DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
606
606
  */
607
607
 
608
608
  var Offset =
609
609
  /** @class */
610
610
  function () {
611
- /**
612
- * DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
611
+ /**
612
+ * DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
613
613
  */
614
614
  function Offset(x, y) {
615
615
  this.x = x;
@@ -1140,12 +1140,12 @@
1140
1140
  MintMapController.prototype.getRandomFunctionName = function (prefix) {
1141
1141
  return "".concat(prefix, "_").concat(uuid.v4().replace(/-/g, '_'));
1142
1142
  };
1143
- /**
1144
- * URL 빌더 메서드
1145
- *
1146
- * @param {string} baseUrl: 기본 URL
1147
- * @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
1148
- * @returns {string} URL
1143
+ /**
1144
+ * URL 빌더 메서드
1145
+ *
1146
+ * @param {string} baseUrl: 기본 URL
1147
+ * @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
1148
+ * @returns {string} URL
1149
1149
  */
1150
1150
 
1151
1151
 
@@ -1158,9 +1158,9 @@
1158
1158
  }).join('&');
1159
1159
  return "".concat(baseUrl, "?").concat(params);
1160
1160
  };
1161
- /**
1162
- * 쓰로틀링 처리
1163
- * @returns
1161
+ /**
1162
+ * 쓰로틀링 처리
1163
+ * @returns
1164
1164
  */
1165
1165
 
1166
1166
 
@@ -1702,11 +1702,11 @@
1702
1702
  var map = marker.native.getMap();
1703
1703
 
1704
1704
  if (map) {
1705
- /** 중요!!!!
1706
- * naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
1707
- * setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
1708
- * (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
1709
- * 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
1705
+ /** 중요!!!!
1706
+ * naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
1707
+ * setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
1708
+ * (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
1709
+ * 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
1710
1710
  */
1711
1711
  //Position
1712
1712
  if (options.position && options.position instanceof Position) {
@@ -3424,13 +3424,13 @@
3424
3424
  };
3425
3425
 
3426
3426
  KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
3427
- /**
3428
- * 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
3429
- * - 가장 확대된 값 : 1
3430
- * - 가장 축소된 값 : 14
3431
- *
3432
- * 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
3433
- * 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
3427
+ /**
3428
+ * 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
3429
+ * - 가장 확대된 값 : 1
3430
+ * - 가장 축소된 값 : 14
3431
+ *
3432
+ * 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
3433
+ * 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
3434
3434
  */
3435
3435
  var mapValue = this.getBaseToMapZoom(value);
3436
3436
 
@@ -3615,12 +3615,12 @@
3615
3615
  lat: 37.5036845,
3616
3616
  lng: 127.0448698
3617
3617
  };
3618
- /**
3619
- * Mint Map 컴포넌트
3620
- *
3621
- * @param {MintMapProps} MintMapProps
3622
- *
3623
- * @returns {JSX.Element} JSX
3618
+ /**
3619
+ * Mint Map 컴포넌트
3620
+ *
3621
+ * @param {MintMapProps} MintMapProps
3622
+ *
3623
+ * @returns {JSX.Element} JSX
3624
3624
  */
3625
3625
 
3626
3626
  function MintMap(_a) {
@@ -3782,8 +3782,8 @@
3782
3782
  /** @class */
3783
3783
  function (_super) {
3784
3784
  tslib.__extends(Marker, _super);
3785
- /**
3786
- * 지도에 표시할 마커정보
3785
+ /**
3786
+ * 지도에 표시할 마커정보
3787
3787
  */
3788
3788
 
3789
3789
 
@@ -3801,8 +3801,8 @@
3801
3801
  /** @class */
3802
3802
  function (_super) {
3803
3803
  tslib.__extends(Polyline, _super);
3804
- /**
3805
- * 지도에 표시할 폴리곤정보
3804
+ /**
3805
+ * 지도에 표시할 폴리곤정보
3806
3806
  */
3807
3807
 
3808
3808
 
@@ -3820,8 +3820,8 @@
3820
3820
  /** @class */
3821
3821
  function (_super) {
3822
3822
  tslib.__extends(Polygon, _super);
3823
- /**
3824
- * 지도에 표시할 폴리곤정보
3823
+ /**
3824
+ * 지도에 표시할 폴리곤정보
3825
3825
  */
3826
3826
 
3827
3827
 
@@ -3831,8 +3831,8 @@
3831
3831
  _this.options = options;
3832
3832
  return _this;
3833
3833
  }
3834
- /**
3835
- * 폴리곤의 중점을 구한다.
3834
+ /**
3835
+ * 폴리곤의 중점을 구한다.
3836
3836
  */
3837
3837
 
3838
3838
 
@@ -4175,25 +4175,30 @@
4175
4175
  return [start, stop, resume];
4176
4176
  }
4177
4177
 
4178
- var offsetCalibration = function (mapType, divElement, options, autoFitToViewport, mapDivElement) {
4178
+ var offsetCalibration = function (mapType, divElement, options, autoFitToViewport, autoAdjustAnchor, mapDivElement) {
4179
4179
  //google 맵의 anchor 보정 (네이버와 같이 왼쪽/위 기준으로 처리)
4180
+ var baseTransform = '';
4181
+
4180
4182
  if (mapType === 'google') {
4181
- divElement.style.transform = "translate(50%, 100%) translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4183
+ baseTransform = "translate(50%, 100%) translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4182
4184
  } else if (mapType === 'kakao') {
4183
- divElement.style.transform = "translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4185
+ baseTransform = "translate(".concat(options.anchor ? options.anchor.x * -1 : '0', "px, ").concat(options.anchor ? options.anchor.y * -1 : '0', "px)");
4184
4186
  }
4185
4187
 
4186
- if (autoFitToViewport) {
4187
- // google 은 마커의 getBoundingClientRect 값을 바로 얻을 수 없어서 next tick 에 처리
4188
+ divElement.style.transform = baseTransform;
4189
+
4190
+ if (autoFitToViewport || autoAdjustAnchor) {
4191
+ // google 은 마커의 getBoundingClientRect 값을 바로 얻을 수 없어서 next tick 에 처리 (50회 트라이)
4188
4192
  if (mapType === 'google') {
4189
- transformToFitWithNextTick(mapType, divElement, options, mapDivElement, 10);
4193
+ divElement.style.visibility = 'hidden';
4194
+ transformToFitWithNextTick(divElement, mapDivElement, baseTransform, autoAdjustAnchor, 50);
4190
4195
  } else {
4191
- transformToFit(mapType, divElement, options, mapDivElement);
4196
+ transformToFit(divElement, mapDivElement, baseTransform, autoAdjustAnchor);
4192
4197
  }
4193
4198
  }
4194
4199
  };
4195
4200
 
4196
- var transformToFitWithNextTick = function (mapType, divElement, options, mapDivElement, maxTryCount, nextCount) {
4201
+ var transformToFitWithNextTick = function (divElement, mapDivElement, baseTransform, anchorAdjust, maxTryCount, nextCount) {
4197
4202
  var tryCount = nextCount || 0;
4198
4203
  setTimeout(function () {
4199
4204
  tryCount += 1;
@@ -4205,51 +4210,54 @@
4205
4210
  var rect = divElement.getBoundingClientRect();
4206
4211
 
4207
4212
  if (rect.x === 0 && rect.y === 0 && rect.width === 0 && rect.height === 0) {
4208
- transformToFitWithNextTick(mapType, divElement, options, mapDivElement, maxTryCount, tryCount);
4213
+ transformToFitWithNextTick(divElement, mapDivElement, baseTransform, anchorAdjust, maxTryCount, tryCount);
4209
4214
  } else {
4210
- transformToFit(mapType, divElement, options, mapDivElement);
4215
+ transformToFit(divElement, mapDivElement, baseTransform, anchorAdjust);
4216
+ divElement.style.visibility = 'visible';
4211
4217
  }
4212
4218
  }, 20);
4213
4219
  };
4214
4220
 
4215
- var transformToFit = function (mapType, divElement, options, mapDivElement) {
4221
+ var transformToFit = function (divElement, mapDivElement, baseTransform, anchorAdjust) {
4216
4222
  var mapRect = mapDivElement.getBoundingClientRect();
4217
4223
  var rect = divElement.getBoundingClientRect(); // 보정 값 계산
4218
4224
 
4219
4225
  var xValue = getMarkersFitPosition(mapRect.x, mapRect.width, rect.x, rect.width);
4220
4226
  var yValue = getMarkersFitPosition(mapRect.y, mapRect.height, rect.y, rect.height);
4221
4227
 
4222
- if (xValue !== 0 || yValue !== 0) {
4223
- if (mapType === 'google') {
4224
- divElement.style.transform = "translate(50%, 100%) translate(".concat(options.anchor ? options.anchor.x * -1 + xValue : xValue, "px, ").concat(options.anchor ? options.anchor.y * -1 + yValue : yValue, "px)");
4225
- } else if (mapType === 'kakao') {
4226
- divElement.style.transform = "translate(".concat(options.anchor ? options.anchor.x * -1 + xValue : xValue, "px, ").concat(options.anchor ? options.anchor.y * -1 + yValue : yValue, "px)");
4227
- } else {
4228
- divElement.style.transform = "translate(".concat(xValue, "px, ").concat(yValue, "px)");
4229
- }
4228
+ if (anchorAdjust) {
4229
+ var toLeft = xValue < 0;
4230
+ var toRight = xValue > 0;
4231
+ var toTop = yValue < 0;
4232
+ var toBottom = yValue > 0;
4233
+ var transX = toLeft ? rect.width * -1 : toRight ? rect.width : 0;
4234
+ var transY = toTop ? rect.height * -1 : toBottom ? rect.height : 0;
4235
+ divElement.style.transform = baseTransform + " translate(".concat(transX, "px, ").concat(transY, "px)");
4236
+ } else {
4237
+ divElement.style.transform = baseTransform + " translate(".concat(xValue, "px, ").concat(yValue, "px)");
4230
4238
  }
4231
4239
  };
4232
4240
 
4233
4241
  var getMarkersFitPosition = function (containerPosition, containerSize, markerPosition, markerSize) {
4234
4242
  var delta = markerPosition - containerPosition;
4235
4243
  var mapSize = containerSize;
4236
- var overflowMin = delta <= 0;
4237
- var overflowMax = delta + markerSize >= mapSize; // 한쪽만 넘어간 경우 처리
4244
+ var overflowMin = delta < 0;
4245
+ var overflowMax = delta + markerSize > mapSize; // 한쪽만 넘어간 경우 처리
4238
4246
 
4239
4247
  if (overflowMin && !overflowMax) {
4240
- return delta;
4248
+ return delta * -1;
4241
4249
  } else if (!overflowMin && overflowMax) {
4242
4250
  return mapSize - delta - markerSize;
4243
4251
  }
4244
4252
 
4245
4253
  return 0;
4246
4254
  };
4247
- /**
4248
- * Mint Map 컴포넌트
4249
- *
4250
- * @param {MapControlWrapperProps} MapControlWrapperProps
4251
- *
4252
- * @returns {JSX.Element} JSX
4255
+ /**
4256
+ * Mint Map 컴포넌트
4257
+ *
4258
+ * @param {MapControlWrapperProps} MapControlWrapperProps
4259
+ *
4260
+ * @returns {JSX.Element} JSX
4253
4261
  */
4254
4262
 
4255
4263
 
@@ -4258,15 +4266,17 @@
4258
4266
  _a.endAnimationClassName;
4259
4267
  var _b = _a.autoFitToViewport,
4260
4268
  autoFitToViewport = _b === void 0 ? false : _b,
4261
- _c = _a.topOnClick,
4262
- topOnClick = _c === void 0 ? false : _c,
4263
- _d = _a.topOnHover,
4264
- topOnHover = _d === void 0 ? false : _d,
4269
+ _c = _a.autoAdjustAnchor,
4270
+ autoAdjustAnchor = _c === void 0 ? false : _c,
4271
+ _d = _a.topOnClick,
4272
+ topOnClick = _d === void 0 ? false : _d,
4273
+ _e = _a.topOnHover,
4274
+ topOnHover = _e === void 0 ? false : _e,
4265
4275
  movingAnimation = _a.movingAnimation,
4266
- _e = _a.disablePointerEvent,
4267
- disablePointerEvent = _e === void 0 ? false : _e,
4276
+ _f = _a.disablePointerEvent,
4277
+ disablePointerEvent = _f === void 0 ? false : _f,
4268
4278
  children = _a.children,
4269
- options = tslib.__rest(_a, ["startAnimationClassName", "endAnimationClassName", "autoFitToViewport", "topOnClick", "topOnHover", "movingAnimation", "disablePointerEvent", "children"]); //controller
4279
+ options = tslib.__rest(_a, ["startAnimationClassName", "endAnimationClassName", "autoFitToViewport", "autoAdjustAnchor", "topOnClick", "topOnHover", "movingAnimation", "disablePointerEvent", "children"]); //controller
4270
4280
 
4271
4281
 
4272
4282
  var controller = useMintMapController(); //element
@@ -4276,9 +4286,9 @@
4276
4286
 
4277
4287
  var markerRef = React.useRef(); //moving animation
4278
4288
 
4279
- var _f = React.useState({}),
4280
- movingState = _f[0],
4281
- setMovingState = _f[1];
4289
+ var _g = React.useState({}),
4290
+ movingState = _g[0],
4291
+ setMovingState = _g[1];
4282
4292
 
4283
4293
  React.useEffect(function () {
4284
4294
  // console.log('movingState', movingState);
@@ -4344,10 +4354,11 @@
4344
4354
 
4345
4355
  React.useEffect(function () {
4346
4356
  // console.log('drawable created')
4347
- divElement.style.display = 'flex';
4348
- divElement.style.justifyContent = 'flex-start';
4349
- divElement.style.alignItems = 'flex-start';
4350
- divElement.style.flexDirection = 'column';
4357
+ // divElement.style.display = 'flex'
4358
+ // divElement.style.justifyContent = 'flex-start'
4359
+ // divElement.style.alignItems = 'flex-start'
4360
+ // divElement.style.flexDirection = 'column'
4361
+ divElement.style.width = 'fit-content';
4351
4362
  divElement.style.pointerEvents = disablePointerEvent ? 'none' : '';
4352
4363
  divElement.addEventListener('click', onClickHandler);
4353
4364
  divElement.addEventListener('mousedown', onMousedownHandler, {
@@ -4379,7 +4390,7 @@
4379
4390
  } //marker offset 보정
4380
4391
 
4381
4392
 
4382
- offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, controller.mapDivElement); //z-index 처리
4393
+ offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, autoAdjustAnchor, controller.mapDivElement); //z-index 처리
4383
4394
 
4384
4395
  if (options.zIndex !== undefined) {
4385
4396
  controller.setMarkerZIndex(markerRef.current, options.zIndex);
@@ -4396,7 +4407,7 @@
4396
4407
  } //marker offset 보정
4397
4408
 
4398
4409
 
4399
- offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, controller.mapDivElement); //z-index 처리
4410
+ offsetCalibration(controller.getMapType(), divElement, options, autoFitToViewport, autoAdjustAnchor, controller.mapDivElement); //z-index 처리
4400
4411
 
4401
4412
  if (options.zIndex !== undefined) {
4402
4413
  controller.setMarkerZIndex(markerRef.current, options.zIndex);
@@ -4414,12 +4425,12 @@
4414
4425
  return reactDom.createPortal(children, divElement);
4415
4426
  }
4416
4427
 
4417
- /**
4418
- * CircleMarker
4419
- *
4420
- * @param {CircleMarkerProps} CircleMarkerProps
4421
- *
4422
- * @returns {JSX.Element} JSX
4428
+ /**
4429
+ * CircleMarker
4430
+ *
4431
+ * @param {CircleMarkerProps} CircleMarkerProps
4432
+ *
4433
+ * @returns {JSX.Element} JSX
4423
4434
  */
4424
4435
 
4425
4436
  function CircleMarker(_a) {
@@ -4535,12 +4546,12 @@
4535
4546
  }, children)));
4536
4547
  }
4537
4548
 
4538
- /**
4539
- *PolygonMarker
4540
- *
4541
- * @param {PolygonMarkerProps} PolygonMarkerProps
4542
- *
4543
- * @returns {JSX.Element} JSX
4549
+ /**
4550
+ *PolygonMarker
4551
+ *
4552
+ * @param {PolygonMarkerProps} PolygonMarkerProps
4553
+ *
4554
+ * @returns {JSX.Element} JSX
4544
4555
  */
4545
4556
 
4546
4557
  function PolygonMarker(_a) {
@@ -4711,12 +4722,12 @@
4711
4722
  }, children)));
4712
4723
  }
4713
4724
 
4714
- /**
4715
- * Mint Map 컴포넌트
4716
- *
4717
- * @param {MapControlWrapperProps} MapControlWrapperProps
4718
- *
4719
- * @returns {JSX.Element} JSX
4725
+ /**
4726
+ * Mint Map 컴포넌트
4727
+ *
4728
+ * @param {MapControlWrapperProps} MapControlWrapperProps
4729
+ *
4730
+ * @returns {JSX.Element} JSX
4720
4731
  */
4721
4732
 
4722
4733
  function MapPolygonWrapper(_a) {
@@ -5162,12 +5173,12 @@
5162
5173
  styleInject__default["default"](css_248z);
5163
5174
 
5164
5175
  var cn = classNames__default["default"].bind(styles);
5165
- /**
5166
- * Mint Map 컴포넌트
5167
- *
5168
- * @param {MapControlWrapperProps} MapControlWrapperProps
5169
- *
5170
- * @returns {JSX.Element} JSX
5176
+ /**
5177
+ * Mint Map 컴포넌트
5178
+ *
5179
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5180
+ *
5181
+ * @returns {JSX.Element} JSX
5171
5182
  */
5172
5183
 
5173
5184
  function MapControlWrapper(_a) {
@@ -5195,12 +5206,12 @@
5195
5206
  }, children));
5196
5207
  }
5197
5208
 
5198
- /**
5199
- * Mint Map 컴포넌트
5200
- *
5201
- * @param {MapControlWrapperProps} MapControlWrapperProps
5202
- *
5203
- * @returns {JSX.Element} JSX
5209
+ /**
5210
+ * Mint Map 컴포넌트
5211
+ *
5212
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5213
+ *
5214
+ * @returns {JSX.Element} JSX
5204
5215
  */
5205
5216
 
5206
5217
  function MapPolylineWrapper(_a) {
@@ -5241,12 +5252,12 @@
5241
5252
  log: function () {
5242
5253
  }
5243
5254
  };
5244
- /**
5245
- * Mint Map 컴포넌트
5246
- *
5247
- * @param {MapControlWrapperProps} MapControlWrapperProps
5248
- *
5249
- * @returns {JSX.Element} JSX
5255
+ /**
5256
+ * Mint Map 컴포넌트
5257
+ *
5258
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5259
+ *
5260
+ * @returns {JSX.Element} JSX
5250
5261
  */
5251
5262
 
5252
5263
  function MapCanvasWrapper(_a) {
@@ -5565,12 +5576,12 @@
5565
5576
  }), renderFlag && React__default["default"].createElement(React__default["default"].Fragment, null));
5566
5577
  }
5567
5578
 
5568
- /**
5569
- * Mint Map 컴포넌트
5570
- *
5571
- * @param {MapControlWrapperProps} MapControlWrapperProps
5572
- *
5573
- * @returns {JSX.Element} JSX
5579
+ /**
5580
+ * Mint Map 컴포넌트
5581
+ *
5582
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5583
+ *
5584
+ * @returns {JSX.Element} JSX
5574
5585
  */
5575
5586
 
5576
5587
  function MapCanvasMarkerWrapper(_props) {
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
- {
2
- "name": "@mint-ui/map",
3
- "version": "0.6.2-beta-test1",
4
- "main": "./dist/index.js",
5
- "module": "./dist/index.es.js",
6
- "browser": "./dist/index.umd.js",
7
- "types": "./dist/index.d.ts",
8
- "repository": "https://github.com/dev-rsquare/mint-ui-map",
9
- "author": "RSQUARE",
10
- "keywords": ["react", "react map", "map", "google", "naver", "kakao", "library", "typescript", "canvas", "marker"],
11
- "license": "MIT",
12
- "private": false,
13
- "devDependencies": {
14
- "@babel/core": "^7.18.2",
15
- "@rollup/plugin-babel": "^5.3.1",
16
- "@rollup/plugin-commonjs": "^22.0.0",
17
- "@rollup/plugin-node-resolve": "^13.3.0",
18
- "@rollup/plugin-typescript": "^8.3.2",
19
- "@storybook/addon-actions": "^6.5.7",
20
- "@storybook/addon-essentials": "^6.5.7",
21
- "@storybook/addon-interactions": "^6.5.7",
22
- "@storybook/addon-links": "^6.5.7",
23
- "@storybook/builder-webpack5": "^6.5.7",
24
- "@storybook/manager-webpack5": "^6.5.7",
25
- "@storybook/preset-scss": "^1.0.3",
26
- "@storybook/react": "^6.5.7",
27
- "@storybook/testing-library": "^0.0.11",
28
- "@types/classnames": "^2.3.1",
29
- "@types/react": "^18.0.12",
30
- "@types/react-dom": "^18.0.9",
31
- "@types/uuid": "^9.0.0",
32
- "@typescript-eslint/eslint-plugin": "^5.27.0",
33
- "@typescript-eslint/parser": "^5.27.0",
34
- "babel-loader": "^8.2.5",
35
- "babel-plugin-react-icons": "^0.1.1",
36
- "css-loader": "^6.7.1",
37
- "eslint": "^8.17.0",
38
- "eslint-config-airbnb": "^19.0.4",
39
- "eslint-config-prettier": "^8.5.0",
40
- "eslint-plugin-import": "^2.26.0",
41
- "eslint-plugin-jsx-a11y": "^6.5.1",
42
- "eslint-plugin-prettier": "^4.0.0",
43
- "eslint-plugin-react": "^7.30.0",
44
- "eslint-plugin-react-hooks": "^4.5.0",
45
- "eslint-plugin-sort-keys-fix": "^1.1.2",
46
- "eslint-plugin-storybook": "^0.5.12",
47
- "postcss": "^8.4.14",
48
- "react": "^18.1.0",
49
- "react-dom": "^18.1.0",
50
- "rollup": "^2.75.5",
51
- "rollup-plugin-peer-deps-external": "^2.2.4",
52
- "rollup-plugin-postcss": "^4.0.2",
53
- "sass": "^1.52.2",
54
- "sass-loader": "^13.0.0",
55
- "shx": "^0.3.4",
56
- "style-loader": "^3.3.1",
57
- "typescript": "^4.7.3"
58
- },
59
- "dependencies": {
60
- "@types/google.maps": "^3.50.5",
61
- "@types/navermaps": "^3.6.1",
62
- "@types/kakaomaps": "1.1.2",
63
- "@mint-ui/tools":"1.0.3",
64
- "axios": "^1.2.0",
65
- "classnames": "^2.3.1",
66
- "style-inject": "^0.3.0",
67
- "uuid": "^9.0.0",
68
- "xml-js": "^1.6.11"
69
- },
70
- "scripts": {
71
- "storybook": "start-storybook -p 3000",
72
- "build-storybook": "build-storybook",
73
- "prebuild": "shx rm -rf ./dist",
74
- "build": "rollup -c",
75
- "postbuild": "shx rm -rf ./dist/dist"
76
- }
77
- }
1
+ {
2
+ "name": "@mint-ui/map",
3
+ "version": "0.6.2-beta-test4",
4
+ "main": "./dist/index.js",
5
+ "module": "./dist/index.es.js",
6
+ "browser": "./dist/index.umd.js",
7
+ "types": "./dist/index.d.ts",
8
+ "repository": "https://github.com/dev-rsquare/mint-ui-map",
9
+ "author": "RSQUARE",
10
+ "keywords": ["react", "react map", "map", "google", "naver", "kakao", "library", "typescript", "canvas", "marker"],
11
+ "license": "MIT",
12
+ "private": false,
13
+ "devDependencies": {
14
+ "@babel/core": "^7.18.2",
15
+ "@rollup/plugin-babel": "^5.3.1",
16
+ "@rollup/plugin-commonjs": "^22.0.0",
17
+ "@rollup/plugin-node-resolve": "^13.3.0",
18
+ "@rollup/plugin-typescript": "^8.3.2",
19
+ "@storybook/addon-actions": "^6.5.7",
20
+ "@storybook/addon-essentials": "^6.5.7",
21
+ "@storybook/addon-interactions": "^6.5.7",
22
+ "@storybook/addon-links": "^6.5.7",
23
+ "@storybook/builder-webpack5": "^6.5.7",
24
+ "@storybook/manager-webpack5": "^6.5.7",
25
+ "@storybook/preset-scss": "^1.0.3",
26
+ "@storybook/react": "^6.5.7",
27
+ "@storybook/testing-library": "^0.0.11",
28
+ "@types/classnames": "^2.3.1",
29
+ "@types/react": "^18.0.12",
30
+ "@types/react-dom": "^18.0.9",
31
+ "@types/uuid": "^9.0.0",
32
+ "@typescript-eslint/eslint-plugin": "^5.27.0",
33
+ "@typescript-eslint/parser": "^5.27.0",
34
+ "babel-loader": "^8.2.5",
35
+ "babel-plugin-react-icons": "^0.1.1",
36
+ "css-loader": "^6.7.1",
37
+ "eslint": "^8.17.0",
38
+ "eslint-config-airbnb": "^19.0.4",
39
+ "eslint-config-prettier": "^8.5.0",
40
+ "eslint-plugin-import": "^2.26.0",
41
+ "eslint-plugin-jsx-a11y": "^6.5.1",
42
+ "eslint-plugin-prettier": "^4.0.0",
43
+ "eslint-plugin-react": "^7.30.0",
44
+ "eslint-plugin-react-hooks": "^4.5.0",
45
+ "eslint-plugin-sort-keys-fix": "^1.1.2",
46
+ "eslint-plugin-storybook": "^0.5.12",
47
+ "postcss": "^8.4.14",
48
+ "react": "^18.1.0",
49
+ "react-dom": "^18.1.0",
50
+ "rollup": "^2.75.5",
51
+ "rollup-plugin-peer-deps-external": "^2.2.4",
52
+ "rollup-plugin-postcss": "^4.0.2",
53
+ "sass": "^1.52.2",
54
+ "sass-loader": "^13.0.0",
55
+ "shx": "^0.3.4",
56
+ "style-loader": "^3.3.1",
57
+ "typescript": "^4.7.3"
58
+ },
59
+ "dependencies": {
60
+ "@types/google.maps": "^3.50.5",
61
+ "@types/navermaps": "^3.6.1",
62
+ "@types/kakaomaps": "1.1.2",
63
+ "@mint-ui/tools":"1.0.3",
64
+ "axios": "^1.2.0",
65
+ "classnames": "^2.3.1",
66
+ "style-inject": "^0.3.0",
67
+ "uuid": "^9.0.0",
68
+ "xml-js": "^1.6.11"
69
+ },
70
+ "scripts": {
71
+ "storybook": "start-storybook -p 3000",
72
+ "build-storybook": "build-storybook",
73
+ "prebuild": "shx rm -rf ./dist",
74
+ "build": "rollup -c",
75
+ "postbuild": "shx rm -rf ./dist/dist"
76
+ }
77
+ }