@mint-ui/map 0.5.1-beta → 0.5.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.
- package/.eslintrc.js +109 -109
- package/LICENSE +21 -21
- package/README.md +73 -73
- package/dist/components/mint-map/MintMap.d.ts +10 -10
- package/dist/components/mint-map/MintMap.js +6 -6
- package/dist/components/mint-map/core/MintMapCanvasRenderer.d.ts +4 -4
- package/dist/components/mint-map/core/MintMapController.d.ts +64 -64
- package/dist/components/mint-map/core/MintMapController.js +9 -9
- package/dist/components/mint-map/core/MintMapCore.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/MapBuildingProjection.d.ts +15 -15
- package/dist/components/mint-map/core/advanced/MapLoadingComponents.d.ts +17 -17
- package/dist/components/mint-map/core/advanced/index.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/shapes/CircleMarker.d.ts +20 -20
- package/dist/components/mint-map/core/advanced/shapes/CircleMarker.js +6 -6
- package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.d.ts +23 -23
- package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.js +6 -6
- package/dist/components/mint-map/core/advanced/shapes/base/SVGCircle.d.ts +8 -8
- package/dist/components/mint-map/core/advanced/shapes/base/SVGPolygon.d.ts +12 -12
- package/dist/components/mint-map/core/advanced/shapes/base/SVGRect.d.ts +10 -10
- package/dist/components/mint-map/core/advanced/shapes/base/index.d.ts +3 -3
- package/dist/components/mint-map/core/advanced/shapes/index.d.ts +3 -3
- package/dist/components/mint-map/core/hooks/MarkerMovingHook.d.ts +6 -6
- package/dist/components/mint-map/core/hooks/index.d.ts +1 -1
- package/dist/components/mint-map/core/index.d.ts +8 -8
- package/dist/components/mint-map/core/provider/MintMapProvider.d.ts +8 -8
- package/dist/components/mint-map/core/provider/index.d.ts +1 -1
- package/dist/components/mint-map/core/util/animation.d.ts +16 -16
- package/dist/components/mint-map/core/util/calculate.d.ts +66 -66
- package/dist/components/mint-map/core/util/cluster.d.ts +18 -18
- package/dist/components/mint-map/core/util/index.d.ts +4 -4
- package/dist/components/mint-map/core/util/waiting.d.ts +1 -1
- package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.d.ts +27 -27
- package/dist/components/mint-map/core/wrapper/MapCanvasMarkerWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.d.ts +11 -11
- package/dist/components/mint-map/core/wrapper/MapCanvasWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.d.ts +18 -18
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +32 -32
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.d.ts +12 -12
- package/dist/components/mint-map/core/wrapper/MapPolygonWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.d.ts +12 -12
- package/dist/components/mint-map/core/wrapper/MapPolylineWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/index.d.ts +6 -6
- package/dist/components/mint-map/google/GoogleMintMapController.d.ts +51 -51
- package/dist/components/mint-map/google/GoogleMintMapController.js +2 -2
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +56 -56
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +11 -8
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +53 -53
- package/dist/components/mint-map/naver/NaverMintMapController.js +10 -7
- package/dist/components/mint-map/types/CommonTypes.d.ts +11 -11
- package/dist/components/mint-map/types/MapDrawables.d.ts +110 -110
- package/dist/components/mint-map/types/MapDrawables.js +8 -8
- package/dist/components/mint-map/types/MapEventTypes.d.ts +44 -41
- package/dist/components/mint-map/types/MapEventTypes.js +2 -0
- package/dist/components/mint-map/types/MapTypes.d.ts +60 -60
- package/dist/components/mint-map/types/MapTypes.js +13 -13
- package/dist/components/mint-map/types/MintMapEvents.d.ts +25 -25
- package/dist/components/mint-map/types/MintMapProps.d.ts +92 -92
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +109 -101
- package/dist/index.umd.js +109 -101
- package/package.json +77 -77
package/dist/index.umd.js
CHANGED
|
@@ -441,23 +441,23 @@
|
|
|
441
441
|
return GeoCalulator;
|
|
442
442
|
}();
|
|
443
443
|
|
|
444
|
-
/**
|
|
445
|
-
* 좌표값
|
|
446
|
-
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
444
|
+
/**
|
|
445
|
+
* 좌표값
|
|
446
|
+
* @description 위도/경도, DOM 상의 X/Y 좌표
|
|
447
447
|
*/
|
|
448
448
|
|
|
449
449
|
var Position =
|
|
450
450
|
/** @class */
|
|
451
451
|
function () {
|
|
452
452
|
function Position(lat, lng) {
|
|
453
|
-
/**
|
|
454
|
-
* 위도
|
|
455
|
-
* @description 위도(latitude)
|
|
453
|
+
/**
|
|
454
|
+
* 위도
|
|
455
|
+
* @description 위도(latitude)
|
|
456
456
|
*/
|
|
457
457
|
this.lat = 0;
|
|
458
|
-
/**
|
|
459
|
-
* 경도
|
|
460
|
-
* @description 경도(longitude)
|
|
458
|
+
/**
|
|
459
|
+
* 경도
|
|
460
|
+
* @description 경도(longitude)
|
|
461
461
|
*/
|
|
462
462
|
|
|
463
463
|
this.lng = 0;
|
|
@@ -565,15 +565,15 @@
|
|
|
565
565
|
|
|
566
566
|
return Bounds;
|
|
567
567
|
}();
|
|
568
|
-
/**
|
|
569
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
568
|
+
/**
|
|
569
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
570
570
|
*/
|
|
571
571
|
|
|
572
572
|
var Offset =
|
|
573
573
|
/** @class */
|
|
574
574
|
function () {
|
|
575
|
-
/**
|
|
576
|
-
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
575
|
+
/**
|
|
576
|
+
* DOM 상에서의 좌표를 표현 (픽셀을 나타내는 숫자)
|
|
577
577
|
*/
|
|
578
578
|
function Offset(x, y) {
|
|
579
579
|
this.x = x;
|
|
@@ -799,12 +799,12 @@
|
|
|
799
799
|
MintMapController.prototype.getRandomFunctionName = function (prefix) {
|
|
800
800
|
return "".concat(prefix, "_").concat(uuid.v4().replace(/-/g, '_'));
|
|
801
801
|
};
|
|
802
|
-
/**
|
|
803
|
-
* URL 빌더 메서드
|
|
804
|
-
*
|
|
805
|
-
* @param {string} baseUrl: 기본 URL
|
|
806
|
-
* @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
|
|
807
|
-
* @returns {string} URL
|
|
802
|
+
/**
|
|
803
|
+
* URL 빌더 메서드
|
|
804
|
+
*
|
|
805
|
+
* @param {string} baseUrl: 기본 URL
|
|
806
|
+
* @param {{ [ key: string ]: string | string[] }} param: 파라미터 JSON
|
|
807
|
+
* @returns {string} URL
|
|
808
808
|
*/
|
|
809
809
|
|
|
810
810
|
|
|
@@ -817,9 +817,9 @@
|
|
|
817
817
|
}).join('&');
|
|
818
818
|
return "".concat(baseUrl, "?").concat(params);
|
|
819
819
|
};
|
|
820
|
-
/**
|
|
821
|
-
* 쓰로틀링 처리
|
|
822
|
-
* @returns
|
|
820
|
+
/**
|
|
821
|
+
* 쓰로틀링 처리
|
|
822
|
+
* @returns
|
|
823
823
|
*/
|
|
824
824
|
|
|
825
825
|
|
|
@@ -1125,6 +1125,8 @@
|
|
|
1125
1125
|
this.DRAG = 'drag';
|
|
1126
1126
|
this.DRAGSTART = 'dragstart';
|
|
1127
1127
|
this.DRAGEND = 'dragend';
|
|
1128
|
+
this.RIGHTCLICK = 'rightclick';
|
|
1129
|
+
this.CONTEXTMENU = 'contextmenu';
|
|
1128
1130
|
}
|
|
1129
1131
|
|
|
1130
1132
|
MapUIEvent.prototype.get = function (eventName) {
|
|
@@ -1158,7 +1160,9 @@
|
|
|
1158
1160
|
_this.markerEvents = ['click', 'mouseover', 'mouseout'];
|
|
1159
1161
|
_this.dragStartPoint = [0, 0];
|
|
1160
1162
|
_this.dragged = false;
|
|
1161
|
-
_this.eventMap = new Map();
|
|
1163
|
+
_this.eventMap = new Map(); //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
1164
|
+
|
|
1165
|
+
_this.mapUIEvent.CONTEXTMENU = 'rightclick';
|
|
1162
1166
|
Object.freeze(_this.mapEvent);
|
|
1163
1167
|
Object.freeze(_this.mapUIEvent);
|
|
1164
1168
|
return _this; // console.log(`${this.type} controller loadded`);
|
|
@@ -1376,11 +1380,11 @@
|
|
|
1376
1380
|
var map = marker.native.getMap();
|
|
1377
1381
|
|
|
1378
1382
|
if (map) {
|
|
1379
|
-
/** 중요!!!!
|
|
1380
|
-
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1381
|
-
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1382
|
-
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1383
|
-
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1383
|
+
/** 중요!!!!
|
|
1384
|
+
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1385
|
+
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1386
|
+
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1387
|
+
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1384
1388
|
*/
|
|
1385
1389
|
//Position
|
|
1386
1390
|
if (options.position && options.position instanceof Position) {
|
|
@@ -1800,7 +1804,8 @@
|
|
|
1800
1804
|
vendorEventName: naverEventName,
|
|
1801
1805
|
param: {
|
|
1802
1806
|
position: position,
|
|
1803
|
-
offset: position.offset
|
|
1807
|
+
offset: position.offset,
|
|
1808
|
+
pointerEvent: e.pointerEvent
|
|
1804
1809
|
}
|
|
1805
1810
|
};
|
|
1806
1811
|
callback(param);
|
|
@@ -2450,7 +2455,6 @@
|
|
|
2450
2455
|
};
|
|
2451
2456
|
callback(param);
|
|
2452
2457
|
} else if (eventName in _this.mapUIEvent) {
|
|
2453
|
-
if (eventName.startsWith('DRAG')) console.log(eventName, e);
|
|
2454
2458
|
var position = null;
|
|
2455
2459
|
|
|
2456
2460
|
if (e) {
|
|
@@ -2466,7 +2470,8 @@
|
|
|
2466
2470
|
vendorEventName: googleEventName,
|
|
2467
2471
|
param: {
|
|
2468
2472
|
position: position,
|
|
2469
|
-
offset: position === null || position === void 0 ? void 0 : position.offset
|
|
2473
|
+
offset: position === null || position === void 0 ? void 0 : position.offset,
|
|
2474
|
+
pointerEvent: e.domEvent
|
|
2470
2475
|
}
|
|
2471
2476
|
};
|
|
2472
2477
|
callback(param);
|
|
@@ -2545,7 +2550,9 @@
|
|
|
2545
2550
|
_this.dragged = false;
|
|
2546
2551
|
_this.eventMap = new Map(); //kakao only 이벤트이름 재정의 zoom_start
|
|
2547
2552
|
|
|
2548
|
-
_this.mapEvent.ZOOMSTART = 'zoom_start';
|
|
2553
|
+
_this.mapEvent.ZOOMSTART = 'zoom_start'; //contextmenu 는 지원하지 않지만 호환성을 위해 rightclick 으로 대체
|
|
2554
|
+
|
|
2555
|
+
_this.mapUIEvent.CONTEXTMENU = 'rightclick';
|
|
2549
2556
|
Object.freeze(_this.mapEvent);
|
|
2550
2557
|
Object.freeze(_this.mapUIEvent);
|
|
2551
2558
|
return _this; // console.log(`${this.type} controller loadded`);
|
|
@@ -3048,13 +3055,13 @@
|
|
|
3048
3055
|
};
|
|
3049
3056
|
|
|
3050
3057
|
KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
|
|
3051
|
-
/**
|
|
3052
|
-
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3053
|
-
* - 가장 확대된 값 : 1
|
|
3054
|
-
* - 가장 축소된 값 : 14
|
|
3055
|
-
*
|
|
3056
|
-
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3057
|
-
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3058
|
+
/**
|
|
3059
|
+
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3060
|
+
* - 가장 확대된 값 : 1
|
|
3061
|
+
* - 가장 축소된 값 : 14
|
|
3062
|
+
*
|
|
3063
|
+
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3064
|
+
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3058
3065
|
*/
|
|
3059
3066
|
var mapValue = this.getBaseToMapZoom(value);
|
|
3060
3067
|
|
|
@@ -3071,6 +3078,7 @@
|
|
|
3071
3078
|
var _a;
|
|
3072
3079
|
|
|
3073
3080
|
try {
|
|
3081
|
+
this.removeAllEventListener();
|
|
3074
3082
|
(_a = this.markerPool) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
3075
3083
|
} catch (e) {
|
|
3076
3084
|
console.log('kakao map destroy error', e);
|
|
@@ -3238,12 +3246,12 @@
|
|
|
3238
3246
|
lat: 37.5036845,
|
|
3239
3247
|
lng: 127.0448698
|
|
3240
3248
|
};
|
|
3241
|
-
/**
|
|
3242
|
-
* Mint Map 컴포넌트
|
|
3243
|
-
*
|
|
3244
|
-
* @param {MintMapProps} MintMapProps
|
|
3245
|
-
*
|
|
3246
|
-
* @returns {JSX.Element} JSX
|
|
3249
|
+
/**
|
|
3250
|
+
* Mint Map 컴포넌트
|
|
3251
|
+
*
|
|
3252
|
+
* @param {MintMapProps} MintMapProps
|
|
3253
|
+
*
|
|
3254
|
+
* @returns {JSX.Element} JSX
|
|
3247
3255
|
*/
|
|
3248
3256
|
|
|
3249
3257
|
function MintMap(_a) {
|
|
@@ -3673,8 +3681,8 @@
|
|
|
3673
3681
|
/** @class */
|
|
3674
3682
|
function (_super) {
|
|
3675
3683
|
tslib.__extends(Marker, _super);
|
|
3676
|
-
/**
|
|
3677
|
-
* 지도에 표시할 마커정보
|
|
3684
|
+
/**
|
|
3685
|
+
* 지도에 표시할 마커정보
|
|
3678
3686
|
*/
|
|
3679
3687
|
|
|
3680
3688
|
|
|
@@ -3692,8 +3700,8 @@
|
|
|
3692
3700
|
/** @class */
|
|
3693
3701
|
function (_super) {
|
|
3694
3702
|
tslib.__extends(Polyline, _super);
|
|
3695
|
-
/**
|
|
3696
|
-
* 지도에 표시할 폴리곤정보
|
|
3703
|
+
/**
|
|
3704
|
+
* 지도에 표시할 폴리곤정보
|
|
3697
3705
|
*/
|
|
3698
3706
|
|
|
3699
3707
|
|
|
@@ -3711,8 +3719,8 @@
|
|
|
3711
3719
|
/** @class */
|
|
3712
3720
|
function (_super) {
|
|
3713
3721
|
tslib.__extends(Polygon, _super);
|
|
3714
|
-
/**
|
|
3715
|
-
* 지도에 표시할 폴리곤정보
|
|
3722
|
+
/**
|
|
3723
|
+
* 지도에 표시할 폴리곤정보
|
|
3716
3724
|
*/
|
|
3717
3725
|
|
|
3718
3726
|
|
|
@@ -3722,8 +3730,8 @@
|
|
|
3722
3730
|
_this.options = options;
|
|
3723
3731
|
return _this;
|
|
3724
3732
|
}
|
|
3725
|
-
/**
|
|
3726
|
-
* 폴리곤의 중점을 구한다.
|
|
3733
|
+
/**
|
|
3734
|
+
* 폴리곤의 중점을 구한다.
|
|
3727
3735
|
*/
|
|
3728
3736
|
|
|
3729
3737
|
|
|
@@ -3893,12 +3901,12 @@
|
|
|
3893
3901
|
divElement.style.transform = "translate(-".concat(options.anchor ? options.anchor.x : '0', "px, -").concat(options.anchor ? options.anchor.y : '0', "px)");
|
|
3894
3902
|
}
|
|
3895
3903
|
};
|
|
3896
|
-
/**
|
|
3897
|
-
* Mint Map 컴포넌트
|
|
3898
|
-
*
|
|
3899
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
3900
|
-
*
|
|
3901
|
-
* @returns {JSX.Element} JSX
|
|
3904
|
+
/**
|
|
3905
|
+
* Mint Map 컴포넌트
|
|
3906
|
+
*
|
|
3907
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
3908
|
+
*
|
|
3909
|
+
* @returns {JSX.Element} JSX
|
|
3902
3910
|
*/
|
|
3903
3911
|
|
|
3904
3912
|
|
|
@@ -4233,12 +4241,12 @@
|
|
|
4233
4241
|
return Number((sum / nums.length).toFixed(7));
|
|
4234
4242
|
};
|
|
4235
4243
|
|
|
4236
|
-
/**
|
|
4237
|
-
* CircleMarker
|
|
4238
|
-
*
|
|
4239
|
-
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4240
|
-
*
|
|
4241
|
-
* @returns {JSX.Element} JSX
|
|
4244
|
+
/**
|
|
4245
|
+
* CircleMarker
|
|
4246
|
+
*
|
|
4247
|
+
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4248
|
+
*
|
|
4249
|
+
* @returns {JSX.Element} JSX
|
|
4242
4250
|
*/
|
|
4243
4251
|
|
|
4244
4252
|
function CircleMarker(_a) {
|
|
@@ -4350,12 +4358,12 @@
|
|
|
4350
4358
|
}, children)));
|
|
4351
4359
|
}
|
|
4352
4360
|
|
|
4353
|
-
/**
|
|
4354
|
-
*PolygonMarker
|
|
4355
|
-
*
|
|
4356
|
-
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4357
|
-
*
|
|
4358
|
-
* @returns {JSX.Element} JSX
|
|
4361
|
+
/**
|
|
4362
|
+
*PolygonMarker
|
|
4363
|
+
*
|
|
4364
|
+
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4365
|
+
*
|
|
4366
|
+
* @returns {JSX.Element} JSX
|
|
4359
4367
|
*/
|
|
4360
4368
|
|
|
4361
4369
|
function PolygonMarker(_a) {
|
|
@@ -4518,12 +4526,12 @@
|
|
|
4518
4526
|
}, children)));
|
|
4519
4527
|
}
|
|
4520
4528
|
|
|
4521
|
-
/**
|
|
4522
|
-
* Mint Map 컴포넌트
|
|
4523
|
-
*
|
|
4524
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4525
|
-
*
|
|
4526
|
-
* @returns {JSX.Element} JSX
|
|
4529
|
+
/**
|
|
4530
|
+
* Mint Map 컴포넌트
|
|
4531
|
+
*
|
|
4532
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4533
|
+
*
|
|
4534
|
+
* @returns {JSX.Element} JSX
|
|
4527
4535
|
*/
|
|
4528
4536
|
|
|
4529
4537
|
function MapPolygonWrapper(_a) {
|
|
@@ -5010,12 +5018,12 @@
|
|
|
5010
5018
|
|
|
5011
5019
|
throw new Error("Size [".concat(value, "] is not valid. (Should be % or pixel number)"));
|
|
5012
5020
|
};
|
|
5013
|
-
/**
|
|
5014
|
-
* Mint Map 컴포넌트
|
|
5015
|
-
*
|
|
5016
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5017
|
-
*
|
|
5018
|
-
* @returns {JSX.Element} JSX
|
|
5021
|
+
/**
|
|
5022
|
+
* Mint Map 컴포넌트
|
|
5023
|
+
*
|
|
5024
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5025
|
+
*
|
|
5026
|
+
* @returns {JSX.Element} JSX
|
|
5019
5027
|
*/
|
|
5020
5028
|
|
|
5021
5029
|
|
|
@@ -5040,12 +5048,12 @@
|
|
|
5040
5048
|
}, children);
|
|
5041
5049
|
}
|
|
5042
5050
|
|
|
5043
|
-
/**
|
|
5044
|
-
* Mint Map 컴포넌트
|
|
5045
|
-
*
|
|
5046
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5047
|
-
*
|
|
5048
|
-
* @returns {JSX.Element} JSX
|
|
5051
|
+
/**
|
|
5052
|
+
* Mint Map 컴포넌트
|
|
5053
|
+
*
|
|
5054
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5055
|
+
*
|
|
5056
|
+
* @returns {JSX.Element} JSX
|
|
5049
5057
|
*/
|
|
5050
5058
|
|
|
5051
5059
|
function MapPolylineWrapper(_a) {
|
|
@@ -5085,12 +5093,12 @@
|
|
|
5085
5093
|
log: function () {
|
|
5086
5094
|
}
|
|
5087
5095
|
};
|
|
5088
|
-
/**
|
|
5089
|
-
* Mint Map 컴포넌트
|
|
5090
|
-
*
|
|
5091
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5092
|
-
*
|
|
5093
|
-
* @returns {JSX.Element} JSX
|
|
5096
|
+
/**
|
|
5097
|
+
* Mint Map 컴포넌트
|
|
5098
|
+
*
|
|
5099
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5100
|
+
*
|
|
5101
|
+
* @returns {JSX.Element} JSX
|
|
5094
5102
|
*/
|
|
5095
5103
|
|
|
5096
5104
|
function MapCanvasWrapper(_a) {
|
|
@@ -5409,12 +5417,12 @@
|
|
|
5409
5417
|
}), renderFlag && React__default["default"].createElement(React__default["default"].Fragment, null));
|
|
5410
5418
|
}
|
|
5411
5419
|
|
|
5412
|
-
/**
|
|
5413
|
-
* Mint Map 컴포넌트
|
|
5414
|
-
*
|
|
5415
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5416
|
-
*
|
|
5417
|
-
* @returns {JSX.Element} JSX
|
|
5420
|
+
/**
|
|
5421
|
+
* Mint Map 컴포넌트
|
|
5422
|
+
*
|
|
5423
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5424
|
+
*
|
|
5425
|
+
* @returns {JSX.Element} JSX
|
|
5418
5426
|
*/
|
|
5419
5427
|
|
|
5420
5428
|
function MapCanvasMarkerWrapper(_props) {
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mint-ui/map",
|
|
3
|
-
"version": "0.5.
|
|
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.5.2-beta",
|
|
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
|
+
}
|