@mint-ui/map 0.10.0-beta-test1 → 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.
- package/.eslintrc.js +109 -109
- package/LICENSE +21 -21
- package/README.md +81 -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 +70 -70
- 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/canvas/CanvasMarker.d.ts +18 -18
- package/dist/components/mint-map/core/advanced/canvas/CanvasMarker.js +0 -1
- package/dist/components/mint-map/core/advanced/canvas/draw/canvas-util.d.ts +5 -5
- package/dist/components/mint-map/core/advanced/canvas/index.d.ts +1 -1
- package/dist/components/mint-map/core/advanced/index.d.ts +4 -4
- 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 -2
- 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 +8 -8
- package/dist/components/mint-map/core/util/log.d.ts +1 -1
- package/dist/components/mint-map/core/util/map.d.ts +2 -2
- 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 +20 -20
- 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 -12
- 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 +5 -5
- 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 +111 -111
- package/dist/components/mint-map/types/index.d.ts +6 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +97 -176
- package/dist/index.js +0 -4
- package/dist/index.umd.js +96 -178
- package/package.json +77 -77
- package/dist/components/mint-map/core/provider/MarkerAutoTransitionProvider.d.ts +0 -17
- package/dist/components/mint-map/core/provider/MarkerAutoTransitionProvider.js +0 -96
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,80 +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 pos;
|
|
4297
|
-
}
|
|
4298
|
-
}); // provider
|
|
4299
|
-
|
|
4300
|
-
var baseCenter = new Position(37.504497373023206, 127.04896282498558);
|
|
4301
|
-
function MarkerAutoTransitionProvider(_a) {
|
|
4302
|
-
var children = _a.children,
|
|
4303
|
-
_b = _a.sizeInMeter,
|
|
4304
|
-
sizeInMeter = _b === void 0 ? 2 : _b,
|
|
4305
|
-
_c = _a.type,
|
|
4306
|
-
type = _c === void 0 ? 'diagonal' : _c;
|
|
4307
|
-
var controller = useMintMapController();
|
|
4308
|
-
|
|
4309
|
-
var _d = React.useState(controller.getZoomLevel()),
|
|
4310
|
-
zoom = _d[0],
|
|
4311
|
-
setZoom = _d[1];
|
|
4312
|
-
|
|
4313
|
-
React.useEffect(function () {
|
|
4314
|
-
var onZoomChanged = function () {
|
|
4315
|
-
setZoom(controller.getZoomLevel());
|
|
4316
|
-
};
|
|
4317
|
-
|
|
4318
|
-
controller.addEventListener('ZOOM_CHANGED', onZoomChanged);
|
|
4319
|
-
return function () {
|
|
4320
|
-
controller.removeEventListener('ZOOM_CHANGED', onZoomChanged);
|
|
4321
|
-
};
|
|
4322
|
-
}, []);
|
|
4323
|
-
var calcSize = typeof sizeInMeter === 'number' ? sizeInMeter : sizeInMeter(controller.getZoomLevel());
|
|
4324
|
-
var deltaLat = GeoCalulator.convertMeterToLatitudeValue(calcSize);
|
|
4325
|
-
var offset1 = controller.positionToOffset(baseCenter);
|
|
4326
|
-
var offset2 = controller.positionToOffset(new Position(baseCenter.lat + deltaLat, baseCenter.lng));
|
|
4327
|
-
var deltaOffsetY = offset2.y - offset1.y;
|
|
4328
|
-
var offset3 = new Offset(offset1.x + deltaOffsetY, offset2.y);
|
|
4329
|
-
var deltaLng = baseCenter.lng - controller.offsetToPosition(offset3).lng;
|
|
4330
|
-
var posMap = new Map();
|
|
4331
|
-
|
|
4332
|
-
var transition = function (pos) {
|
|
4333
|
-
var key = positionToMapKey(pos);
|
|
4334
|
-
var count = posMap.get(key);
|
|
4335
|
-
|
|
4336
|
-
if (count === undefined) {
|
|
4337
|
-
count = 1;
|
|
4338
|
-
posMap.set(key, count);
|
|
4339
|
-
return pos;
|
|
4340
|
-
} //type : diagonal
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
var newPos = new Position(pos.lat + count * deltaLat, pos.lng + count * deltaLng);
|
|
4344
|
-
count += 1;
|
|
4345
|
-
posMap.set(key, count);
|
|
4346
|
-
return newPos;
|
|
4347
|
-
};
|
|
4348
|
-
|
|
4349
|
-
return React__default["default"].createElement(MarkerAutoTransitionContext.Provider, {
|
|
4350
|
-
value: {
|
|
4351
|
-
option: {
|
|
4352
|
-
sizeInMeter: sizeInMeter,
|
|
4353
|
-
type: type
|
|
4354
|
-
},
|
|
4355
|
-
transition: transition
|
|
4356
|
-
}
|
|
4357
|
-
}, zoom && children);
|
|
4358
|
-
}
|
|
4359
|
-
|
|
4360
|
-
function positionToMapKey(pos) {
|
|
4361
|
-
return "".concat(pos.lat, "-").concat(pos.lng);
|
|
4362
|
-
}
|
|
4363
|
-
|
|
4364
4290
|
var offsetCalibration = function (mapType, divElement, options, autoFitToViewport, autoAdjustAnchor, autoAdjustAnchorConfig, mapDivElement) {
|
|
4365
4291
|
//google 맵의 anchor 보정 (네이버와 같이 왼쪽/위 기준으로 처리)
|
|
4366
4292
|
var baseTransform = '';
|
|
@@ -4438,12 +4364,12 @@
|
|
|
4438
4364
|
|
|
4439
4365
|
return 0;
|
|
4440
4366
|
};
|
|
4441
|
-
/**
|
|
4442
|
-
* Mint Map 컴포넌트
|
|
4443
|
-
*
|
|
4444
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4445
|
-
*
|
|
4446
|
-
* @returns {JSX.Element} JSX
|
|
4367
|
+
/**
|
|
4368
|
+
* Mint Map 컴포넌트
|
|
4369
|
+
*
|
|
4370
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
4371
|
+
*
|
|
4372
|
+
* @returns {JSX.Element} JSX
|
|
4447
4373
|
*/
|
|
4448
4374
|
|
|
4449
4375
|
|
|
@@ -4566,13 +4492,8 @@
|
|
|
4566
4492
|
};
|
|
4567
4493
|
}, []); //create / update object
|
|
4568
4494
|
|
|
4569
|
-
var transition = React.useContext(MarkerAutoTransitionContext).transition;
|
|
4570
4495
|
React.useEffect(function () {
|
|
4571
4496
|
if (options) {
|
|
4572
|
-
if (!Array.isArray(options.position)) {
|
|
4573
|
-
options.position = transition(options.position);
|
|
4574
|
-
}
|
|
4575
|
-
|
|
4576
4497
|
if (markerRef.current) {
|
|
4577
4498
|
//console.log('update Marker')
|
|
4578
4499
|
controller.updateMarker(markerRef.current, options); //disablePointerEvent 처리
|
|
@@ -4618,12 +4539,12 @@
|
|
|
4618
4539
|
return reactDom.createPortal(children, divElement);
|
|
4619
4540
|
}
|
|
4620
4541
|
|
|
4621
|
-
/**
|
|
4622
|
-
* CircleMarker
|
|
4623
|
-
*
|
|
4624
|
-
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4625
|
-
*
|
|
4626
|
-
* @returns {JSX.Element} JSX
|
|
4542
|
+
/**
|
|
4543
|
+
* CircleMarker
|
|
4544
|
+
*
|
|
4545
|
+
* @param {CircleMarkerProps} CircleMarkerProps
|
|
4546
|
+
*
|
|
4547
|
+
* @returns {JSX.Element} JSX
|
|
4627
4548
|
*/
|
|
4628
4549
|
|
|
4629
4550
|
function CircleMarker(_a) {
|
|
@@ -4739,12 +4660,12 @@
|
|
|
4739
4660
|
}, children)));
|
|
4740
4661
|
}
|
|
4741
4662
|
|
|
4742
|
-
/**
|
|
4743
|
-
*PolygonMarker
|
|
4744
|
-
*
|
|
4745
|
-
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4746
|
-
*
|
|
4747
|
-
* @returns {JSX.Element} JSX
|
|
4663
|
+
/**
|
|
4664
|
+
*PolygonMarker
|
|
4665
|
+
*
|
|
4666
|
+
* @param {PolygonMarkerProps} PolygonMarkerProps
|
|
4667
|
+
*
|
|
4668
|
+
* @returns {JSX.Element} JSX
|
|
4748
4669
|
*/
|
|
4749
4670
|
|
|
4750
4671
|
function PolygonMarker(_a) {
|
|
@@ -5103,12 +5024,12 @@
|
|
|
5103
5024
|
})), divElement);
|
|
5104
5025
|
}
|
|
5105
5026
|
|
|
5106
|
-
/**
|
|
5107
|
-
* Mint Map 컴포넌트
|
|
5108
|
-
*
|
|
5109
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5110
|
-
*
|
|
5111
|
-
* @returns {JSX.Element} JSX
|
|
5027
|
+
/**
|
|
5028
|
+
* Mint Map 컴포넌트
|
|
5029
|
+
*
|
|
5030
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5031
|
+
*
|
|
5032
|
+
* @returns {JSX.Element} JSX
|
|
5112
5033
|
*/
|
|
5113
5034
|
|
|
5114
5035
|
function MapPolygonWrapper(_a) {
|
|
@@ -5554,12 +5475,12 @@
|
|
|
5554
5475
|
styleInject__default["default"](css_248z);
|
|
5555
5476
|
|
|
5556
5477
|
var cn = classNames__default["default"].bind(styles);
|
|
5557
|
-
/**
|
|
5558
|
-
* Mint Map 컴포넌트
|
|
5559
|
-
*
|
|
5560
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5561
|
-
*
|
|
5562
|
-
* @returns {JSX.Element} JSX
|
|
5478
|
+
/**
|
|
5479
|
+
* Mint Map 컴포넌트
|
|
5480
|
+
*
|
|
5481
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5482
|
+
*
|
|
5483
|
+
* @returns {JSX.Element} JSX
|
|
5563
5484
|
*/
|
|
5564
5485
|
|
|
5565
5486
|
function MapControlWrapper(_a) {
|
|
@@ -5592,12 +5513,12 @@
|
|
|
5592
5513
|
}, children));
|
|
5593
5514
|
}
|
|
5594
5515
|
|
|
5595
|
-
/**
|
|
5596
|
-
* Mint Map 컴포넌트
|
|
5597
|
-
*
|
|
5598
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5599
|
-
*
|
|
5600
|
-
* @returns {JSX.Element} JSX
|
|
5516
|
+
/**
|
|
5517
|
+
* Mint Map 컴포넌트
|
|
5518
|
+
*
|
|
5519
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5520
|
+
*
|
|
5521
|
+
* @returns {JSX.Element} JSX
|
|
5601
5522
|
*/
|
|
5602
5523
|
|
|
5603
5524
|
function MapPolylineWrapper(_a) {
|
|
@@ -5638,12 +5559,12 @@
|
|
|
5638
5559
|
log: function () {
|
|
5639
5560
|
}
|
|
5640
5561
|
};
|
|
5641
|
-
/**
|
|
5642
|
-
* Mint Map 컴포넌트
|
|
5643
|
-
*
|
|
5644
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5645
|
-
*
|
|
5646
|
-
* @returns {JSX.Element} JSX
|
|
5562
|
+
/**
|
|
5563
|
+
* Mint Map 컴포넌트
|
|
5564
|
+
*
|
|
5565
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5566
|
+
*
|
|
5567
|
+
* @returns {JSX.Element} JSX
|
|
5647
5568
|
*/
|
|
5648
5569
|
|
|
5649
5570
|
function MapCanvasWrapper(_a) {
|
|
@@ -5962,12 +5883,12 @@
|
|
|
5962
5883
|
}), renderFlag && React__default["default"].createElement(React__default["default"].Fragment, null));
|
|
5963
5884
|
}
|
|
5964
5885
|
|
|
5965
|
-
/**
|
|
5966
|
-
* Mint Map 컴포넌트
|
|
5967
|
-
*
|
|
5968
|
-
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5969
|
-
*
|
|
5970
|
-
* @returns {JSX.Element} JSX
|
|
5886
|
+
/**
|
|
5887
|
+
* Mint Map 컴포넌트
|
|
5888
|
+
*
|
|
5889
|
+
* @param {MapControlWrapperProps} MapControlWrapperProps
|
|
5890
|
+
*
|
|
5891
|
+
* @returns {JSX.Element} JSX
|
|
5971
5892
|
*/
|
|
5972
5893
|
|
|
5973
5894
|
function MapCanvasMarkerWrapper(_props) {
|
|
@@ -5993,8 +5914,6 @@
|
|
|
5993
5914
|
exports.MapPolylineWrapper = MapPolylineWrapper;
|
|
5994
5915
|
exports.MapUIEvent = MapUIEvent;
|
|
5995
5916
|
exports.Marker = Marker;
|
|
5996
|
-
exports.MarkerAutoTransitionContext = MarkerAutoTransitionContext;
|
|
5997
|
-
exports.MarkerAutoTransitionProvider = MarkerAutoTransitionProvider;
|
|
5998
5917
|
exports.MintMap = MintMap;
|
|
5999
5918
|
exports.MintMapCanvasRenderer = MintMapCanvasRenderer;
|
|
6000
5919
|
exports.MintMapController = MintMapController;
|
|
@@ -6012,7 +5931,6 @@
|
|
|
6012
5931
|
exports.SVGPolygon = SVGPolygon;
|
|
6013
5932
|
exports.SVGRect = SVGRect;
|
|
6014
5933
|
exports.Status = Status;
|
|
6015
|
-
exports.baseCenter = baseCenter;
|
|
6016
5934
|
exports.getClusterInfo = getClusterInfo;
|
|
6017
5935
|
exports.getMapOfType = getMapOfType;
|
|
6018
5936
|
exports.log = log;
|
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": "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,17 +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) => Position;
|
|
12
|
-
}
|
|
13
|
-
export declare const MarkerAutoTransitionContext: React.Context<MarkerAutoTransitionContextType>;
|
|
14
|
-
export declare const baseCenter: Position;
|
|
15
|
-
export interface MarkerAutoTransitionProviderProps extends MarkerAutoTransitionOption {
|
|
16
|
-
}
|
|
17
|
-
export declare function MarkerAutoTransitionProvider({ children, sizeInMeter, type, }: React.PropsWithChildren<MarkerAutoTransitionProviderProps>): JSX.Element;
|