@mint-ui/map 0.10.0-beta-test2 → 1.0.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.
Files changed (74) hide show
  1. package/.eslintrc.js +109 -109
  2. package/LICENSE +21 -21
  3. package/README.md +81 -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 +70 -70
  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/canvas/CanvasMarker.d.ts +18 -18
  13. package/dist/components/mint-map/core/advanced/canvas/CanvasMarker.js +0 -1
  14. package/dist/components/mint-map/core/advanced/canvas/draw/canvas-util.d.ts +5 -5
  15. package/dist/components/mint-map/core/advanced/canvas/index.d.ts +1 -1
  16. package/dist/components/mint-map/core/advanced/index.d.ts +4 -4
  17. package/dist/components/mint-map/core/advanced/shapes/CircleMarker.d.ts +22 -22
  18. package/dist/components/mint-map/core/advanced/shapes/CircleMarker.js +6 -6
  19. package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.d.ts +28 -28
  20. package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.js +6 -6
  21. package/dist/components/mint-map/core/advanced/shapes/base/SVGCircle.d.ts +8 -8
  22. package/dist/components/mint-map/core/advanced/shapes/base/SVGPolygon.d.ts +12 -12
  23. package/dist/components/mint-map/core/advanced/shapes/base/SVGRect.d.ts +10 -10
  24. package/dist/components/mint-map/core/advanced/shapes/base/index.d.ts +3 -3
  25. package/dist/components/mint-map/core/advanced/shapes/index.d.ts +3 -3
  26. package/dist/components/mint-map/core/hooks/MarkerMovingHook.d.ts +6 -6
  27. package/dist/components/mint-map/core/hooks/index.d.ts +1 -1
  28. package/dist/components/mint-map/core/index.d.ts +8 -8
  29. package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +8 -8
  30. package/dist/components/mint-map/core/provider/index.d.ts +1 -2
  31. package/dist/components/mint-map/core/util/animation.d.ts +16 -16
  32. package/dist/components/mint-map/core/util/cluster.d.ts +18 -18
  33. package/dist/components/mint-map/core/util/geo.d.ts +38 -38
  34. package/dist/components/mint-map/core/util/index.d.ts +8 -8
  35. package/dist/components/mint-map/core/util/log.d.ts +1 -1
  36. package/dist/components/mint-map/core/util/map.d.ts +2 -2
  37. package/dist/components/mint-map/core/util/polygon.d.ts +42 -42
  38. package/dist/components/mint-map/core/util/status.d.ts +9 -9
  39. package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
  40. package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.d.ts +27 -27
  41. package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.js +6 -6
  42. package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.d.ts +11 -11
  43. package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +6 -6
  44. package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +20 -20
  45. package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
  46. package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +51 -51
  47. package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +6 -20
  48. package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +12 -12
  49. package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.js +6 -6
  50. package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +12 -12
  51. package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.js +6 -6
  52. package/dist/components/mint-map/core/wrapper/index.d.ts +6 -6
  53. package/dist/components/mint-map/google/GoogleMintMapController.d.ts +53 -53
  54. package/dist/components/mint-map/index.d.ts +5 -5
  55. package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +57 -57
  56. package/dist/components/mint-map/kakao/KakaoMintMapController.js +7 -7
  57. package/dist/components/mint-map/naver/NaverMintMapController.d.ts +55 -55
  58. package/dist/components/mint-map/naver/NaverMintMapController.js +5 -5
  59. package/dist/components/mint-map/types/CommonTypes.d.ts +11 -11
  60. package/dist/components/mint-map/types/MapDrawables.d.ts +118 -118
  61. package/dist/components/mint-map/types/MapDrawables.js +8 -8
  62. package/dist/components/mint-map/types/MapEventTypes.d.ts +44 -44
  63. package/dist/components/mint-map/types/MapTypes.d.ts +60 -60
  64. package/dist/components/mint-map/types/MapTypes.js +13 -13
  65. package/dist/components/mint-map/types/MintMapEvents.d.ts +25 -25
  66. package/dist/components/mint-map/types/MintMapProps.d.ts +111 -111
  67. package/dist/components/mint-map/types/index.d.ts +6 -6
  68. package/dist/index.d.ts +7 -7
  69. package/dist/index.es.js +97 -193
  70. package/dist/index.js +0 -4
  71. package/dist/index.umd.js +96 -195
  72. package/package.json +77 -77
  73. package/dist/components/mint-map/core/provider/MarkerAutoTransitionProvider.d.ts +0 -20
  74. package/dist/components/mint-map/core/provider/MarkerAutoTransitionProvider.js +0 -105
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;
@@ -1149,12 +1149,12 @@
1149
1149
  MintMapController.prototype.getRandomFunctionName = function (prefix) {
1150
1150
  return "".concat(prefix, "_").concat(uuid.v4().replace(/-/g, '_'));
1151
1151
  };
