@mint-ui/map 0.7.3-beta → 0.7.4-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 +69 -67
- 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 +22 -22
- package/dist/components/mint-map/core/advanced/shapes/CircleMarker.js +6 -6
- package/dist/components/mint-map/core/advanced/shapes/PolygonMarker.d.ts +28 -28
- 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/cluster.d.ts +18 -18
- package/dist/components/mint-map/core/util/geo.d.ts +38 -38
- package/dist/components/mint-map/core/util/index.d.ts +7 -7
- package/dist/components/mint-map/core/util/log.d.ts +1 -1
- package/dist/components/mint-map/core/util/polygon.d.ts +42 -42
- package/dist/components/mint-map/core/util/status.d.ts +9 -9
- 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 +19 -19
- package/dist/components/mint-map/core/wrapper/MapControlWrapper.js +6 -6
- package/dist/components/mint-map/core/wrapper/MapMarkerWrapper.d.ts +51 -51
- 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 +53 -51
- package/dist/components/mint-map/google/GoogleMintMapController.js +17 -6
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +57 -55
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +22 -13
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +55 -53
- package/dist/components/mint-map/naver/NaverMintMapController.js +20 -11
- package/dist/components/mint-map/types/CommonTypes.d.ts +11 -11
- package/dist/components/mint-map/types/MapDrawables.d.ts +118 -118
- package/dist/components/mint-map/types/MapDrawables.js +8 -8
- package/dist/components/mint-map/types/MapEventTypes.d.ts +44 -44
- 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 +106 -101
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +143 -114
- package/dist/index.umd.js +143 -114
- 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
|
|
|
@@ -1754,11 +1754,11 @@
|
|
|
1754
1754
|
var map = marker.native.getMap();
|
|
1755
1755
|
|
|
1756
1756
|
if (map) {
|
|
1757
|
-
/** 중요!!!!
|
|
1758
|
-
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1759
|
-
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1760
|
-
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1761
|
-
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1757
|
+
/** 중요!!!!
|
|
1758
|
+
* naver 마커의 setOption(MarkerOptions) 은 내부적으로 setMap 을 무조건 강제 처리한다!!!
|
|
1759
|
+
* setMap 을 처리하면 맵의 이벤트리스너 등등이 모두 초기화 되고 다시 맵을 add 하면서 마커관련된 모든 초기화가 다시 일어난다.
|
|
1760
|
+
* (심지어 map 이 기존과 같은 객체인데도 초기화 처리함)
|
|
1761
|
+
* 그래서 민트맵에서는 update 를 지원하는 항목별로 명시적으로 각각 처리한다.
|
|
1762
1762
|
*/
|
|
1763
1763
|
//Position
|
|
1764
1764
|
if (options.position && options.position instanceof Position) {
|
|
@@ -1956,10 +1956,10 @@
|
|
|
1956
1956
|
|
|
1957
1957
|
var _this = this;
|
|
1958
1958
|
|
|
1959
|
-
var _a, _b, _c, _d;
|
|
1959
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1960
1960
|
|
|
1961
|
-
return tslib.__generator(this, function (
|
|
1962
|
-
switch (
|
|
1961
|
+
return tslib.__generator(this, function (_g) {
|
|
1962
|
+
switch (_g.label) {
|
|
1963
1963
|
case 0:
|
|
1964
1964
|
//이미 생성했으면
|
|
1965
1965
|
//1. divElement 가 그대로인 경우 기존 map 객체 리턴
|
|
@@ -1983,9 +1983,9 @@
|
|
|
1983
1983
|
, this.loadMapApi()];
|
|
1984
1984
|
|
|
1985
1985
|
case 1:
|
|
1986
|
-
|
|
1986
|
+
_g.sent();
|
|
1987
1987
|
|
|
1988
|
-
|
|
1988
|
+
_g.label = 2;
|
|
1989
1989
|
|
|
1990
1990
|
case 2:
|
|
1991
1991
|
options = {
|
|
@@ -2018,7 +2018,9 @@
|
|
|
2018
2018
|
options.maxZoom = maxZoom;
|
|
2019
2019
|
divElement.innerHTML = '';
|
|
2020
2020
|
map = new naver.maps.Map(divElement, options);
|
|
2021
|
-
this.map = map;
|
|
2021
|
+
this.map = map; //맵 커서 초기화
|
|
2022
|
+
|
|
2023
|
+
((_e = this.mapProps.base) === null || _e === void 0 ? void 0 : _e.mapCursor) && this.setMapCursor((_f = this.mapProps.base) === null || _f === void 0 ? void 0 : _f.mapCursor); //@ts-ignore
|
|
2022
2024
|
|
|
2023
2025
|
map.addListener('mousedown', function () {
|
|
2024
2026
|
_this.dragged = false; // console.log('map mousedown / dragged => ', this.dragged);
|
|
@@ -2133,6 +2135,13 @@
|
|
|
2133
2135
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(position);
|
|
2134
2136
|
};
|
|
2135
2137
|
|
|
2138
|
+
NaverMintMapController.prototype.setMapCursor = function (cursor) {
|
|
2139
|
+
var _a;
|
|
2140
|
+
|
|
2141
|
+
var target = (_a = this.mapDivElement.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
2142
|
+
target && (target.style.cursor = cursor);
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2136
2145
|
NaverMintMapController.prototype.naverPositionToOffset = function (position) {
|
|
2137
2146
|
if (!this.map) {
|
|
2138
2147
|
return new Offset(0, 0);
|
|
@@ -2668,10 +2677,10 @@
|
|
|
2668
2677
|
|
|
2669
2678
|
var _this = this;
|
|
2670
2679
|
|
|
2671
|
-
var _a, _b, _c, _d;
|
|
2680
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2672
2681
|
|
|
2673
|
-
return tslib.__generator(this, function (
|
|
2674
|
-
switch (
|
|
2682
|
+
return tslib.__generator(this, function (_g) {
|
|
2683
|
+
switch (_g.label) {
|
|
2675
2684
|
case 0:
|
|
2676
2685
|
//이미 생성했으면
|
|
2677
2686
|
//1. divElement 가 그대로인 경우 기존 map 객체 리턴
|
|
@@ -2693,9 +2702,9 @@
|
|
|
2693
2702
|
, this.loadMapApi()];
|
|
2694
2703
|
|
|
2695
2704
|
case 1:
|
|
2696
|
-
|
|
2705
|
+
_g.sent();
|
|
2697
2706
|
|
|
2698
|
-
|
|
2707
|
+
_g.label = 2;
|
|
2699
2708
|
|
|
2700
2709
|
case 2:
|
|
2701
2710
|
map = new google.maps.Map(divElement, {
|
|
@@ -2709,7 +2718,9 @@
|
|
|
2709
2718
|
keyboardShortcuts: this.mapProps.keyboardShortcuts === false ? false : true,
|
|
2710
2719
|
clickableIcons: false
|
|
2711
2720
|
});
|
|
2712
|
-
this.map = map;
|
|
2721
|
+
this.map = map; //맵 커서 초기화
|
|
2722
|
+
|
|
2723
|
+
((_e = this.mapProps.base) === null || _e === void 0 ? void 0 : _e.mapCursor) && this.setMapCursor((_f = this.mapProps.base) === null || _f === void 0 ? void 0 : _f.mapCursor); //@ts-ignore
|
|
2713
2724
|
|
|
2714
2725
|
map.addListener('mousedown', function () {
|
|
2715
2726
|
_this.dragged = false; // console.log('map mousedown / dragged => ', this.dragged);
|
|
@@ -2818,6 +2829,15 @@
|
|
|
2818
2829
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(position);
|
|
2819
2830
|
};
|
|
2820
2831
|
|
|
2832
|
+
GoogleMintMapController.prototype.setMapCursor = function (cursor) {
|
|
2833
|
+
var _a;
|
|
2834
|
+
|
|
2835
|
+
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setOptions({
|
|
2836
|
+
draggingCursor: cursor,
|
|
2837
|
+
draggableCursor: cursor
|
|
2838
|
+
});
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2821
2841
|
GoogleMintMapController.prototype.addEventListener = function (eventName, callback) {
|
|
2822
2842
|
var _this = this;
|
|
2823
2843
|
|
|
@@ -3363,10 +3383,10 @@
|
|
|
3363
3383
|
|
|
3364
3384
|
var _this = this;
|
|
3365
3385
|
|
|
3366
|
-
var _a, _b, _c, _d;
|
|
3386
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3367
3387
|
|
|
3368
|
-
return tslib.__generator(this, function (
|
|
3369
|
-
switch (
|
|
3388
|
+
return tslib.__generator(this, function (_g) {
|
|
3389
|
+
switch (_g.label) {
|
|
3370
3390
|
case 0:
|
|
3371
3391
|
if (!!this.mapApiLoaded) return [3
|
|
3372
3392
|
/*break*/
|
|
@@ -3376,9 +3396,9 @@
|
|
|
3376
3396
|
, this.loadMapApi()];
|
|
3377
3397
|
|
|
3378
3398
|
case 1:
|
|
3379
|
-
|
|
3399
|
+
_g.sent();
|
|
3380
3400
|
|
|
3381
|
-
|
|
3401
|
+
_g.label = 2;
|
|
3382
3402
|
|
|
3383
3403
|
case 2:
|
|
3384
3404
|
options = {
|
|
@@ -3407,7 +3427,9 @@
|
|
|
3407
3427
|
map = new kakao.maps.Map(divElement, options);
|
|
3408
3428
|
map.setMaxLevel(minZoom);
|
|
3409
3429
|
map.setMinLevel(maxZoom);
|
|
3410
|
-
this.map = map;
|
|
3430
|
+
this.map = map; //맵 커서 초기화
|
|
3431
|
+
|
|
3432
|
+
((_e = this.mapProps.base) === null || _e === void 0 ? void 0 : _e.mapCursor) && this.setMapCursor((_f = this.mapProps.base) === null || _f === void 0 ? void 0 : _f.mapCursor); //@ts-ignore
|
|
3411
3433
|
// map.addListener('dragstart', (e)=>{
|
|
3412
3434
|
// //console.log('map dragstart', e);
|
|
3413
3435
|
// this.dragStartPoint[0] = e.domEvent.clientX
|
|
@@ -3476,13 +3498,13 @@
|
|
|
3476
3498
|
};
|
|
3477
3499
|
|
|
3478
3500
|
KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
|
|
3479
|
-
/**
|
|
3480
|
-
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3481
|
-
* - 가장 확대된 값 : 1
|
|
3482
|
-
* - 가장 축소된 값 : 14
|
|
3483
|
-
*
|
|
3484
|
-
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3485
|
-
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3501
|
+
/**
|
|
3502
|
+
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3503
|
+
* - 가장 확대된 값 : 1
|
|
3504
|
+
* - 가장 축소된 값 : 14
|
|
3505
|
+
*
|
|
3506
|
+
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3507
|
+
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3486
3508
|
*/
|
|
3487
3509
|
var mapValue = this.getBaseToMapZoom(value);
|
|
3488
3510
|
|
|
@@ -3542,6 +3564,13 @@
|
|
|
3542
3564
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.setCenter(this.positionToLatLng(position));
|
|
3543
3565
|
};
|
|
3544
3566
|
|
|
3567
|
+
KakaoMintMapController.prototype.setMapCursor = function (cursor) {
|
|
3568
|
+
var _a;
|
|
3569
|
+
|
|
3570
|
+
var target = (_a = this.mapDivElement.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
3571
|
+
target && (target.style.cursor = cursor);
|
|
3572
|
+
};
|
|
3573
|
+
|
|
3545
3574
|
KakaoMintMapController.prototype.positionToLatLng = function (pos) {
|
|
3546
3575
|
return pos ? new kakao.maps.LatLng(pos.lat, pos.lng) : new kakao.maps.LatLng(0, 0);
|
|
3547
3576
|
};
|
|
@@ -3667,12 +3696,12 @@
|
|
|
3667
3696
|
lat: 37.5036845,
|
|
3668
3697
|
lng: 127.0448698
|
|
3669
3698
|
};
|
|
3670
|
-
/**
|
|
3671
|
-
* Mint Map 컴포넌트
|
|
3672
|
-
*
|
|
3673
|
-
* @param {MintMapProps} MintMapProps
|
|
3674
|
-
*
|
|
3675
|
-
* @returns {JSX.Element} JSX
|
|
3699
|
+
/**
|
|
3700
|
+
* Mint Map 컴포넌트
|
|
3701
|
+
*
|
|
3702
|
+
* @param {MintMapProps} MintMapProps
|
|
3703
|
+
*
|
|
3704
|
+
* @returns {JSX.Element} JSX
|
|
3676
3705
|
*/
|
|
3677
3706
|
|
|
3678
3707
|
function MintMap(_a) {
|
|
@@ -3834,8 +3863,8 @@
|
|
|
3834
3863
|
/** @class */
|
|
3835
3864
|
function (_super) {
|
|
3836
3865
|
tslib.__extends(Marker, _super);
|
|
3837
|
-
/**
|
|
3838
|
-
* 지도에 표시할 마커정보
|
|
3866
|
+
/**
|
|
3867
|
+
* 지도에 표시할 마커정보
|
|
3839
3868
|
*/
|
|
3840
3869
|
|
|
3841
3870
|
|
|
@@ -3853,8 +3882,8 @@
|
|
|
3853
3882
|
/** @class */
|
|
3854
3883
|
function (_super) {
|
|
3855
3884
|
tslib.__extends(Polyline, _super);
|
|
3856
|
-
/**
|
|
3857
|
-
* 지도에 표시할 폴리곤정보
|
|
3885
|
+
/**
|
|
3886
|
+
* 지도에 표시할 폴리곤정보
|
|
3858
3887
|
*/
|
|
3859
3888
|
|
|
3860
3889
|
|
|
@@ -3872,8 +3901,8 @@
|
|
|
3872
3901
|
/** @class */
|
|
3873
3902
|
function (_super) {
|
|
3874
3903
|
tslib.__extends(Polygon, _super);
|
|
3875
|
-
/**
|
|
3876
|
-
* 지도에 표시할 폴리곤정보
|
|
3904
|
+
/**
|
|
3905
|
+
* 지도에 표시할 폴리곤정보
|
|
3877
3906
|
*/
|
|
3878
3907
|
|
|
3879
3908
|
|
|
@@ -3883,8 +3912,8 @@
|
|
|
3883
3912
|
_this.options = options;
|
|
3884
3913
|
return _this;
|
|
3885
3914
|
}
|
|
3886
|
-
/**
|
|
3887
|
-
* 폴리곤의 중점을 구한다.
|
|
3915
|
+
/**
|
|
3916
|
+
* 폴리곤의 중점을 구한다.
|
|
3888
3917
|
*/
|
|
3889
3918
|
|
|
3890
3919
|
|
|
@@ -4304,12 +4333,12 @@
|
|
|
4304
4333
|
|
|
4305
4334
|
return 0;
|
|
4306
4335
|
};
|
|
4307
|
-
/**
|
|
4308
|
-
* Mint Map 컴포넌트
|
|
4309
|
-
*
|
|
4310
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4311
|
-
*
|
|
4312
|
-
* @returns {JSX.Element} JSX
|
|
4336
|
+
/**
|
|
4337
|
+
* Mint Map 컴포넌트
|
|
4338
|
+
*
|
|
4339
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4340
|
+
*
|
|
4341
|
+
* @returns {JSX.Element} JSX
|
|
4313
4342
|
*/
|
|
4314
4343
|
|
|
4315
4344
|
|
|
@@ -4479,12 +4508,12 @@
|
|
|
4479
4508
|
return reactDom.createPortal(children, divElement);
|
|
4480
4509
|
}
|
|
4481
4510
|
|
|
4482
|
-
/**
|
|
4483
|
-
* CircleMarker
|
|
4484
|
-
*
|
|
4485
|
-
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4486
|
-
*
|
|
4487
|
-
* @returns {JSX.Element} JSX
|
|
4511
|
+
/**
|
|
4512
|
+
* CircleMarker
|
|
4513
|
+
*
|
|
4514
|
+
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4515
|
+
*
|
|
4516
|
+
* @returns {JSX.Element} JSX
|
|
4488
4517
|
*/
|
|
4489
4518
|
|
|
4490
4519
|
function CircleMarker(_a) {
|
|
@@ -4600,12 +4629,12 @@
|
|
|
4600
4629
|
}, children)));
|
|
4601
4630
|
}
|
|
4602
4631
|
|
|
4603
|
-
/**
|
|
4604
|
-
*PolygonMarker
|
|
4605
|
-
*
|
|
4606
|
-
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4607
|
-
*
|
|
4608
|
-
* @returns {JSX.Element} JSX
|
|
4632
|
+
/**
|
|
4633
|
+
*PolygonMarker
|
|
4634
|
+
*
|
|
4635
|
+
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4636
|
+
*
|
|
4637
|
+
* @returns {JSX.Element} JSX
|
|
4609
4638
|
*/
|
|
4610
4639
|
|
|
4611
4640
|
function PolygonMarker(_a) {
|
|
@@ -4774,12 +4803,12 @@
|
|
|
4774
4803
|
}, children)));
|
|
4775
4804
|
}
|
|
4776
4805
|
|
|
4777
|
-
/**
|
|
4778
|
-
* Mint Map 컴포넌트
|
|
4779
|
-
*
|
|
4780
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4781
|
-
*
|
|
4782
|
-
* @returns {JSX.Element} JSX
|
|
4806
|
+
/**
|
|
4807
|
+
* Mint Map 컴포넌트
|
|
4808
|
+
*
|
|
4809
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4810
|
+
*
|
|
4811
|
+
* @returns {JSX.Element} JSX
|
|
4783
4812
|
*/
|
|
4784
4813
|
|
|
4785
4814
|
function MapPolygonWrapper(_a) {
|
|
@@ -5225,12 +5254,12 @@
|
|
|
5225
5254
|
styleInject__default["default"](css_248z);
|
|
5226
5255
|
|
|
5227
5256
|
var cn = classNames__default["default"].bind(styles);
|
|
5228
|
-
/**
|
|
5229
|
-
* Mint Map 컴포넌트
|
|
5230
|
-
*
|
|
5231
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5232
|
-
*
|
|
5233
|
-
* @returns {JSX.Element} JSX
|
|
5257
|
+
/**
|
|
5258
|
+
* Mint Map 컴포넌트
|
|
5259
|
+
*
|
|
5260
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5261
|
+
*
|
|
5262
|
+
* @returns {JSX.Element} JSX
|
|
5234
5263
|
*/
|
|
5235
5264
|
|
|
5236
5265
|
function MapControlWrapper(_a) {
|
|
@@ -5260,12 +5289,12 @@
|
|
|
5260
5289
|
}, children));
|
|
5261
5290
|
}
|
|
5262
5291
|
|
|
5263
|
-
/**
|
|
5264
|
-
* Mint Map 컴포넌트
|
|
5265
|
-
*
|
|
5266
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5267
|
-
*
|
|
5268
|
-
* @returns {JSX.Element} JSX
|
|
5292
|
+
/**
|
|
5293
|
+
* Mint Map 컴포넌트
|
|
5294
|
+
*
|
|
5295
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5296
|
+
*
|
|
5297
|
+
* @returns {JSX.Element} JSX
|
|
5269
5298
|
*/
|
|
5270
5299
|
|
|
5271
5300
|
function MapPolylineWrapper(_a) {
|
|
@@ -5306,12 +5335,12 @@
|
|
|
5306
5335
|
log: function () {
|
|
5307
5336
|
}
|
|
5308
5337
|
};
|
|
5309
|
-
/**
|
|
5310
|
-
* Mint Map 컴포넌트
|
|
5311
|
-
*
|
|
5312
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5313
|
-
*
|
|
5314
|
-
* @returns {JSX.Element} JSX
|
|
5338
|
+
/**
|
|
5339
|
+
* Mint Map 컴포넌트
|
|
5340
|
+
*
|
|
5341
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5342
|
+
*
|
|
5343
|
+
* @returns {JSX.Element} JSX
|
|
5315
5344
|
*/
|
|
5316
5345
|
|
|
5317
5346
|
function MapCanvasWrapper(_a) {
|
|
@@ -5630,12 +5659,12 @@
|
|
|
5630
5659
|
}), renderFlag && React__default["default"].createElement(React__default["default"].Fragment, null));
|
|
5631
5660
|
}
|
|
5632
5661
|
|
|
5633
|
-
/**
|
|
5634
|
-
* Mint Map 컴포넌트
|
|
5635
|
-
*
|
|
5636
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5637
|
-
*
|
|
5638
|
-
* @returns {JSX.Element} JSX
|
|
5662
|
+
/**
|
|
5663
|
+
* Mint Map 컴포넌트
|
|
5664
|
+
*
|
|
5665
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5666
|
+
*
|
|
5667
|
+
* @returns {JSX.Element} JSX
|
|
5639
5668
|
*/
|
|
5640
5669
|
|
|
5641
5670
|
function MapCanvasMarkerWrapper(_props) {
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mint-ui/map",
|
|
3
|
-
"version": "0.7.
|
|
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.7.4-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
|
+
}
|