@mint-ui/map 0.7.4-beta → 0.8.0-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 +27 -18
- package/dist/components/mint-map/core/MintMapCanvasRenderer.d.ts +4 -4
- package/dist/components/mint-map/core/MintMapController.d.ts +69 -69
- 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 -53
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +57 -57
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +7 -7
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +55 -55
- package/dist/components/mint-map/naver/NaverMintMapController.js +6 -6
- 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 -106
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +118 -109
- package/dist/index.umd.js +118 -109
- 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
|
|
|
@@ -1519,7 +1519,7 @@
|
|
|
1519
1519
|
|
|
1520
1520
|
_this.type = 'naver';
|
|
1521
1521
|
_this.map = null;
|
|
1522
|
-
_this.scriptUrl = 'https://
|
|
1522
|
+
_this.scriptUrl = 'https://oapi.map.naver.com/openapi/v3/maps.js';
|
|
1523
1523
|
_this.scriptModules = ['drawing']; // , 'geocoder' , 'panorama' , 'visualization']
|
|
1524
1524
|
|
|
1525
1525
|
_this.mapEvent = new MapEvent();
|
|
@@ -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) {
|
|
@@ -3498,13 +3498,13 @@
|
|
|
3498
3498
|
};
|
|
3499
3499
|
|
|
3500
3500
|
KakaoMintMapController.prototype.getSafeZoomValue = function (value) {
|
|
3501
|
-
/**
|
|
3502
|
-
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3503
|
-
* - 가장 확대된 값 : 1
|
|
3504
|
-
* - 가장 축소된 값 : 14
|
|
3505
|
-
*
|
|
3506
|
-
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3507
|
-
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3501
|
+
/**
|
|
3502
|
+
* 카카오는 구글/네이버와 다르게 줌레벨이 작아질수록 확대된다 (가장 확대된 것이 0)
|
|
3503
|
+
* - 가장 확대된 값 : 1
|
|
3504
|
+
* - 가장 축소된 값 : 14
|
|
3505
|
+
*
|
|
3506
|
+
* 그래서 세계지도가 없는 카카오는 동일한 사정인 네이버와 매핑하기로 한다.
|
|
3507
|
+
* 문제는 둘 간의 줌 레벨별 축척이 일치하지 않는다. 그래서 가장 유사한 레벨 끼리 매핑이 필요하다
|
|
3508
3508
|
*/
|
|
3509
3509
|
var mapValue = this.getBaseToMapZoom(value);
|
|
3510
3510
|
|
|
@@ -3696,32 +3696,41 @@
|
|
|
3696
3696
|
lat: 37.5036845,
|
|
3697
3697
|
lng: 127.0448698
|
|
3698
3698
|
};
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3699
|
+
var DEFAULT_ZOOM_LEVEL = 12;
|
|
3700
|
+
var DEFAULT_MAP_BASE_CONFIG = {
|
|
3701
|
+
center: DEFAULT_CENTER,
|
|
3702
|
+
zoomLevel: DEFAULT_ZOOM_LEVEL
|
|
3703
|
+
};
|
|
3704
|
+
|
|
3705
|
+
function makeBaseProps(base) {
|
|
3706
|
+
!base.center && (base.center = DEFAULT_CENTER);
|
|
3707
|
+
!base.zoomLevel && (base.zoomLevel = DEFAULT_ZOOM_LEVEL);
|
|
3708
|
+
return base;
|
|
3709
|
+
}
|
|
3710
|
+
/**
|
|
3711
|
+
* Mint Map 컴포넌트
|
|
3712
|
+
*
|
|
3713
|
+
* @param {MintMapProps} MintMapProps
|
|
3714
|
+
*
|
|
3715
|
+
* @returns {JSX.Element} JSX
|
|
3705
3716
|
*/
|
|
3706
3717
|
|
|
3718
|
+
|
|
3707
3719
|
function MintMap(_a) {
|
|
3708
3720
|
var mapLoadingComponent = _a.mapLoadingComponent,
|
|
3709
3721
|
_b = _a.dissolveEffectWhenLoaded,
|
|
3710
3722
|
dissolveEffectWhenLoaded = _b === void 0 ? true : _b,
|
|
3711
3723
|
mapType = _a.mapType,
|
|
3712
3724
|
children = _a.children,
|
|
3713
|
-
|
|
3714
|
-
base = _c === void 0 ? {
|
|
3715
|
-
center: DEFAULT_CENTER,
|
|
3716
|
-
zoomLevel: 12
|
|
3717
|
-
} : _c,
|
|
3725
|
+
base = _a.base,
|
|
3718
3726
|
props = tslib.__rest(_a, ["mapLoadingComponent", "dissolveEffectWhenLoaded", "mapType", "children", "base"]);
|
|
3719
3727
|
|
|
3728
|
+
var mapBaseConfig = base ? makeBaseProps(base) : DEFAULT_MAP_BASE_CONFIG;
|
|
3720
3729
|
var loadingRef = React.useRef(null);
|
|
3721
3730
|
|
|
3722
|
-
var
|
|
3723
|
-
controller =
|
|
3724
|
-
setController =
|
|
3731
|
+
var _c = React.useState(),
|
|
3732
|
+
controller = _c[0],
|
|
3733
|
+
setController = _c[1];
|
|
3725
3734
|
|
|
3726
3735
|
var loading = React.useMemo(function () {
|
|
3727
3736
|
return mapLoadingComponent ? mapLoadingComponent() : React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
@@ -3738,15 +3747,15 @@
|
|
|
3738
3747
|
var newController_1 = mapType === 'naver' ? new NaverMintMapController(tslib.__assign(tslib.__assign({
|
|
3739
3748
|
mapType: mapType
|
|
3740
3749
|
}, props), {
|
|
3741
|
-
base:
|
|
3750
|
+
base: mapBaseConfig
|
|
3742
3751
|
})) : mapType === 'google' ? new GoogleMintMapController(tslib.__assign(tslib.__assign({
|
|
3743
3752
|
mapType: mapType
|
|
3744
3753
|
}, props), {
|
|
3745
|
-
base:
|
|
3754
|
+
base: mapBaseConfig
|
|
3746
3755
|
})) : mapType === 'kakao' ? new KakaoMintMapController(tslib.__assign(tslib.__assign({
|
|
3747
3756
|
mapType: mapType
|
|
3748
3757
|
}, props), {
|
|
3749
|
-
base:
|
|
3758
|
+
base: mapBaseConfig
|
|
3750
3759
|
})) : null;
|
|
3751
3760
|
newController_1 && (prevController.current = newController_1);
|
|
3752
3761
|
|
|
@@ -3782,7 +3791,7 @@
|
|
|
3782
3791
|
}), React__default["default"].createElement(MintMapCore, tslib.__assign({
|
|
3783
3792
|
mapType: mapType
|
|
3784
3793
|
}, props, {
|
|
3785
|
-
base:
|
|
3794
|
+
base: mapBaseConfig
|
|
3786
3795
|
}), children)) : React__default["default"].createElement(React__default["default"].Fragment, null, dissolveEffectWhenLoaded && React__default["default"].createElement("div", {
|
|
3787
3796
|
ref: function (refs) {
|
|
3788
3797
|
loadingRef.current = refs;
|
|
@@ -3863,8 +3872,8 @@
|
|
|
3863
3872
|
/** @class */
|
|
3864
3873
|
function (_super) {
|
|
3865
3874
|
tslib.__extends(Marker, _super);
|
|
3866
|
-
/**
|
|
3867
|
-
* 지도에 표시할 마커정보
|
|
3875
|
+
/**
|
|
3876
|
+
* 지도에 표시할 마커정보
|
|
3868
3877
|
*/
|
|
3869
3878
|
|
|
3870
3879
|
|
|
@@ -3882,8 +3891,8 @@
|
|
|
3882
3891
|
/** @class */
|
|
3883
3892
|
function (_super) {
|
|
3884
3893
|
tslib.__extends(Polyline, _super);
|
|
3885
|
-
/**
|
|
3886
|
-
* 지도에 표시할 폴리곤정보
|
|
3894
|
+
/**
|
|
3895
|
+
* 지도에 표시할 폴리곤정보
|
|
3887
3896
|
*/
|
|
3888
3897
|
|
|
3889
3898
|
|
|
@@ -3901,8 +3910,8 @@
|
|
|
3901
3910
|
/** @class */
|
|
3902
3911
|
function (_super) {
|
|
3903
3912
|
tslib.__extends(Polygon, _super);
|
|
3904
|
-
/**
|
|
3905
|
-
* 지도에 표시할 폴리곤정보
|
|
3913
|
+
/**
|
|
3914
|
+
* 지도에 표시할 폴리곤정보
|
|
3906
3915
|
*/
|
|
3907
3916
|
|
|
3908
3917
|
|
|
@@ -3912,8 +3921,8 @@
|
|
|
3912
3921
|
_this.options = options;
|
|
3913
3922
|
return _this;
|
|
3914
3923
|
}
|
|
3915
|
-
/**
|
|
3916
|
-
* 폴리곤의 중점을 구한다.
|
|
3924
|
+
/**
|
|
3925
|
+
* 폴리곤의 중점을 구한다.
|
|
3917
3926
|
*/
|
|
3918
3927
|
|
|
3919
3928
|
|
|
@@ -4333,12 +4342,12 @@
|
|
|
4333
4342
|
|
|
4334
4343
|
return 0;
|
|
4335
4344
|
};
|
|
4336
|
-
/**
|
|
4337
|
-
* Mint Map 컴포넌트
|
|
4338
|
-
*
|
|
4339
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4340
|
-
*
|
|
4341
|
-
* @returns {JSX.Element} JSX
|
|
4345
|
+
/**
|
|
4346
|
+
* Mint Map 컴포넌트
|
|
4347
|
+
*
|
|
4348
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4349
|
+
*
|
|
4350
|
+
* @returns {JSX.Element} JSX
|
|
4342
4351
|
*/
|
|
4343
4352
|
|
|
4344
4353
|
|
|
@@ -4508,12 +4517,12 @@
|
|
|
4508
4517
|
return reactDom.createPortal(children, divElement);
|
|
4509
4518
|
}
|
|
4510
4519
|
|
|
4511
|
-
/**
|
|
4512
|
-
* CircleMarker
|
|
4513
|
-
*
|
|
4514
|
-
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4515
|
-
*
|
|
4516
|
-
* @returns {JSX.Element} JSX
|
|
4520
|
+
/**
|
|
4521
|
+
* CircleMarker
|
|
4522
|
+
*
|
|
4523
|
+
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4524
|
+
*
|
|
4525
|
+
* @returns {JSX.Element} JSX
|
|
4517
4526
|
*/
|
|
4518
4527
|
|
|
4519
4528
|
function CircleMarker(_a) {
|
|
@@ -4629,12 +4638,12 @@
|
|
|
4629
4638
|
}, children)));
|
|
4630
4639
|
}
|
|
4631
4640
|
|
|
4632
|
-
/**
|
|
4633
|
-
*PolygonMarker
|
|
4634
|
-
*
|
|
4635
|
-
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4636
|
-
*
|
|
4637
|
-
* @returns {JSX.Element} JSX
|
|
4641
|
+
/**
|
|
4642
|
+
*PolygonMarker
|
|
4643
|
+
*
|
|
4644
|
+
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4645
|
+
*
|
|
4646
|
+
* @returns {JSX.Element} JSX
|
|
4638
4647
|
*/
|
|
4639
4648
|
|
|
4640
4649
|
function PolygonMarker(_a) {
|
|
@@ -4803,12 +4812,12 @@
|
|
|
4803
4812
|
}, children)));
|
|
4804
4813
|
}
|
|
4805
4814
|
|
|
4806
|
-
/**
|
|
4807
|
-
* Mint Map 컴포넌트
|
|
4808
|
-
*
|
|
4809
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4810
|
-
*
|
|
4811
|
-
* @returns {JSX.Element} JSX
|
|
4815
|
+
/**
|
|
4816
|
+
* Mint Map 컴포넌트
|
|
4817
|
+
*
|
|
4818
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4819
|
+
*
|
|
4820
|
+
* @returns {JSX.Element} JSX
|
|
4812
4821
|
*/
|
|
4813
4822
|
|
|
4814
4823
|
function MapPolygonWrapper(_a) {
|
|
@@ -5254,12 +5263,12 @@
|
|
|
5254
5263
|
styleInject__default["default"](css_248z);
|
|
5255
5264
|
|
|
5256
5265
|
var cn = classNames__default["default"].bind(styles);
|
|
5257
|
-
/**
|
|
5258
|
-
* Mint Map 컴포넌트
|
|
5259
|
-
*
|
|
5260
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5261
|
-
*
|
|
5262
|
-
* @returns {JSX.Element} JSX
|
|
5266
|
+
/**
|
|
5267
|
+
* Mint Map 컴포넌트
|
|
5268
|
+
*
|
|
5269
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5270
|
+
*
|
|
5271
|
+
* @returns {JSX.Element} JSX
|
|
5263
5272
|
*/
|
|
5264
5273
|
|
|
5265
5274
|
function MapControlWrapper(_a) {
|
|
@@ -5289,12 +5298,12 @@
|
|
|
5289
5298
|
}, children));
|
|
5290
5299
|
}
|
|
5291
5300
|
|
|
5292
|
-
/**
|
|
5293
|
-
* Mint Map 컴포넌트
|
|
5294
|
-
*
|
|
5295
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5296
|
-
*
|
|
5297
|
-
* @returns {JSX.Element} JSX
|
|
5301
|
+
/**
|
|
5302
|
+
* Mint Map 컴포넌트
|
|
5303
|
+
*
|
|
5304
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5305
|
+
*
|
|
5306
|
+
* @returns {JSX.Element} JSX
|
|
5298
5307
|
*/
|
|
5299
5308
|
|
|
5300
5309
|
function MapPolylineWrapper(_a) {
|
|
@@ -5335,12 +5344,12 @@
|
|
|
5335
5344
|
log: function () {
|
|
5336
5345
|
}
|
|
5337
5346
|
};
|
|
5338
|
-
/**
|
|
5339
|
-
* Mint Map 컴포넌트
|
|
5340
|
-
*
|
|
5341
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5342
|
-
*
|
|
5343
|
-
* @returns {JSX.Element} JSX
|
|
5347
|
+
/**
|
|
5348
|
+
* Mint Map 컴포넌트
|
|
5349
|
+
*
|
|
5350
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5351
|
+
*
|
|
5352
|
+
* @returns {JSX.Element} JSX
|
|
5344
5353
|
*/
|
|
5345
5354
|
|
|
5346
5355
|
function MapCanvasWrapper(_a) {
|
|
@@ -5659,12 +5668,12 @@
|
|
|
5659
5668
|
}), renderFlag && React__default["default"].createElement(React__default["default"].Fragment, null));
|
|
5660
5669
|
}
|
|
5661
5670
|
|
|
5662
|
-
/**
|
|
5663
|
-
* Mint Map 컴포넌트
|
|
5664
|
-
*
|
|
5665
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5666
|
-
*
|
|
5667
|
-
* @returns {JSX.Element} JSX
|
|
5671
|
+
/**
|
|
5672
|
+
* Mint Map 컴포넌트
|
|
5673
|
+
*
|
|
5674
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5675
|
+
*
|
|
5676
|
+
* @returns {JSX.Element} JSX
|
|
5668
5677
|
*/
|
|
5669
5678
|
|
|
5670
5679
|
function MapCanvasMarkerWrapper(_props) {
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mint-ui/map",
|
|
3
|
-
"version": "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
|
+
{
|
|
2
|
+
"name": "@mint-ui/map",
|
|
3
|
+
"version": "0.8.0-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
|
+
}
|