1152
- /**
1153
- * URL 빌더 메서드
1154
- *
1155
- * @param {string} baseUrl: 기본 URL
1156
- * @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
1157
- * @returns {string} URL
1152
+ /**
1153
+ * URL 빌더 메서드
1154
+ *
1155
+ * @param {string} baseUrl: 기본 URL
1156
+ * @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
1157
+ * @returns {string} URL
1158
1158
  */
1159
1159
 
1160
1160
 
@@ -1167,9 +1167,9 @@
1167
1167
  }).join('&');
1168
1168
  return "".concat(baseUrl, "?").concat(params);
1169
1169
  };
1170
- /**
1171
- * 쓰로틀링 처리
1172
- * @returns
1170
+ /**
1171
+ * 쓰로틀링 처리
1172
+ * @returns
1173
1173
  */
1174
1174
 
1175
1175
 
@@ -1776,11 +1776,11 @@
1776
1776
  var map = marker.native.getMap();
1777
1777
 
1778
1778
  if (map) {
1779
- /** 중요!!!!
1780
- * naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
1781
- * setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
1782
- * (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
1783
- * 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
1779
+ /** 중요!!!!
1780
+ * naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
1781
+ * setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
1782
+ * (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
1783
+ * 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
1784
1784
  */
1785
1785
  //Position
1786
1786
  if (options.position && options.position instanceof Position) {
@@ -3520,13 +3520,13 @@
3520
3520
  };
3521
3521
 
3522
3522
  KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
3523
- /**
3524
- * 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
3525
- * - 가장 확대된 값 : 1
3526
- * - 가장 축소된 값 : 14
3527
- *
3528
- * 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
3529
- * 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
3523
+ /**
3524
+ * 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
3525
+ * - 가장 확대된 값 : 1
3526
+ * - 가장 축소된 값 : 14
3527
+ *
3528
+ * 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
3529
+ * 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
3530
3530
  */
3531
3531
  var mapValue = this.getBaseToMapZoom(value);
3532
3532
 
@@ -3729,12 +3729,12 @@
3729
3729
  !base.zoomLevel && (base.zoomLevel = DEFAULT_ZOOM_LEVEL);
3730
3730
  return base;
3731
3731
  }
3732
- /**
3733
- * Mint Map 컴포넌트
3734
- *
3735
- * @param {MintMapProps} MintMapProps
3736
- *
3737
- * @returns {JSX.Element} JSX
3732
+ /**
3733
+ * Mint Map 컴포넌트
3734
+ *
3735
+ * @param {MintMapProps} MintMapProps
3736
+ *
3737
+ * @returns {JSX.Element} JSX
3738
3738
  */
3739
3739
 
3740
3740
 
@@ -3894,8 +3894,8 @@
3894
3894
  /** @class */
