@mint-ui/map 1.0.0 → 1.0.1
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 +0 -110
- package/.idea/codeStyles/Project.xml +94 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/LICENSE +21 -21
- package/README.md +81 -81
- 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 +10 -62
- 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/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 -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 +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 -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 +54 -53
- package/dist/components/mint-map/google/GoogleMintMapController.js +25 -1
- package/dist/components/mint-map/index.d.ts +5 -5
- package/dist/components/mint-map/kakao/KakaoMintMapController.d.ts +58 -57
- package/dist/components/mint-map/kakao/KakaoMintMapController.js +31 -7
- package/dist/components/mint-map/naver/NaverMintMapController.d.ts +56 -55
- package/dist/components/mint-map/naver/NaverMintMapController.js +31 -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 +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 +3660 -3671
- package/dist/index.umd.js +3659 -3670
- package/package-lock.json +45064 -0
- package/package.json +77 -77
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MapType } from "./CommonTypes";
|
|
3
|
-
import { Position } from "./MapTypes";
|
|
4
|
-
import { MintMapEvents } from "./MintMapEvents";
|
|
5
|
-
import { Property } from "csstype";
|
|
6
|
-
/**
|
|
7
|
-
* Mint Map Props
|
|
8
|
-
*/
|
|
9
|
-
export interface MintMapProps extends MintMapEvents {
|
|
10
|
-
/**
|
|
11
|
-
* Mint Map 에서 지원하는 지도 타입
|
|
12
|
-
*/
|
|
13
|
-
mapType: MapType | null;
|
|
14
|
-
/**
|
|
15
|
-
* Map 종류에 따른 인증키
|
|
16
|
-
* @description 각 지도 타입에 맞는 키를 입력해야한다.
|
|
17
|
-
*/
|
|
18
|
-
mapKey: string;
|
|
19
|
-
/**
|
|
20
|
-
* Map Script 로드시에 지도 타입에 따라 로드할 서브 모듈 목록
|
|
21
|
-
* @description 각 지도 타입에 맞는 서브모듈을 지정해야한다.
|
|
22
|
-
*/
|
|
23
|
-
scriptModules?: string[];
|
|
24
|
-
/**
|
|
25
|
-
* Map Script 로드시에 파라미터를 추가
|
|
26
|
-
* @description 내부적으로 key=value 의 형태로 처리된다.
|
|
27
|
-
*/
|
|
28
|
-
scriptParams?: Record<string, string>;
|
|
29
|
-
/**
|
|
30
|
-
* Map 종류에 따른 추가 맵 ID
|
|
31
|
-
* @description 특정 지도에서는 맵ID 가 추가로 요구된다 (ex: Google Maps)
|
|
32
|
-
*/
|
|
33
|
-
mapId?: string;
|
|
34
|
-
/**
|
|
35
|
-
* 지도의 기본 설정 정보
|
|
36
|
-
*/
|
|
37
|
-
base?: BaseProps;
|
|
38
|
-
/**
|
|
39
|
-
* 지도의 보기 설정
|
|
40
|
-
*/
|
|
41
|
-
visible?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* 지도 중심 좌표
|
|
44
|
-
*/
|
|
45
|
-
center?: Position;
|
|
46
|
-
/**
|
|
47
|
-
* center 값을 통해 지도의 중심 으로 이동할때 panning 효과 적용 여부
|
|
48
|
-
*/
|
|
49
|
-
centerMoveWithPanning?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* 지도 줌레벨
|
|
52
|
-
*/
|
|
53
|
-
zoomLevel?: number;
|
|
54
|
-
/**
|
|
55
|
-
* 마우스의 드래그로 지도 위치 움직임 가능 여부
|
|
56
|
-
*/
|
|
57
|
-
draggable?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* 키보드 방향키로 지도 위치 움직임 가능 여부
|
|
60
|
-
*/
|
|
61
|
-
keyboardShortcuts?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* 마커 cache 사용 여부
|
|
64
|
-
*/
|
|
65
|
-
markerCache?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* 마커 cache 사용시 초기 pool 갯수
|
|
68
|
-
*/
|
|
69
|
-
markerCachePoolSize?: number;
|
|
70
|
-
/**
|
|
71
|
-
* 마커 cache 사용시 초기 pool 갯수
|
|
72
|
-
*/
|
|
73
|
-
boundsChangeThrottlingTime?: number;
|
|
74
|
-
/**
|
|
75
|
-
* 로딩 완료 후 장면전환 효과 여부
|
|
76
|
-
*/
|
|
77
|
-
dissolveEffectWhenLoaded?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* 맵 로딩화면
|
|
80
|
-
*/
|
|
81
|
-
mapLoadingComponent?: () => JSX.Element;
|
|
82
|
-
/**
|
|
83
|
-
* 디버그
|
|
84
|
-
*/
|
|
85
|
-
debug?: boolean;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* 지도의 기본 설정
|
|
89
|
-
*/
|
|
90
|
-
export interface BaseProps {
|
|
91
|
-
/**
|
|
92
|
-
* 지도 시작시의 중심 좌표
|
|
93
|
-
*/
|
|
94
|
-
center?: Position;
|
|
95
|
-
/**
|
|
96
|
-
* 지도 시작시의 줌레벨
|
|
97
|
-
*/
|
|
98
|
-
zoomLevel?: number;
|
|
99
|
-
/**
|
|
100
|
-
* 지도의 최대 줌 레벨
|
|
101
|
-
*/
|
|
102
|
-
maxZoomLevel?: number;
|
|
103
|
-
/**
|
|
104
|
-
* 지도의 최소 줌 레벨
|
|
105
|
-
*/
|
|
106
|
-
minZoomLevel?: number;
|
|
107
|
-
/**
|
|
108
|
-
* 지도의 기본 커서
|
|
109
|
-
*/
|
|
110
|
-
mapCursor?: Property.Cursor;
|
|
111
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MapType } from "./CommonTypes";
|
|
3
|
+
import { Position } from "./MapTypes";
|
|
4
|
+
import { MintMapEvents } from "./MintMapEvents";
|
|
5
|
+
import { Property } from "csstype";
|
|
6
|
+
/**
|
|
7
|
+
* Mint Map Props
|
|
8
|
+
*/
|
|
9
|
+
export interface MintMapProps extends MintMapEvents {
|
|
10
|
+
/**
|
|
11
|
+
* Mint Map 에서 지원하는 지도 타입
|
|
12
|
+
*/
|
|
13
|
+
mapType: MapType | null;
|
|
14
|
+
/**
|
|
15
|
+
* Map 종류에 따른 인증키
|
|
16
|
+
* @description 각 지도 타입에 맞는 키를 입력해야한다.
|
|
17
|
+
*/
|
|
18
|
+
mapKey: string;
|
|
19
|
+
/**
|
|
20
|
+
* Map Script 로드시에 지도 타입에 따라 로드할 서브 모듈 목록
|
|
21
|
+
* @description 각 지도 타입에 맞는 서브모듈을 지정해야한다.
|
|
22
|
+
*/
|
|
23
|
+
scriptModules?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Map Script 로드시에 파라미터를 추가
|
|
26
|
+
* @description 내부적으로 key=value 의 형태로 처리된다.
|
|
27
|
+
*/
|
|
28
|
+
scriptParams?: Record<string, string>;
|
|
29
|
+
/**
|
|
30
|
+
* Map 종류에 따른 추가 맵 ID
|
|
31
|
+
* @description 특정 지도에서는 맵ID 가 추가로 요구된다 (ex: Google Maps)
|
|
32
|
+
*/
|
|
33
|
+
mapId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 지도의 기본 설정 정보
|
|
36
|
+
*/
|
|
37
|
+
base?: BaseProps;
|
|
38
|
+
/**
|
|
39
|
+
* 지도의 보기 설정
|
|
40
|
+
*/
|
|
41
|
+
visible?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 지도 중심 좌표
|
|
44
|
+
*/
|
|
45
|
+
center?: Position;
|
|
46
|
+
/**
|
|
47
|
+
* center 값을 통해 지도의 중심 으로 이동할때 panning 효과 적용 여부
|
|
48
|
+
*/
|
|
49
|
+
centerMoveWithPanning?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 지도 줌레벨
|
|
52
|
+
*/
|
|
53
|
+
zoomLevel?: number;
|
|
54
|
+
/**
|
|
55
|
+
* 마우스의 드래그로 지도 위치 움직임 가능 여부
|
|
56
|
+
*/
|
|
57
|
+
draggable?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 키보드 방향키로 지도 위치 움직임 가능 여부
|
|
60
|
+
*/
|
|
61
|
+
keyboardShortcuts?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 마커 cache 사용 여부
|
|
64
|
+
*/
|
|
65
|
+
markerCache?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 마커 cache 사용시 초기 pool 갯수
|
|
68
|
+
*/
|
|
69
|
+
markerCachePoolSize?: number;
|
|
70
|
+
/**
|
|
71
|
+
* 마커 cache 사용시 초기 pool 갯수
|
|
72
|
+
*/
|
|
73
|
+
boundsChangeThrottlingTime?: number;
|
|
74
|
+
/**
|
|
75
|
+
* 로딩 완료 후 장면전환 효과 여부
|
|
76
|
+
*/
|
|
77
|
+
dissolveEffectWhenLoaded?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* 맵 로딩화면
|
|
80
|
+
*/
|
|
81
|
+
mapLoadingComponent?: () => JSX.Element;
|
|
82
|
+
/**
|
|
83
|
+
* 디버그
|
|
84
|
+
*/
|
|
85
|
+
debug?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* 지도의 기본 설정
|
|
89
|
+
*/
|
|
90
|
+
export interface BaseProps {
|
|
91
|
+
/**
|
|
92
|
+
* 지도 시작시의 중심 좌표
|
|
93
|
+
*/
|
|
94
|
+
center?: Position;
|
|
95
|
+
/**
|
|
96
|
+
* 지도 시작시의 줌레벨
|
|
97
|
+
*/
|
|
98
|
+
zoomLevel?: number;
|
|
99
|
+
/**
|
|
100
|
+
* 지도의 최대 줌 레벨
|
|
101
|
+
*/
|
|
102
|
+
maxZoomLevel?: number;
|
|
103
|
+
/**
|
|
104
|
+
* 지도의 최소 줌 레벨
|
|
105
|
+
*/
|
|
106
|
+
minZoomLevel?: number;
|
|
107
|
+
/**
|
|
108
|
+
* 지도의 기본 커서
|
|
109
|
+
*/
|
|
110
|
+
mapCursor?: Property.Cursor;
|
|
111
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './CommonTypes';
|
|
2
|
-
export * from './MapDrawables';
|
|
3
|
-
export * from './MapTypes';
|
|
4
|
-
export * from './MintMapEvents';
|
|
5
|
-
export * from './MintMapProps';
|
|
6
|
-
export * from './MapEventTypes';
|
|
1
|
+
export * from './CommonTypes';
|
|
2
|
+
export * from './MapDrawables';
|
|
3
|
+
export * from './MapTypes';
|
|
4
|
+
export * from './MintMapEvents';
|
|
5
|
+
export * from './MintMapProps';
|
|
6
|
+
export * from './MapEventTypes';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 인덱스 모듈
|
|
3
|
-
*
|
|
4
|
-
* @author RWB
|
|
5
|
-
* @since 2022.05.19 Thu 01:37:54
|
|
6
|
-
*/
|
|
7
|
-
export * from './components/mint-map';
|
|
1
|
+
/**
|
|
2
|
+
* 인덱스 모듈
|
|
3
|
+
*
|
|
4
|
+
* @author RWB
|
|
5
|
+
* @since 2022.05.19 Thu 01:37:54
|
|
6
|
+
*/
|
|
7
|
+
export * from './components/mint-map';
|