3895
3895
  function (_super) {
3896
3896
  tslib.__extends(Marker, _super);
3897
- /**
3898
- * 지도에 표시할 마커정보
3897
+ /**
3898
+ * 지도에 표시할 마커정보
3899
3899
  */
3900
3900
 
3901
3901
 
@@ -3913,8 +3913,8 @@
3913
3913
  /** @class */
3914
3914
  function (_super) {
3915
3915
  tslib.__extends(Polyline, _super);
3916
- /**
3917
- * 지도에 표시할 폴리곤정보
3916
+ /**
3917
+ * 지도에 표시할 폴리곤정보
3918
3918
  */
3919
3919
 
3920
3920
 
@@ -3932,8 +3932,8 @@
3932
3932
  /** @class */
3933
3933
  function (_super) {
3934
3934
  tslib.__extends(Polygon, _super);
3935
- /**
3936
- * 지도에 표시할 폴리곤정보
3935
+ /**
3936
+ * 지도에 표시할 폴리곤정보
3937
3937
  */
3938
3938
 
3939
3939
 
@@ -3943,8 +3943,8 @@
3943
3943
  _this.options = options;
3944
3944
  return _this;
3945
3945
  }
3946
- /**
3947
- * 폴리곤의 중점을 구한다.
3946
+ /**
3947
+ * 폴리곤의 중점을 구한다.
3948
3948
  */
3949
3949
 
3950
3950
 
@@ -4287,89 +4287,6 @@
4287
4287
  return [start, stop, resume];
4288
4288
  }
4289
4289
 
4290
- var MarkerAutoTransitionContext = React.createContext({
4291
- option: {
4292
- sizeInMeter: 2,
4293
- type: 'diagonal'
4294
- },
4295
- transition: function (pos) {
4296
- return {
4297
- pos: pos,
4298
- no: undefined
4299
- };
4300
- }
4301
- }); // provider
4302
-
4303
- var baseCenter = new Position(37.504497373023206, 127.04896282498558);
4304
- function MarkerAutoTransitionProvider(_a) {
4305
- var children = _a.children,
4306
- _b = _a.sizeInMeter,
4307
- sizeInMeter = _b === void 0 ? 2 : _b,
4308
- _c = _a.type,
4309
- type = _c === void 0 ? 'diagonal' : _c;
4310
- var controller = useMintMapController();
4311
-
4312
- var _d = React.useState(controller.getZoomLevel()),
4313
- zoom = _d[0],
4314
- setZoom = _d[1];
4315
-
4316
- React.useEffect(function () {
4317
- var onZoomChanged = function () {
4318
- setZoom(controller.getZoomLevel());
4319
- };
4320
-
4321
- controller.addEventListener('ZOOM_CHANGED', onZoomChanged);
4322
- return function () {
4323
- controller.removeEventListener('ZOOM_CHANGED', onZoomChanged);
4324
- };
4325
- }, []);
4326
- var calcSize = typeof sizeInMeter === 'number' ? sizeInMeter : sizeInMeter(controller.getZoomLevel());
4327
- var deltaLat = GeoCalulator.convertMeterToLatitudeValue(calcSize);
4328
- var offset1 = controller.positionToOffset(baseCenter);
4329
- var offset2 = controller.positionToOffset(new Position(baseCenter.lat + deltaLat, baseCenter.lng));
4330
- var deltaOffsetY = offset2.y - offset1.y;
4331
- var offset3 = new Offset(offset1.x + deltaOffsetY, offset2.y);
4332
- var deltaLng = baseCenter.lng - controller.offsetToPosition(offset3).lng;
4333
- var posMap = new Map();
4334
-
4335
- var transition = function (pos) {
4336
- var key = positionToMapKey(pos);
4337
- var count = posMap.get(key);
4338
-
4339
- if (count === undefined) {
4340
- count = 1;
4341
- posMap.set(key, count);
4342
- return {
4343
- no: count,
4344
- pos: pos
4345
- };
4346
- } //type : diagonal
4347
-
4348
-
4349
- var newPos = new Position(pos.lat + count * deltaLat, pos.lng + count * deltaLng);
4350
- count += 1;
4351
- posMap.set(key, count);
4352
- return {
4353
- no: count,
4354
- pos: newPos
4355
- };
4356
- };
4357
-
4358
- return React__default["default"].createElement(MarkerAutoTransitionContext.Provider, {
4359
- value: {
4360
- option: {
4361
- sizeInMeter: sizeInMeter,
4362
- type: type
4363
- },
4364
- transition: transition
4365
- }
4366
- }, zoom && children);
4367
- }
4368
-
4369
- function positionToMapKey(pos) {
4370
- return "".concat(pos.lat, "-").concat(pos.lng);
4371
- }
4372
-
4373
4290
  var offsetCalibration = function (mapType, divElement, options, autoFitToViewport, autoAdjustAnchor, autoAdjustAnchorConfig, mapDivElement) {
4374
4291
  //google 맵의 anchor 보정 (네이버와 같이 왼쪽/위 기준으로 처리)
4375
4292
  var baseTransform = '';
@@ -4447,12 +4364,12 @@
4447
4364
 
4448
4365
  return 0;
4449
4366
  };
4450
- /**
4451
- * Mint Map 컴포넌트
4452
- *
4453
- * @param {MapControlWrapperProps} MapControlWrapperProps
4454
- *
4455
- * @returns {JSX.Element} JSX
4367
+ /**
4368
+ * Mint Map 컴포넌트
4369
+ *
4370
+ * @param {MapControlWrapperProps} MapControlWrapperProps
4371
+ *
4372
+ * @returns {JSX.Element} JSX
4456
4373
  */
4457
4374
 
4458
4375
 
@@ -4575,21 +4492,8 @@
4575
4492
  };
4576
4493
  }, []); //create / update object
4577
4494
 
4578
- var transition = React.useContext(MarkerAutoTransitionContext).transition;
4579
- var positionNo = React.useRef();
4580
4495
  React.useEffect(function () {
4581
4496
  if (options) {
4582
- if (!Array.isArray(options.position)) {
4583
- var _a = transition(options.position),
4584
- no = _a.no,
4585
- pos = _a.pos;
4586
-
4587
- if (positionNo.current !== no) {
4588
- options.position = pos;
4589
- positionNo.current = no;
4590
- }
4591
- }
4592
-
4593
4497
  if (markerRef.current) {
4594
4498
  //console.log('update Marker')
4595
4499
  controller.updateMarker(markerRef.current, options); //disablePointerEvent 처리
@@ -4635,12 +4539,12 @@
4635
4539
  return reactDom.createPortal(children, divElement);
4636
4540
  }
4637
4541
 
4638
- /**
4639
- * CircleMarker
4640
- *
4641
- * @param {CircleMarkerProps} CircleMarkerProps
4642
- *
4643
- * @returns {JSX.Element} JSX
4542
+ /**
4543
+ * CircleMarker
4544
+ *
4545
+ * @param {CircleMarkerProps} CircleMarkerProps
4546
+ *
4547
+ * @returns {JSX.Element} JSX
4644
4548
  */
4645
4549
 
4646
4550
  function CircleMarker(_a) {
@@ -4756,12 +4660,12 @@
4756
4660
  }, children)));
4757
4661
  }
4758
4662
 
4759
- /**
4760
- *PolygonMarker
4761
- *
4762
- * @param {PolygonMarkerProps} PolygonMarkerProps
4763
- *
4764
- * @returns {JSX.Element} JSX
4663
+ /**
4664
+ *PolygonMarker
4665
+ *
4666
+ * @param {PolygonMarkerProps} PolygonMarkerProps
4667
+ *
4668
+ * @returns {JSX.Element} JSX
4765
4669
  */
4766
4670
 
4767
4671
  function PolygonMarker(_a) {
@@ -5120,12 +5024,12 @@
5120
5024
  })), divElement);
5121
5025
  }
5122
5026
 
5123
- /**
5124
- * Mint Map 컴포넌트
5125
- *
5126
- * @param {MapControlWrapperProps} MapControlWrapperProps
5127
- *
5128
- * @returns {JSX.Element} JSX
5027
+ /**
5028
+ * Mint Map 컴포넌트
5029
+ *
5030
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5031
+ *
5032
+ * @returns {JSX.Element} JSX
5129
5033
  */
5130
5034
 
5131
5035
  function MapPolygonWrapper(_a) {
@@ -5571,12 +5475,12 @@
5571
5475
  styleInject__default["default"](css_248z);
5572
5476
 
5573
5477
  var cn = classNames__default["default"].bind(styles);
5574
- /**
5575
- * Mint Map 컴포넌트
5576
- *
5577
- * @param {MapControlWrapperProps} MapControlWrapperProps
5578
- *
5579
- * @returns {JSX.Element} JSX
5478
+ /**
5479
+ * Mint Map 컴포넌트
5480
+ *
5481
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5482
+ *
5483
+ * @returns {JSX.Element} JSX
5580
5484
  */
5581
5485
 
5582
5486
  function MapControlWrapper(_a) {
@@ -5609,12 +5513,12 @@
5609
5513
  }, children));
5610
5514
  }
5611
5515
 
5612
- /**
5613
- * Mint Map 컴포넌트
5614
- *
5615
- * @param {MapControlWrapperProps} MapControlWrapperProps
5616
- *
5617
- * @returns {JSX.Element} JSX
5516
+ /**
5517
+ * Mint Map 컴포넌트
5518
+ *
5519
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5520
+ *
5521
+ * @returns {JSX.Element} JSX
5618
5522
  */
5619
5523
 
5620
5524
  function MapPolylineWrapper(_a) {
@@ -5655,12 +5559,12 @@
5655
5559
  log: function () {
5656
5560
  }
5657
5561
  };
5658
- /**
5659
- * Mint Map 컴포넌트
5660
- *
5661
- * @param {MapControlWrapperProps} MapControlWrapperProps
5662
- *
5663
- * @returns {JSX.Element} JSX
5562
+ /**
5563
+ * Mint Map 컴포넌트
5564
+ *
5565
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5566
+ *
5567
+ * @returns {JSX.Element} JSX
5664
5568
  */
5665
5569
 
5666
5570
  function MapCanvasWrapper(_a) {
@@ -5979,12 +5883,12 @@
5979
5883
  }), renderFlag && React__default["default"].createElement(React__default["default"].Fragment, null));
5980
5884
  }
5981
5885
 
5982
- /**
5983
- * Mint Map 컴포넌트
5984
- *
5985
- * @param {MapControlWrapperProps} MapControlWrapperProps
5986
- *
5987
- * @returns {JSX.Element} JSX
5886
+ /**
5887
+ * Mint Map 컴포넌트
5888
+ *
5889
+ * @param {MapControlWrapperProps} MapControlWrapperProps
5890
+ *
5891
+ * @returns {JSX.Element} JSX
5988
5892
  */
5989
5893
 
5990
5894
  function MapCanvasMarkerWrapper(_props) {
@@ -6010,8 +5914,6 @@
6010
5914
  exports.MapPolylineWrapper = MapPolylineWrapper;
6011
5915
  exports.MapUIEvent = MapUIEvent;
6012
5916
  exports.Marker = Marker;
6013
- exports.MarkerAutoTransitionContext = MarkerAutoTransitionContext;
6014
- exports.MarkerAutoTransitionProvider = MarkerAutoTransitionProvider;
6015
5917
  exports.MintMap = MintMap;
6016
5918
  exports.MintMapCanvasRenderer = MintMapCanvasRenderer;
6017
5919
  exports.MintMapController = MintMapController;
@@ -6029,7 +5931,6 @@
6029
5931
  exports.SVGPolygon = SVGPolygon;
6030
5932
  exports.SVGRect = SVGRect;
6031
5933
  exports.Status = Status;
6032
- exports.baseCenter = baseCenter;
6033
5934
  exports.getClusterInfo = getClusterInfo;
6034
5935
  exports.getMapOfType = getMapOfType;
6035
5936
  exports.log = log;
package/package.json CHANGED
@@ -1,77 +1,77 @@
1
- {
2
- "name": "@mint-ui/map",
3
- "version": "0.10.0-beta-test2",
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": "1.0.0",
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,20 +0,0 @@
1
- import React from "react";
2
- import { Position } from "../../types";
3
- export declare type TransitionType = 'diagonal';
4
- export declare type TransitionSizeFunction = (zoomLevel: number) => number;
5
- export interface MarkerAutoTransitionOption {
6
- type?: TransitionType;
7
- sizeInMeter?: number | TransitionSizeFunction;
8
- }
9
- export interface MarkerAutoTransitionContextType {
10
- option: Required<MarkerAutoTransitionOption>;
11
- transition: (pos: Position) => {
12
- pos: Position;
13
- no?: number;
14
- };
15
- }
16
- export declare const MarkerAutoTransitionContext: React.Context<MarkerAutoTransitionContextType>;
17
- export declare const baseCenter: Position;
18
- export interface MarkerAutoTransitionProviderProps extends MarkerAutoTransitionOption {
19
- }
20
- export declare function MarkerAutoTransitionProvider({ children, sizeInMeter, type, }: React.PropsWithChildren<MarkerAutoTransitionProviderProps>): JSX.Element;